Ignore:
Timestamp:
6 Nov 2019, 07:25:16 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in nigeria package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/remita/browser.py

    r15614 r15756  
    9191            return
    9292        self.orderId = self.context.p_id
    93         self.amount = str(self.context.amount_auth)
    9493        error = self.init_update()
    9594        if error:
     
    9796            self.redirect(self.url(self.context, '@@index'))
    9897            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)
    99106        return
    100107
     
    150157            return
    151158        self.orderId = self.context.p_id
    152         self.amount = str(self.context.amount_auth)
    153159        error = self.init_update()
    154160        if error:
     
    156162            self.redirect(self.url(self.context, '@@index'))
    157163            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)
    158172        return
Note: See TracChangeset for help on using the changeset viewer.