Changeset 18011 for main/waeup.uniben


Ignore:
Timestamp:
11 Feb 2025, 01:42:51 (18 hours ago)
Author:
Henrik Bettermann
Message:

Split pre (JUPEB) applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py

    r17977 r18011  
    380380                          "beneficiaryAccount":"1014261520","bankCode":"057",
    381381                          "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
     382
     383        ## We overwrite linetems in case of JUPEB applicants
     384        if applicant.__parent__.prefix == 'pre':
     385            reduced_inst_amt = 0.4 * inst_amt
     386            jupeb_amt = 0.6 * inst_amt
     387            lineitems = (
     388                          {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
     389                          "beneficiaryAccount":inst_acct,"bankCode":"000",
     390                          "beneficiaryAmount":reduced_inst_amt,"deductFeeFrom":"1"},
     391                        )
     392            lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"JUPEB",
     393                          "beneficiaryAccount":"0025636203","bankCode":"039",
     394                          "beneficiaryAmount":jupeb_amt,"deductFeeFrom":"0"},)
     395            lineitems += ({"lineItemsId":"itemid3","beneficiaryName":"WAeAC",
     396                          "beneficiaryAccount":"1014261520","bankCode":"057",
     397                          "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
     398
    382399        self.context.provider_amt = provider_amt
    383400        self.context.net_amt = inst_amt
Note: See TracChangeset for help on using the changeset viewer.