Changeset 14888


Ignore:
Timestamp:
1 Nov 2017, 17:03:53 (7 years ago)
Author:
Henrik Bettermann
Message:

Change bank account for dp payments.

File:
1 edited

Legend:

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

    r14876 r14888  
    131131            provider_amt = self.dynamic_provider_amt(self.context.student)
    132132        inst_amt = self.context.amount_auth - provider_amt
    133         if self.context.student.faccode == 'JUPEB':
     133        if self.context.student.faccode == 'JUPEB' \
     134            or self.context.student.current_mode == 'dp_ft':
    134135            inst_acct = "0040217361038"
    135136        else:
     
    224225    def lineitems(self):
    225226        provider_amt = 1000.0
     227        if self.context.__parent__.applicant_id.startswith('dp'):
     228            inst_acct = "0040217361038"
     229        else:
     230            inst_acct = "0040217361011"
    226231        #if self.context.__parent__.applicant_id.startswith('cbt'):
    227232        #    provider_amt = 200.0
     
    229234        lineitems = (
    230235                      {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
    231                       "beneficiaryAccount":"0040217361011","bankCode":"000",
     236                      "beneficiaryAccount":inst_acct,"bankCode":"000",
    232237                      "beneficiaryAmount":inst_amt,"deductFeeFrom":"1"},
    233238                      {"lineItemsId":"itemid2","beneficiaryName":"WAeAC",
Note: See TracChangeset for help on using the changeset viewer.