Changeset 14920 for main/waeup.aaue/trunk
- Timestamp:
- 7 Dec 2017, 13:38:59 (7 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
r14910 r14920 96 96 xmldict = {} 97 97 provider_amt = 4000.0 98 xmldict['institution_acct'] = '10108 35352'98 xmldict['institution_acct'] = '1010827641' 99 99 xmldict['institution_bank_id'] = '117' 100 100 xmldict['detail_ref'] = self.context.p_id … … 107 107 108 108 if self.applicant.applicant_id.startswith('ijmbe'): 109 xmldict['institution_acct'] = ' 0772012897'110 xmldict['institution_bank_id'] = ' 47'109 xmldict['institution_acct'] = '1010827641' 110 xmldict['institution_bank_id'] = '117' 111 111 112 112 if self.applicant.applicant_id.startswith('trans'): 113 xmldict['institution_acct'] = ' 2031473949'114 xmldict['institution_bank_id'] = ' 8'113 xmldict['institution_acct'] = '1010827641' 114 xmldict['institution_bank_id'] = '117' 115 115 116 116 if self.applicant.applicant_id.startswith('cert'): 117 xmldict['institution_acct'] = ' 2031473949'118 xmldict['institution_bank_id'] = ' 8'117 xmldict['institution_acct'] = '1010827641' 118 xmldict['institution_bank_id'] = '117' 119 119 120 120 if self.applicant.applicant_id.startswith('pg'): … … 248 248 student_welfare_assurance_amt = gateway_net_amt( 249 249 academic_session.welfare_fee) 250 xmldict['institution_bank_id'] = ' 7'251 xmldict['institution_acct'] = '101 4847058'250 xmldict['institution_bank_id'] = '117' 251 xmldict['institution_acct'] = '1010827641' 252 252 xmldict['student_union_bank_id'] = '31' 253 253 xmldict['student_union_acct'] = '0051005007' 254 xmldict['aaue_share_bank_id'] = ' 51'255 xmldict['aaue_share_acct'] = ' 5060020947'256 xmldict['joint_venture_bank_id'] = ' 51'257 xmldict['joint_venture_acct'] = ' 5060023759'254 xmldict['aaue_share_bank_id'] = '117' 255 xmldict['aaue_share_acct'] = '1010827641' 256 xmldict['joint_venture_bank_id'] = '117' 257 xmldict['joint_venture_acct'] = '1010827641' 258 258 if student.current_mode == 'found': 259 259 self.pay_item_id = '103' … … 273 273 xmldict['student_union_bank_id'] = '7' 274 274 xmldict['student_union_acct'] = '1019763348' 275 xmldict['aaue_share_bank_id'] = '11 '276 xmldict['aaue_share_acct'] = ' 0030656377'275 xmldict['aaue_share_bank_id'] = '117' 276 xmldict['aaue_share_acct'] = '1010827641' 277 277 xmldict['joint_venture_bank_id'] = '117' 278 xmldict['joint_venture_acct'] = '101 4573025'278 xmldict['joint_venture_acct'] = '1010827641' 279 279 self.pay_item_id = '107' 280 280 if student.is_postgrad: 281 xmldict['institution_bank_id'] = ' 51'282 xmldict['institution_acct'] = ' 5210006575'281 xmldict['institution_bank_id'] = '117' 282 xmldict['institution_acct'] = '1010827641' 283 283 self.pay_item_id = '111' 284 284 if student.current_mode == 'ijmbe': 285 xmldict['institution_bank_id'] = ' 47'286 xmldict['institution_acct'] = ' 0772012897'285 xmldict['institution_bank_id'] = '117' 286 xmldict['institution_acct'] = '1010827641' 287 287 self.pay_item_id = '119' 288 288 xmldict['joint_venture_bank_id'] = '117' … … 346 346 else: 347 347 self.pay_item_id = '104' 348 xmldict['institution_acct'] = '101 4066976'348 xmldict['institution_acct'] = '1010827641' 349 349 xmldict['institution_bank_id'] = '117' 350 350 else: … … 354 354 xmldict['institution_bank_id'] = '117' 355 355 if student.is_postgrad: 356 xmldict['institution_bank_id'] = ' 51'357 xmldict['institution_acct'] = ' 5210006575'356 xmldict['institution_bank_id'] = '117' 357 xmldict['institution_acct'] = '1010827641' 358 358 self.pay_item_id = '110' 359 359 if student.current_mode == 'ijmbe': 360 xmldict['institution_bank_id'] = ' 47'361 xmldict['institution_acct'] = ' 0772012897'360 xmldict['institution_bank_id'] = '117' 361 xmldict['institution_acct'] = '1010827641' 362 362 self.pay_item_id = '120' 363 363 … … 375 375 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 376 376 <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" /> 377 <item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id=" 51" acct_num="5060020947" />377 <item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id="117" acct_num="1010827641" /> 378 378 <item_detail item_id="3" item_name="AAU File-Lapel Fee" item_amt="%(aaue_lf_fee_amt)d" bank_id="51" acct_num="4010660109" /> 379 379 </item_details> … … 451 451 elif self.context.p_category == 'matric_gown': 452 452 self.pay_item_id = '106' 453 xmldict['institution_acct'] = ' 5060023429'454 xmldict['institution_bank_id'] = ' 51'453 xmldict['institution_acct'] = '1010827641' 454 xmldict['institution_bank_id'] = '117' 455 455 xmldict['institution_amt'] = 100 * ( 456 456 gateway_net_amt(self.context.amount_auth)) … … 464 464 elif self.context.p_category == 'concessional': 465 465 self.pay_item_id = '107' 466 xmldict['institution_acct'] = '10108 35352'466 xmldict['institution_acct'] = '1010827641' 467 467 xmldict['institution_bank_id'] = '117' 468 468 xmldict['institution_amt'] = 100 * ( … … 479 479 self.pay_item_id = '109' 480 480 xmldict['provider_amt'] = 100 * provider_amt 481 xmldict['institution_acct'] = '10 06406795'482 xmldict['institution_bank_id'] = '1 23'481 xmldict['institution_acct'] = '1010827641' 482 xmldict['institution_bank_id'] = '117' 483 483 xmldict['institution_amt'] = 100 * ( 484 484 gateway_net_amt(self.context.amount_auth) - provider_amt) … … 554 554 else: 555 555 self.pay_item_id = '123' 556 xmldict['institution_acct'] = '10108 35352'556 xmldict['institution_acct'] = '1010827641' 557 557 xmldict['institution_bank_id'] = '117' 558 558 xmldict['institution_amt'] = 100 * ( -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r14910 r14920 81 81 in self.browser.contents) 82 82 self.assertTrue( 83 'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="10108 35352"'83 'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010827641"' 84 84 in self.browser.contents) 85 85 self.assertTrue( … … 112 112 in self.browser.contents) 113 113 self.assertTrue( 114 'item_name="Application Fee" item_amt="375000" bank_id="117" acct_num="10108 35352"'114 'item_name="Application Fee" item_amt="375000" bank_id="117" acct_num="1010827641"' 115 115 in self.browser.contents) 116 116 self.assertTrue( … … 146 146 in self.browser.contents) 147 147 self.assertTrue( 148 'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="10108 35352"'148 'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010827641"' 149 149 in self.browser.contents) 150 150 self.assertFalse( … … 218 218 self.assertTrue( 219 219 'item_name="School Fee Plus" ' 220 'item_amt="4600000" bank_id=" 7" '221 'acct_num="101 4847058"' in self.browser.contents)220 'item_amt="4600000" bank_id="117" ' 221 'acct_num="1010827641"' in self.browser.contents) 222 222 223 223 def test_interswitch_form_regular_school_fees(self): … … 294 294 'item_name="Acceptance Fee Plus" ' 295 295 'item_amt="4000000" bank_id="117" ' 296 'acct_num="101 4066976"' in self.browser.contents)296 'acct_num="1010827641"' in self.browser.contents) 297 297 298 298 def test_interswitch_form_regular_acceptance_fees(self): … … 354 354 self.assertTrue( 355 355 'item_name="Concessional Fee" item_amt="131700" ' 356 'bank_id="117" acct_num="10108 35352"'356 'bank_id="117" acct_num="1010827641"' 357 357 in self.browser.contents) 358 358
Note: See TracChangeset for help on using the changeset viewer.