Changeset 17235


Ignore:
Timestamp:
22 Dec 2022, 09:52:04 (21 months ago)
Author:
Henrik Bettermann
Message:

Split school fee payments for postgrad students.

File:
1 edited

Legend:

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

    r17147 r17235  
    169169                          "beneficiaryAmount":student_union,"deductFeeFrom":"0"},)
    170170
     171        # We overwrite linetems in case of postgrad student school fee payments
     172        if student.is_postgrad and self.context.p_category == 'schoolfee':
     173            microfinance_amt = 0.1 * inst_amt
     174            inst_amt -= microfinance_amt
     175            lineitems = (
     176                          {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
     177                          "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode,
     178                          "beneficiaryAmount":inst_amt,"deductFeeFrom":"1"},
     179                        )
     180            lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"SPGS Scheme ",
     181                          "beneficiaryAccount":"0025636203","bankCode":"039",
     182                          "beneficiaryAmount":microfinance_amt,"deductFeeFrom":"0"},
     183                         {"lineItemsId":"itemid3","beneficiaryName":"WAeAC",
     184                          "beneficiaryAccount":"1014261520","bankCode":"057",
     185                          "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)
     186
    171187        ## Disabled on 24/02/21
    172188        ## We overwrite linetems in case of JUPEB students
Note: See TracChangeset for help on using the changeset viewer.