- Timestamp:
- 6 Nov 2019, 07:25:16 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/remita/browser.py
r15614 r15756 91 91 return 92 92 self.orderId = self.context.p_id 93 self.amount = str(self.context.amount_auth)94 93 error = self.init_update() 95 94 if error: … … 97 96 self.redirect(self.url(self.context, '@@index')) 98 97 return 98 # Already now it becomes a Remita payment. We set the net amount 99 # and add the gateway amount. 100 if not self.context.r_company: 101 self.context.net_amt = self.context.amount_auth 102 self.context.amount_auth += self.gateway_amt 103 self.context.gateway_amt = self.gateway_amt 104 self.context.r_company = u'remita' 105 self.amount_auth = int(100 * self.context.amount_auth) 99 106 return 100 107 … … 150 157 return 151 158 self.orderId = self.context.p_id 152 self.amount = str(self.context.amount_auth)153 159 error = self.init_update() 154 160 if error: … … 156 162 self.redirect(self.url(self.context, '@@index')) 157 163 return 164 # Already now it becomes a Remita payment. We set the net amount 165 # and add the gateway amount. 166 if not self.context.r_company: 167 self.context.net_amt = self.context.amount_auth 168 self.context.amount_auth += self.gateway_amt 169 self.context.gateway_amt = self.gateway_amt 170 self.context.r_company = u'remita' 171 self.amount_auth = int(100 * self.context.amount_auth) 158 172 return
Note: See TracChangeset for help on using the changeset viewer.