Changeset 18115 for main/waeup.uniben


Ignore:
Timestamp:
9 Jul 2025, 15:16:55 (7 hours ago)
Author:
Henrik Bettermann
Message:

Revert last changes.

File:
1 edited

Legend:

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

    r18107 r18115  
    154154        reduced_inst_amt = 0.0
    155155        lab_amt = 0.0
    156         if self.context.student.is_postgrad:
    157             inst_acct = "3000151027"
     156        #if self.context.student.is_postgrad:
     157        #    inst_acct = "3000151027"
    158158        if self.context.p_category in ('schoolfee', 'schoolfee_1'):
    159159            provider_amt = self.dynamic_provider_amt(self.context.student)
     
    184184                          "beneficiaryAmount":student_union,"deductFeeFrom":"0"},)
    185185
    186         ## Disabled on 07/07/25
     186        # Disabled on 07/07/25
     187        # Reenabled on 09/07/25
    187188        # We overwrite linetems in case of postgrad student school fee payments
    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"},)
     189        if self.context.student.is_postgrad and self.context.p_category == 'schoolfee':
     190            microfinance_amt = 0.1 * inst_amt
     191            inst_amt -= microfinance_amt
     192            lineitems = (
     193                          {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
     194                          "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode,
     195                          "beneficiaryAmount":inst_amt,"deductFeeFrom":"1"},
     196                        )
     197            lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"SPGS Scheme",
     198                          "beneficiaryAccount":"0025636203","bankCode":"039",
     199                          "beneficiaryAmount":microfinance_amt,"deductFeeFrom":"0"},
     200                         {"lineItemsId":"itemid3","beneficiaryName":"WAeAC",
     201                          "beneficiaryAccount":"1014261520","bankCode":"057",
     202                          "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
    202203
    203204        ## Disabled on 24/02/21
Note: See TracChangeset for help on using the changeset viewer.