Changeset 17590 for main/waeup.uniben/trunk/src/waeup/uniben/remita
- Timestamp:
- 20 Sep 2023, 18:54:06 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py
r17454 r17590 184 184 185 185 ## Disabled on 24/02/21 186 ## Reenabled on 19/09/23 (ticket #1327) 186 187 ## We overwrite linetems in case of JUPEB students 187 #if self.context.student.is_jupeb:188 #if self.context.p_category == 'clearance':189 #provider_amt = self.dynamic_provider_amt(self.context.student)190 #reduced_inst_amt = 0.7 * inst_amt191 #jupeb_amt = 0.3 * inst_amt192 #elif self.context.p_category == 'schoolfee' and \193 #not self.context.p_item == 'Balance':194 #provider_amt = self.dynamic_provider_amt(self.context.student)195 #if self.context.student.depcode in ('AGR_JUP','EDU_JUP','ENG_JUP',196 #'LSC_JUP','MED_JUP','PSC_JUP'):197 #lab_amt = 10000198 #reduced_inst_amt = 0.7 * (inst_amt - lab_amt)199 #jupeb_amt = 0.3 * (inst_amt - lab_amt) + lab_amt200 #lineitems = (201 #{"lineItemsId":"itemid1","beneficiaryName":"Uniben",202 #"beneficiaryAccount":inst_acct,"bankCode":inst_bankcode,203 #"beneficiaryAmount":reduced_inst_amt,"deductFeeFrom":"1"},204 #)205 #lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"JUPEB",206 #"beneficiaryAccount":"1100020192","bankCode":"039",207 #"beneficiaryAmount":jupeb_amt,"deductFeeFrom":"0"},)208 #if provider_amt:209 #lineitems += ({"lineItemsId":"itemid3","beneficiaryName":"WAeAC",210 #"beneficiaryAccount":"1014261520","bankCode":"057",211 #"beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},)212 #if student_union:213 #lineitems += ({"lineItemsId":"itemid4","beneficiaryName":"Student Union",214 #"beneficiaryAccount":"0025636203","bankCode":"039",215 #"beneficiaryAmount":student_union,"deductFeeFrom":"0"},)188 if self.context.student.is_jupeb: 189 if self.context.p_category == 'clearance': 190 provider_amt = self.dynamic_provider_amt(self.context.student) 191 reduced_inst_amt = 0.7 * inst_amt 192 jupeb_amt = 0.3 * inst_amt 193 elif self.context.p_category == 'schoolfee' and \ 194 not self.context.p_item == 'Balance': 195 provider_amt = self.dynamic_provider_amt(self.context.student) 196 #if self.context.student.depcode in ('AGR_JUP','EDU_JUP','ENG_JUP', 197 # 'LSC_JUP','MED_JUP','PSC_JUP'): 198 # lab_amt = 10000 199 reduced_inst_amt = 0.7 * (inst_amt - lab_amt) 200 jupeb_amt = 0.3 * (inst_amt - lab_amt) + lab_amt 201 lineitems = ( 202 {"lineItemsId":"itemid1","beneficiaryName":"Uniben", 203 "beneficiaryAccount":inst_acct,"bankCode":inst_bankcode, 204 "beneficiaryAmount":reduced_inst_amt,"deductFeeFrom":"1"}, 205 ) 206 lineitems += ({"lineItemsId":"itemid2","beneficiaryName":"JUPEB", 207 "beneficiaryAccount":"1100020192","bankCode":"039", 208 "beneficiaryAmount":jupeb_amt,"deductFeeFrom":"0"},) 209 if provider_amt: 210 lineitems += ({"lineItemsId":"itemid3","beneficiaryName":"WAeAC", 211 "beneficiaryAccount":"1014261520","bankCode":"057", 212 "beneficiaryAmount":provider_amt,"deductFeeFrom":"0"},) 213 if student_union: 214 lineitems += ({"lineItemsId":"itemid4","beneficiaryName":"Student Union", 215 "beneficiaryAccount":"0025636203","bankCode":"039", 216 "beneficiaryAmount":student_union,"deductFeeFrom":"0"},) 216 217 217 218
Note: See TracChangeset for help on using the changeset viewer.