Changeset 14329 for main/waeup.kwarapoly/trunk/src
- Timestamp:
- 9 Dec 2016, 06:46:14 (8 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r14257 r14329 55 55 #All special payments moved to GTBank on 15-10-2015 56 56 SPECIAL_PAYMENT_PARAMS = { 57 'certificate': ('111', 200.0, 300.0, '0 106259811', '10'),58 'state_result': ('112', 200.0, 300.0, '0 106259811', '10'),59 'transcript_local': ('113', 200.0, 300.0, '0 106259811', '10'),60 'transcript_foreign': ('114', 200.0, 300.0, '0 106259811', '10'),61 'ver_result': ('115', 200.0, 300.0, '0 106259811', '10'),62 'change_course': ('116', 200.0, 300.0, '0 106259811', '10'),63 'change_inst': ('117', 200.0, 300.0, '0 106259811', '10'),64 'jamb_reject': ('118', 200.0, 300.0, '0 106259811', '10'),65 'cert_of_cert': ('119', 200.0, 300.0, '0 106259811', '10'),66 'ref_let': ('120', 200.0, 300.0, '0 106259811', '10'),67 'proc_cert': ('121', 200.0, 300.0, '0 106259811', '10'),68 'loss_idcard': ('122', 6.0, 9.0, '0 106259811', '10'),69 'loss_examcard': ('123', 3.0, 4.5, '0 106259811', '10'),70 'loss_result': ('124', 200.0, 300.0, '0 106259811', '10'),71 'loss_receipt': ('125', 200.0, 300.0, '0 106259811', '10'),72 'loss_clearance': ('126', 200.0, 300.0, '0 106259811', '10'),73 'conv_brochure': ('127', 200.0, 300.0, '0 106259811', '10'),74 'hnd_certificate': ('128', 200.0, 300.0, '0 106259811', '10'),75 'hnd_state_result': ('129', 200.0, 300.0, '0 106259811', '10'),76 'hnd_transcript_local': ('130', 200.0, 300.0, '0 106259811', '10'),77 'hnd_transcript_foreign': ('131', 200.0, 300.0, '0 106259811', '10'),78 'staff_loss_idcard': ('132', 6.0, 9.0, '0 106259811', '10'),79 'hnd_conv_brochure': ('133', 200.0, 300.0, '0 106259811', '10'),80 'pgd_state_result': ('134', 200.0, 300.0, '0 106259811', '10'),81 'pgd_conv_brochure': ('135', 200.0, 300.0, '0 106259811', '10'),82 'pgd_certificate': ('136', 200.0, 300.0, '0 106259811', '10'),83 'log_book': ('137', 3.0, 4.5, '0 106259811', '10'),84 'pgd_transcript_foreign': ('138', 200.0, 300.0, '0 106259811', '10'),85 'pgd_transcript_local': ('139', 200.0, 300.0, '0 106259811', '10'),86 'jamb_regularization': ('140', 200.0, 300.0, '0 106259811', '10'),87 'utme_registration': ('142', 6.0, 9.0, '0 106259811', '10'),88 'utme_cbt': ('143', 6.0, 9.0, '0 106259811', '10'),89 'nysc_id_card': ('144', 6.0, 9.0, '0 106259811', '10'),90 'ijmb_result': ('147', 200.0, 300.0, '0 106259811', '10'),57 'certificate': ('111', 200.0, 300.0, '0838798044', '76'), 58 'state_result': ('112', 200.0, 300.0, '0838798044', '76'), 59 'transcript_local': ('113', 200.0, 300.0, '0838798044', '76'), 60 'transcript_foreign': ('114', 200.0, 300.0, '0838798044', '76'), 61 'ver_result': ('115', 200.0, 300.0, '0838798044', '76'), 62 'change_course': ('116', 200.0, 300.0, '0838798044', '76'), 63 'change_inst': ('117', 200.0, 300.0, '0838798044', '76'), 64 'jamb_reject': ('118', 200.0, 300.0, '0838798044', '76'), 65 'cert_of_cert': ('119', 200.0, 300.0, '0838798044', '76'), 66 'ref_let': ('120', 200.0, 300.0, '0838798044', '76'), 67 'proc_cert': ('121', 200.0, 300.0, '0838798044', '76'), 68 'loss_idcard': ('122', 6.0, 9.0, '0838798044', '76'), 69 'loss_examcard': ('123', 3.0, 4.5, '0838798044', '76'), 70 'loss_result': ('124', 200.0, 300.0, '0838798044', '76'), 71 'loss_receipt': ('125', 200.0, 300.0, '0838798044', '76'), 72 'loss_clearance': ('126', 200.0, 300.0, '0838798044', '76'), 73 'conv_brochure': ('127', 200.0, 300.0, '0838798044', '76'), 74 'hnd_certificate': ('128', 200.0, 300.0, '0838798044', '76'), 75 'hnd_state_result': ('129', 200.0, 300.0, '0838798044', '76'), 76 'hnd_transcript_local': ('130', 200.0, 300.0, '0838798044', '76'), 77 'hnd_transcript_foreign': ('131', 200.0, 300.0, '0838798044', '76'), 78 'staff_loss_idcard': ('132', 6.0, 9.0, '0838798044', '76'), 79 'hnd_conv_brochure': ('133', 200.0, 300.0, '0838798044', '76'), 80 'pgd_state_result': ('134', 200.0, 300.0, '0838798044', '76'), 81 'pgd_conv_brochure': ('135', 200.0, 300.0, '0838798044', '76'), 82 'pgd_certificate': ('136', 200.0, 300.0, '0838798044', '76'), 83 'log_book': ('137', 3.0, 4.5, '0838798044', '76'), 84 'pgd_transcript_foreign': ('138', 200.0, 300.0, '0838798044', '76'), 85 'pgd_transcript_local': ('139', 200.0, 300.0, '0838798044', '76'), 86 'jamb_regularization': ('140', 200.0, 300.0, '0838798044', '76'), 87 'utme_registration': ('142', 6.0, 9.0, '0838798044', '76'), 88 'utme_cbt': ('143', 6.0, 9.0, '0838798044', '76'), 89 'nysc_id_card': ('144', 6.0, 9.0, '0838798044', '76'), 90 'ijmb_result': ('147', 200.0, 300.0, '0838798044', '76'), 91 91 } 92 92 … … 124 124 gateway_amt = GATEWAY_AMT 125 125 self.pay_item_id = '000' 126 xmldict['institution_acct'] = "0106259811"127 xmldict['institution_bank_id'] = "10"126 xmldict['institution_acct'] = '0838798044' 127 xmldict['institution_bank_id'] = '76' 128 128 if self.context.p_category == 'schoolfee' \ 129 129 or self.context.p_category.startswith('carryover'): … … 133 133 if not student.current_mode.endswith('_we'): 134 134 if xmldict['faculty'] in ('CPGS',): 135 xmldict['institution_acct'] = "0106259811"136 xmldict['institution_bank_id'] = ' 10'135 xmldict['institution_acct'] = '0838798044' 136 xmldict['institution_bank_id'] = '76' 137 137 elif xmldict['faculty'] in ('IAS',): 138 xmldict['institution_acct'] = "0106259811"139 xmldict['institution_bank_id'] = ' 10'138 xmldict['institution_acct'] = '0838798044' 139 xmldict['institution_bank_id'] = '76' 140 140 self.pay_item_id = '107' 141 141 elif xmldict['faculty'] in ('IES',): 142 xmldict['institution_acct'] = "0106259811"143 xmldict['institution_bank_id'] = ' 10'142 xmldict['institution_acct'] = '0838798044' 143 xmldict['institution_bank_id'] = '76' 144 144 self.pay_item_id = '109' 145 145 elif xmldict['faculty'] in ('IFMS',): 146 xmldict['institution_acct'] = "0106259811"147 xmldict['institution_bank_id'] = ' 10'146 xmldict['institution_acct'] = '0838798044' 147 xmldict['institution_bank_id'] = '76' 148 148 self.pay_item_id = '106' 149 149 elif xmldict['faculty'] in ('IOT',): 150 xmldict['institution_acct'] = "0106259811"151 xmldict['institution_bank_id'] = ' 10'150 xmldict['institution_acct'] = '0838798044' 151 xmldict['institution_bank_id'] = '76' 152 152 self.pay_item_id = '110' 153 153 elif xmldict['faculty'] in ('IICT',): 154 xmldict['institution_acct'] = "0106259811"155 xmldict['institution_bank_id'] = ' 10'154 xmldict['institution_acct'] = '0838798044' 155 xmldict['institution_bank_id'] = '76' 156 156 self.pay_item_id = '108' 157 157 else: 158 xmldict['institution_acct'] = "0106259811"159 xmldict['institution_bank_id'] = ' 10'158 xmldict['institution_acct'] = '0838798044' 159 xmldict['institution_bank_id'] = '76' 160 160 #Introduce a pay_item_id for part-time for the first time on this portal 161 161 self.pay_item_id = '145' … … 168 168 elif 'maintenance' in self.context.p_category: 169 169 self.pay_item_id = '102' 170 xmldict['institution_acct'] = "0106259811"171 xmldict['institution_bank_id'] = ' 10'170 xmldict['institution_acct'] = '0838798044' 171 xmldict['institution_bank_id'] = '76' 172 172 dalash_amt = 0.0 173 173 provider_amt = 0.0 174 174 elif 'clearance' in self.context.p_category: 175 175 self.pay_item_id = '146' 176 xmldict['institution_acct'] = "0106259811"177 xmldict['institution_bank_id'] = ' 10'176 xmldict['institution_acct'] = '0838798044' 177 xmldict['institution_bank_id'] = '76' 178 178 else: 179 179 xmldict['institution_acct'] = "0000000000000" … … 249 249 xmldict['institution_bank_id'] = '00' 250 250 if self.applicant.applicant_id.startswith('hnd'): 251 xmldict['institution_acct'] = '0 106259811'252 xmldict['institution_bank_id'] = ' 10'251 xmldict['institution_acct'] = '0838798044' 252 xmldict['institution_bank_id'] = '76' 253 253 elif self.applicant.applicant_id.startswith('nd'): 254 xmldict['institution_acct'] = '0 106259811'255 xmldict['institution_bank_id'] = ' 10'254 xmldict['institution_acct'] = '0838798044' 255 xmldict['institution_bank_id'] = '76' 256 256 elif self.applicant.applicant_id.startswith('rmd'): 257 xmldict['institution_acct'] = '0 106259811'258 xmldict['institution_bank_id'] = ' 10'257 xmldict['institution_acct'] = '0838798044' 258 xmldict['institution_bank_id'] = '76' 259 259 elif self.applicant.applicant_id.startswith('pgft'): 260 xmldict['institution_acct'] = '0 106259811'261 xmldict['institution_bank_id'] = ' 10'260 xmldict['institution_acct'] = '0838798044' 261 xmldict['institution_bank_id'] = '76' 262 262 elif self.applicant.applicant_id.startswith('putme'): 263 xmldict['institution_acct'] = '0 106259811'264 xmldict['institution_bank_id'] = ' 10'263 xmldict['institution_acct'] = '0838798044' 264 xmldict['institution_bank_id'] = '76' 265 265 self.pay_item_id = '104' 266 266 elif self.applicant.applicant_id.startswith('pre'): 267 xmldict['institution_acct'] = '0 106259811'268 xmldict['institution_bank_id'] = ' 10'267 xmldict['institution_acct'] = '0838798044' 268 xmldict['institution_bank_id'] = '76' 269 269 provider_amt = 262.5 270 270 dalash_amt = 0.0 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r14261 r14329 162 162 self.browser.contents) 163 163 self.assertTrue( 164 'item_name="School Fee" item_amt="2920000" bank_id=" 10" acct_num="0106259811"' in164 'item_name="School Fee" item_amt="2920000" bank_id="76" acct_num="0838798044"' in 165 165 self.browser.contents) 166 166 self.assertTrue( … … 223 223 self.browser.contents) 224 224 self.assertTrue( 225 'item_name="Hostel Maintenance" item_amt="57600" bank_id=" 10" acct_num="0106259811"' in225 'item_name="Hostel Maintenance" item_amt="57600" bank_id="76" acct_num="0838798044"' in 226 226 self.browser.contents) 227 227 … … 248 248 self.browser.contents) 249 249 self.assertTrue( 250 'item_name="One Carry-Over" item_amt="270000" bank_id=" 10" acct_num="0106259811"' in250 'item_name="One Carry-Over" item_amt="270000" bank_id="76" acct_num="0838798044"' in 251 251 self.browser.contents) 252 252 self.assertTrue( … … 547 547 self.assertTrue( 548 548 '<item_detail item_id="1" item_name="Application" ' 549 'item_amt="253300" bank_id=" 10" acct_num="0106259811" />'549 'item_amt="253300" bank_id="76" acct_num="0838798044" />' 550 550 in self.browser.contents) 551 551 … … 559 559 self.assertTrue( 560 560 '<item_detail item_id="1" item_name="Application" ' 561 'item_amt="253300" bank_id=" 10" acct_num="0106259811" />'561 'item_amt="253300" bank_id="76" acct_num="0838798044" />' 562 562 in self.browser.contents) 563 563 # Commission or bribe? … … 580 580 self.assertTrue( 581 581 '<item_detail item_id="1" item_name="Application" ' 582 'item_amt="303300" bank_id=" 10" acct_num="0106259811" />'582 'item_amt="303300" bank_id="76" acct_num="0838798044" />' 583 583 in self.browser.contents) 584 584 self.assertFalse('Dalash' in self.browser.contents) … … 597 597 self.assertTrue( 598 598 '<item_detail item_id="1" item_name="Application" ' 599 'item_amt="303300" bank_id=" 10" acct_num="0106259811" />'599 'item_amt="303300" bank_id="76" acct_num="0838798044" />' 600 600 in self.browser.contents) 601 601 self.assertFalse('Dalash' in self.browser.contents) … … 618 618 self.assertTrue( 619 619 '<item_detail item_id="1" item_name="Application" ' 620 'item_amt="253300" bank_id=" 10" acct_num="0106259811" />'620 'item_amt="253300" bank_id="76" acct_num="0838798044" />' 621 621 in self.browser.contents) 622 622 self.assertTrue( … … 642 642 self.assertTrue( 643 643 '<item_detail item_id="1" item_name="Application" ' 644 'item_amt="253300" bank_id=" 10" acct_num="0106259811" />'644 'item_amt="253300" bank_id="76" acct_num="0838798044" />' 645 645 in self.browser.contents) 646 646 delta = timedelta(days=8) … … 692 692 self.assertTrue( 693 693 '<item_detail item_id="1" item_name="ND Transcript (local)" ' 694 'item_amt="450000" bank_id=" 10" acct_num="0106259811" />'694 'item_amt="450000" bank_id="76" acct_num="0838798044" />' 695 695 in self.browser.contents) 696 696 … … 705 705 self.assertTrue( 706 706 '<item_detail item_id="1" item_name="Log Book" ' 707 'item_amt="55444" bank_id=" 10" acct_num="0106259811" />'707 'item_amt="55444" bank_id="76" acct_num="0838798044" />' 708 708 in self.browser.contents) 709 709
Note: See TracChangeset for help on using the changeset viewer.