Changeset 11865 for main/waeup.kwarapoly
- Timestamp:
- 21 Oct 2014, 19:16:07 (10 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r11797 r11865 127 127 dalash_amt = 1800.0 128 128 provider_amt = 1200.0 129 if xmldict['faculty'] in ('CPGS',): 130 xmldict['institution_acct'] = "1771586608" #changed account no. from 1771180233 131 xmldict['institution_bank_id'] = '120' 132 elif xmldict['faculty'] in ('IBAS',): 133 xmldict['institution_acct'] = "2013910271" 134 xmldict['institution_bank_id'] = '8' 135 self.pay_item_id = '107' 136 elif xmldict['faculty'] in ('IETS',): 137 xmldict['institution_acct'] = "2013910271" 138 xmldict['institution_bank_id'] = '8' 139 self.pay_item_id = '109' 140 elif xmldict['faculty'] in ('IFMS',): 141 xmldict['institution_acct'] = "0106259811" 142 xmldict['institution_bank_id'] = '10' 143 self.pay_item_id = '106' 144 elif xmldict['faculty'] in ('ITCH',): 145 xmldict['institution_acct'] = "1771586608" #changed account no. from 1771180233 146 xmldict['institution_bank_id'] = '120' 147 self.pay_item_id = '110' 148 elif xmldict['faculty'] in ('IICT',): 149 xmldict['institution_acct'] = "2013910271" 150 xmldict['institution_bank_id'] = '8' 151 self.pay_item_id = '108' 129 if not student.current_mode.endswith('_pt'): 130 if xmldict['faculty'] in ('CPGS',): 131 xmldict['institution_acct'] = "1771586608" #changed account no. from 1771180233 132 xmldict['institution_bank_id'] = '120' 133 elif xmldict['faculty'] in ('IBAS',): 134 xmldict['institution_acct'] = "1771586608" #Changed from FBN to SKYE Bank 135 xmldict['institution_bank_id'] = '120' 136 self.pay_item_id = '107' 137 elif xmldict['faculty'] in ('IETS',): 138 xmldict['institution_acct'] = "0693033406" #Changed from FBN to Access Bank 139 xmldict['institution_bank_id'] = '31' 140 self.pay_item_id = '109' 141 elif xmldict['faculty'] in ('IFMS',): 142 xmldict['institution_acct'] = "2013910271" #changed bank from GTBank to FBN 143 xmldict['institution_bank_id'] = '8' 144 self.pay_item_id = '106' 145 elif xmldict['faculty'] in ('ITCH',): 146 xmldict['institution_acct'] = "0106259811" #changed from SKYE Bank to GTbank 147 xmldict['institution_bank_id'] = '10' 148 self.pay_item_id = '110' 149 elif xmldict['faculty'] in ('IICT',): 150 xmldict['institution_acct'] = "1100019929" #changed from FBN to Keystone Bank 151 xmldict['institution_bank_id'] = '123' 152 self.pay_item_id = '108' 153 else: 154 xmldict['institution_acct'] = "0838798020" #part-time fees acquired by FCMB 155 xmldict['institution_bank_id'] = '76' 152 156 elif self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys(): 153 157 self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0] -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r11797 r11865 147 147 self.assertMatches('...Amount Authorized...', self.browser.contents) 148 148 self.assertMatches( 149 '...<span> 29500.0</span>...',149 '...<span>30500.0</span>...', 150 150 self.browser.contents) 151 151 self.payment_url = self.browser.url … … 163 163 self.browser.contents) 164 164 self.assertTrue( 165 '<input type="hidden" name="amount" value=" 2950000" />' in166 self.browser.contents) 167 self.assertTrue( 168 'item_name="School Fee" item_amt="2 620000" bank_id="120" acct_num="1771586608"' in165 '<input type="hidden" name="amount" value="3050000" />' in 166 self.browser.contents) 167 self.assertTrue( 168 'item_name="School Fee" item_amt="2720000" bank_id="120" acct_num="1771586608"' in 169 169 self.browser.contents) 170 170 self.assertTrue( -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r11453 r11865 246 246 self.assertEqual(payment.p_level, 200) 247 247 self.assertEqual(payment.p_session, 2005) 248 self.assertEqual(payment.amount_auth, 3 2090.0)248 self.assertEqual(payment.amount_auth, 33090.0) 249 249 self.assertEqual(payment.p_item, u'CERT1') 250 250 self.assertEqual(error, None) … … 252 252 configuration.penalty_ug = 5000.0 253 253 error, payment = utils.setPaymentDetails('schoolfee',self.student) 254 self.assertEqual(payment.amount_auth, 3 7090.0)254 self.assertEqual(payment.amount_auth, 38090.0) 255 255 self.assertEqual(error, None) 256 256 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r11646 r11865 55 55 ( 56 56 ( # 10 100 110 200 210 300 400 410 500 510 600 999 57 (34500.0, 39400.0, 28 500.0, 29500.0, 28500.0, 0.0, 40000.0, 29400.0, 31700.0, 29400.0, 0.0, 56600.0), # science58 (34500.0, 37900.0, 27 000.0, 28000.0, 27000.0, 0.0, 38500.0, 27900.0, 30200.0, 27900.0, 0.0, 55100.0) # arts57 (34500.0, 39400.0, 28800.0, 30500.0, 28800.0, 0.0, 40000.0, 29900.0, 33700.0, 29900.0, 0.0, 48750.0), # science 58 (34500.0, 37900.0, 27300.0, 29000.0, 27300.0, 0.0, 38500.0, 28400.0, 32200.0, 28400.0, 0.0, 47200.0) # arts 59 59 ), # local 60 60 ( # 10 100 110 200 210 300 400 410 500 510 600 999 61 (49600.0, 53900.0, 3 7600.0, 32090.0, 37600.0, 0.0, 56400.0, 39100.0, 34900.0, 39100.0, 0.0, 83250.0), # science62 (49600.0, 52400.0, 3 6100.0, 30590.0, 36100.0, 0.0, 54900.0, 37600.0, 33400.0, 37600.0, 0.0, 81750.0) # arts61 (49600.0, 53900.0, 35900.0, 33090.0, 35900.0, 0.0, 56400.0, 38600.0, 36900.0, 38600.0, 0.0, 63180.0), # science 62 (49600.0, 52400.0, 34400.0, 31590.0, 34400.0, 0.0, 54900.0, 37100.0, 35400.0, 37100.0, 0.0, 61680.0) # arts 63 63 ), # non-local 64 64 ), # ft 65 66 #Repeaters fees now included for part-times students to mirror that of full-time students67 65 ( 68 ( # 10 100 110 200 210 300 400 410 500 510 60099969 (0.0, 40700.0, 28 500.0, 29900.0, 28500.0, 29900.0, 41100.0, 29400.0, 31050.0, 29400.0, 31050.0, 0.0), # science70 (0.0, 39200.0, 27 000.0, 28400.0, 27000.0, 28400.0, 39600.0, 27900.0, 29550.0, 29400.0, 29550.0, 0.0) # arts66 ( # 10 100 110 200 210 300 400 410 500 510 600 999 67 (0.0, 40700.0, 28800.0, 30900.0, 28800.0, 30900.0, 41100.0, 29900.0, 33050.0, 29900.0, 33050.0, 0.0), # science 68 (0.0, 39200.0, 27300.0, 29400.0, 27300.0, 29400.0, 39600.0, 28400.0, 31550.0, 28400.0, 31550.0, 0.0) # arts 71 69 ), # local 72 ( # 10 100 110 200 210 300 400 410 500 510 60099973 (0.0, 55400.0, 3 7600.0, 33850.0, 37600.0, 33850.0, 58300.0, 39100.0, 42350.0, 39100.0, 42350.0, 0.0), # science74 (0.0, 53900.0, 3 6100.0, 32350.0, 36100.0, 32350.0, 56800.0, 37600.0, 40850.0, 37600.0, 40850.0, 0.0) # arts70 ( # 10 100 110 200 210 300 400 410 500 510 600 999 71 (0.0, 55400.0, 35900.0, 34850.0, 35900.0, 34850.0, 57800.0, 38600.0, 44350.0, 38600.0, 44350.0, 0.0), # science 72 (0.0, 53900.0, 34400.0, 33350.0, 34400.0, 33350.0, 56300.0, 37100.0, 42850.0, 37100.0, 42850.0, 0.0) # arts 75 73 ), # non-local 76 74 ), # pt
Note: See TracChangeset for help on using the changeset viewer.