Changeset 16162


Ignore:
Timestamp:
12 Jul 2020, 19:32:58 (4 years ago)
Author:
Henrik Bettermann
Message:

Add provider amount to registration fee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py

    r16142 r16162  
    159159        # Already now it becomes an Etranzact payment. We set the net amount
    160160        # and add the gateway amount.
     161        provider_amt = 0.0
     162        if self.context.p_category == 'registration':
     163            provider_amt = 5000.0
    161164        if not self.context.r_company:
    162165            self.context.net_amt = self.context.amount_auth
    163166            self.context.amount_auth += self.gateway_amt
     167            self.context.amount_auth += provider_amt
    164168            self.context.gateway_amt = self.gateway_amt
     169            self.context.provider_amt = provider_amt
    165170            self.context.r_company = u'etranzact'
    166171        self.amount = "%.1f" % self.context.amount_auth
Note: See TracChangeset for help on using the changeset viewer.