Changeset 18107


Ignore:
Timestamp:
7 Jul 2025, 09:53:18 (4 hours ago)
Author:
Henrik Bettermann
Message:

Change bank account for all pg payments.

File:
1 edited

Legend:

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

    r18039 r18107  
    154154        reduced_inst_amt = 0.0
    155155        lab_amt = 0.0
     156        if self.context.student.is_postgrad:
     157            inst_acct = "3000151027"
    156158        if self.context.p_category in ('schoolfee', 'schoolfee_1'):
    157159            provider_amt = self.dynamic_provider_amt(self.context.student)
     
    182184                          "beneficiaryAmount":student_union,"deductFeeFrom":"0"},)
    183185
     186        ## Disabled on 07/07/25
    184187        # We overwrite linetems in case of postgrad student school fee payments
    185         if self.context.student.is_postgrad and self.context.p_category == 'schoolfee':
    186             microfinance_amt = 0.1 * inst_amt
    187             inst_amt -= microfinance_amt
    188             lineitems = (
    189                           {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
    190                           "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode,
    191                           "beneficiaryAmount":inst_amt,"deductFeeFrom":"1"},
    192                         )
    193             lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"SPGS Scheme",
    194                           "beneficiaryAccount":"0025636203","bankCode":"039",
    195                           "beneficiaryAmount":microfinance_amt,"deductFeeFrom":"0"},
    196                          {"lineItemsId":"itemid3","beneficiaryName":"WAeAC",
    197                           "beneficiaryAccount":"1014261520","bankCode":"057",
    198                           "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
     188        #if self.context.student.is_postgrad and self.context.p_category == 'schoolfee':
     189        #    microfinance_amt = 0.1 * inst_amt
     190        #    inst_amt -= microfinance_amt
     191        #    lineitems = (
     192        #                  {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
     193        #                  "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode,
     194        #                  "beneficiaryAmount":inst_amt,"deductFeeFrom":"1"},
     195        #                )
     196        #    lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"SPGS Scheme",
     197        #                  "beneficiaryAccount":"0025636203","bankCode":"039",
     198        #                  "beneficiaryAmount":microfinance_amt,"deductFeeFrom":"0"},
     199        #                 {"lineItemsId":"itemid3","beneficiaryName":"WAeAC",
     200        #                  "beneficiaryAccount":"1014261520","bankCode":"057",
     201        #                  "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
    199202
    200203        ## Disabled on 24/02/21
     
    372375        if applicant.__parent__.prefix.startswith('pg'):
    373376            provider_amt = 2000.0
     377            inst_acct = "3000151027"
    374378        if self.context.p_item == 'Balance':
    375379            provider_amt = 0.0
Note: See TracChangeset for help on using the changeset viewer.