Changeset 18032 for main/waeup.uniben


Ignore:
Timestamp:
7 Mar 2025, 02:32:15 (3 days ago)
Author:
Henrik Bettermann
Message:

Do not deduct provider amount if blanace payment.

File:
1 edited

Legend:

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

    r18011 r18032  
    154154        reduced_inst_amt = 0.0
    155155        lab_amt = 0.0
    156         if self.context.p_category in ('schoolfee', 'schoolfee_1') and \
    157             not self.context.p_item == 'Balance':
     156        if self.context.p_category in ('schoolfee', 'schoolfee_1'):
    158157            provider_amt = self.dynamic_provider_amt(self.context.student)
    159158            if self.context.student.current_mode == 'ug_ft':
     
    163162        elif self.context.p_category == 'bed_allocation':
    164163            provider_amt = 1000.0
     164        if self.context.p_item == 'Balance':
     165            provider_amt = 0.0
    165166
    166167        inst_amt = self.context.amount_auth - provider_amt - student_union
     
    205206                reduced_inst_amt = 0.4 * inst_amt
    206207                jupeb_amt = 0.6 * inst_amt
    207             elif self.context.p_category in ('schoolfee', 'schoolfee_1') and \
    208                 not self.context.p_item == 'Balance':
     208            elif self.context.p_category in ('schoolfee', 'schoolfee_1'):
    209209                provider_amt = self.dynamic_provider_amt(self.context.student)
    210210                #if self.context.student.depcode in ('AGR_JUP','EDU_JUP','ENG_JUP',
     
    213213                reduced_inst_amt = 0.4 * (inst_amt - lab_amt)
    214214                jupeb_amt = 0.6 * (inst_amt - lab_amt) + lab_amt
     215            if self.context.p_item == 'Balance':
     216                provider_amt = 0.0
    215217            lineitems = (
    216218                          {"lineItemsId":"itemid1","beneficiaryName":"Uniben",
Note: See TracChangeset for help on using the changeset viewer.