Changeset 15384 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 3 Apr 2019, 13:42:58 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15383 r15384 226 226 # First agreement 227 227 provider_amt = 1900.0 228 #joint_venture_amt = 1100.0229 #aaue_share_amt = 1000.0228 joint_venture_amt = 1100.0 229 aaue_share_amt = 1000.0 230 230 student_union_due_amt = gateway_net_amt( 231 231 academic_session.union_fee) … … 240 240 xmldict['student_union_bank_id'] = '31' 241 241 xmldict['student_union_acct'] = '0051005007' 242 #xmldict['aaue_share_bank_id'] = '117'243 #xmldict['aaue_share_acct'] = '1010827641'244 #xmldict['joint_venture_bank_id'] = '117'245 #xmldict['joint_venture_acct'] = '1010827641'242 xmldict['aaue_share_bank_id'] = '117' 243 xmldict['aaue_share_acct'] = '1010827641' 244 xmldict['joint_venture_bank_id'] = '117' 245 xmldict['joint_venture_acct'] = '1010827641' 246 246 xmldict['institution_acct'] = '1014847058' 247 247 xmldict['institution_bank_id'] = '7' … … 253 253 # Second agreement 254 254 provider_amt = 1500.0 255 #joint_venture_amt = 1000.0256 #aaue_share_amt = 1500.0255 joint_venture_amt = 1000.0 256 aaue_share_amt = 1500.0 257 257 student_union_due_amt = gateway_net_amt( 258 258 academic_session.union_fee) … … 267 267 xmldict['student_union_bank_id'] = '7' 268 268 xmldict['student_union_acct'] = '1019763348' 269 #xmldict['aaue_share_bank_id'] = '117'270 #xmldict['aaue_share_acct'] = '1010827641'271 #xmldict['joint_venture_bank_id'] = '117'272 #xmldict['joint_venture_acct'] = '1010827641'269 xmldict['aaue_share_bank_id'] = '117' 270 xmldict['aaue_share_acct'] = '1010827641' 271 xmldict['joint_venture_bank_id'] = '117' 272 xmldict['joint_venture_acct'] = '1010827641' 273 273 self.pay_item_id = '107' 274 274 if student.is_postgrad: … … 280 280 281 281 xmldict['provider_amt'] = 100 * provider_amt 282 #xmldict['joint_venture_amt'] = 100 * joint_venture_amt283 #xmldict['aaue_share_amt'] = 100 * aaue_share_amt282 xmldict['joint_venture_amt'] = 100 * joint_venture_amt 283 xmldict['aaue_share_amt'] = 100 * aaue_share_amt 284 284 if self.context.p_item == 'Balance': 285 285 xmldict['institution_amt'] = 100 * ( … … 300 300 gateway_net_amt(self.context.amount_auth) 301 301 - provider_amt 302 #- joint_venture_amt303 #- aaue_share_amt302 - joint_venture_amt 303 - aaue_share_amt 304 304 - student_union_due_amt 305 305 - student_welfare_assurance_amt … … 310 310 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 311 311 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 312 <item_detail item_id="3" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" /> 313 <item_detail item_id="4" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" /> 314 <item_detail item_id="5" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1006407792" /> 315 <item_detail item_id="6" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" /> 312 <item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" /> 313 <item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" /> 314 <item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" /> 315 <item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" /> 316 <item_detail item_id="7" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1006407792" /> 317 <item_detail item_id="8" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" /> 316 318 </item_details> 317 319 </payment_item_detail>""" % xmldict … … 320 322 gateway_net_amt(self.context.amount_auth) 321 323 - provider_amt 322 #- joint_venture_amt323 #- aaue_share_amt324 - joint_venture_amt 325 - aaue_share_amt 324 326 - student_union_due_amt 325 327 - student_welfare_assurance_amt) … … 328 330 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 329 331 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 330 <item_detail item_id="3" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" /> 331 <item_detail item_id="4" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" /> 332 </item_details> 333 </payment_item_detail>""" % xmldict 334 335 else: 336 # Schoolfee without Student Union Fee and Student Welfare Assurance 332 <item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" /> 333 <item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" /> 334 <item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" /> 335 <item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" /> 336 </item_details> 337 </payment_item_detail>""" % xmldict 338 339 elif student.current_mode == 'bridge': 340 # Bridge school fee without any additional fee 341 xmldict['institution_amt'] = 100 * ( 342 gateway_net_amt(self.context.amount_auth) 343 - provider_amt) 344 xmltext = """<payment_item_detail> 345 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 346 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 347 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 348 </item_details> 349 </payment_item_detail>""" % xmldict 350 else: 351 # Schoolfee without Student Union Fee ands Student Welfare Assurance 337 352 xmldict['institution_amt'] = 100 * ( 338 353 gateway_net_amt(self.context.amount_auth) 339 354 - provider_amt 340 #- joint_venture_amt 341 #- aaue_share_amt 342 ) 355 - joint_venture_amt 356 - aaue_share_amt) 343 357 xmltext = """<payment_item_detail> 344 358 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 345 359 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 346 360 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 361 <item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" /> 362 <item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" /> 347 363 </item_details> 348 364 </payment_item_detail>""" % xmldict -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r15383 r15384 236 236 self.assertTrue( 237 237 'item_name="School Fee Plus" ' 238 'item_amt="4 810000" bank_id="7" '238 'item_amt="4600000" bank_id="7" ' 239 239 'acct_num="1014847058"' in self.browser.contents) 240 240 … … 277 277 in self.browser.contents) 278 278 self.assertTrue( 279 'item_name="School Fee Plus" item_amt=" 5000000" bank_id="117" '279 'item_name="School Fee Plus" item_amt="4750000" bank_id="117" ' 280 280 'acct_num="1010827641"' in self.browser.contents) 281 281
Note: See TracChangeset for help on using the changeset viewer.