Changeset 16398 for main/waeup.uniben/trunk/src
- Timestamp:
- 24 Feb 2021, 14:48:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py
r16389 r16398 149 149 "beneficiaryAmount":student_union,"deductFeeFrom":"0"},) 150 150 151 # We overwrite linetems in case of JUPEB students 152 if self.context.student.is_jupeb: 153 if self.context.p_category == 'clearance': 154 provider_amt = self.dynamic_provider_amt(self.context.student) 155 reduced_inst_amt = 0.7 * inst_amt 156 jupeb_amt = 0.3 * inst_amt 157 elif self.context.p_category == 'schoolfee' and \ 158 not self.context.p_item == 'Balance': 159 provider_amt = self.dynamic_provider_amt(self.context.student) 160 if self.context.student.depcode in ('AGR_JUP','EDU_JUP','ENG_JUP', 161 'LSC_JUP','MED_JUP','PSC_JUP'): 162 lab_amt = 10000 163 reduced_inst_amt = 0.7 * (inst_amt - lab_amt) 164 jupeb_amt = 0.3 * (inst_amt - lab_amt) + lab_amt 165 lineitems = ( 166 {"lineItemsId":"itemid1","beneficiaryName":"Uniben", 167 "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode, 168 "beneficiaryAmount":reduced_inst_amt,"deductFeeFrom":"1"}, 169 ) 170 lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"JUPEB", 171 "beneficiaryAccount":"0025636203","bankCode":"039", 172 "beneficiaryAmount":jupeb_amt,"deductFeeFrom":"0"},) 173 if provider_amt: 174 lineitems += ({"lineItemsId":"itemid3","beneficiaryName":"WAeAC", 175 "beneficiaryAccount":"1014261520","bankCode":"057", 176 "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},) 177 if student_union: 178 lineitems += ({"lineItemsId":"itemid4","beneficiaryName":"Student Union", 179 "beneficiaryAccount":"0025636203","bankCode":"039", 180 "beneficiaryAmount":student_union,"deductFeeFrom":"0"},) 151 ## Disabled on 24/02/21 152 ## We overwrite linetems in case of JUPEB students 153 #if self.context.student.is_jupeb: 154 # if self.context.p_category == 'clearance': 155 # provider_amt = self.dynamic_provider_amt(self.context.student) 156 # reduced_inst_amt = 0.7 * inst_amt 157 # jupeb_amt = 0.3 * inst_amt 158 # elif self.context.p_category == 'schoolfee' and \ 159 # not self.context.p_item == 'Balance': 160 # provider_amt = self.dynamic_provider_amt(self.context.student) 161 # if self.context.student.depcode in ('AGR_JUP','EDU_JUP','ENG_JUP', 162 # 'LSC_JUP','MED_JUP','PSC_JUP'): 163 # lab_amt = 10000 164 # reduced_inst_amt = 0.7 * (inst_amt - lab_amt) 165 # jupeb_amt = 0.3 * (inst_amt - lab_amt) + lab_amt 166 # lineitems = ( 167 # {"lineItemsId":"itemid1","beneficiaryName":"Uniben", 168 # "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode, 169 # "beneficiaryAmount":reduced_inst_amt,"deductFeeFrom":"1"}, 170 # ) 171 # lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"JUPEB", 172 # "beneficiaryAccount":"1100020192","bankCode":"039", 173 # "beneficiaryAmount":jupeb_amt,"deductFeeFrom":"0"},) 174 # if provider_amt: 175 # lineitems += ({"lineItemsId":"itemid3","beneficiaryName":"WAeAC", 176 # "beneficiaryAccount":"1014261520","bankCode":"057", 177 # "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},) 178 # if student_union: 179 # lineitems += ({"lineItemsId":"itemid4","beneficiaryName":"Student Union", 180 # "beneficiaryAccount":"0025636203","bankCode":"039", 181 # "beneficiaryAmount":student_union,"deductFeeFrom":"0"},) 181 182 182 183
Note: See TracChangeset for help on using the changeset viewer.