- Timestamp:
- 5 Oct 2020, 13:19:29 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py
r16261 r16270 159 159 # Already now it becomes an Etranzact payment. We set the net amount 160 160 # and add the gateway amount. 161 provider_amt = 0.0 162 if self.context.p_category in ( 163 'registration', 'required_combi', 'pg_other'): 164 provider_amt = 5000.0 165 if not self.context.r_company: 166 self.context.net_amt = self.context.amount_auth 167 self.context.amount_auth += self.gateway_amt 168 self.context.amount_auth += provider_amt 169 self.context.gateway_amt = self.gateway_amt 170 self.context.provider_amt = provider_amt 161 if not self.context.r_company: 162 self.context.net_amt = self.context.amount_auth 163 self.context.amount_auth += self.gateway_amt 164 self.context.gateway_amt = self.gateway_amt 171 165 self.context.r_company = u'etranzact' 172 166 self.amount = "%.1f" % self.context.amount_auth … … 222 216 # Already now it becomes an Etranzact payment. We set the net amount 223 217 # and add the gateway amount. 224 provider_amt = 0.0 225 if self.context.p_category in ( 226 'registration', 'required_combi', 'pg_other'): 227 provider_amt = 5000.0 228 if not self.context.r_company: 229 self.context.net_amt = self.context.amount_auth 230 self.context.amount_auth += self.gateway_amt 231 self.context.amount_auth += provider_amt 232 self.context.gateway_amt = self.gateway_amt 233 self.context.provider_amt = provider_amt 218 if not self.context.r_company: 219 self.context.net_amt = self.context.amount_auth 220 self.context.amount_auth += self.gateway_amt 221 self.context.gateway_amt = self.gateway_amt 234 222 self.context.r_company = u'etranzact' 235 223 return … … 248 236 # Already now it becomes an Etranzact payment. We set the net amount 249 237 # and add the gateway amount. 250 provider_amt = 0.0 251 if not self.context.r_company: 252 self.context.net_amt = self.context.amount_auth 253 self.context.amount_auth += self.gateway_amt 254 self.context.amount_auth += provider_amt 255 self.context.gateway_amt = self.gateway_amt 256 self.context.provider_amt = provider_amt 238 if not self.context.r_company: 239 self.context.net_amt = self.context.amount_auth 240 self.context.amount_auth += self.gateway_amt 241 self.context.gateway_amt = self.gateway_amt 257 242 self.context.r_company = u'etranzact' 258 243 return
Note: See TracChangeset for help on using the changeset viewer.