Changeset 9460 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 29 Oct 2012, 21:09:42 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r9443 r9460 235 235 xmldict['institution_amt'] = '0.0' 236 236 if self.context.p_category == 'schoolfee': 237 if student.current_mode.endswith('_ft') \ 238 and student.state == RETURNING: 239 provider_amt = 600 240 else: 241 provider_amt = 1500 242 #studycourse = student['studycourse'] 237 provider_amt = 1500 243 238 if student.current_mode.endswith('_ft'): 244 239 self.pay_item_id = '5700' 245 #post-grad full-time students of all faculties 246 if student.is_postgrad: 247 xmldict['institution_acct'] = '1012842833' 248 xmldict['institution_bank_id'] = '117' 249 #all other part-time students depending on faculty 250 elif student.faccode in ('SSC','LAW','MED'): 251 xmldict['institution_acct'] = '0005986938' 252 xmldict['institution_bank_id'] = '31' 253 elif student.faccode in ('ENG','PSC','PHA'): 254 xmldict['institution_acct'] = '0014413973' 255 xmldict['institution_bank_id'] = '129' 256 elif student.faccode in ('LSC','DEN','AGR'): 257 xmldict['institution_acct'] = '1012801319' 258 xmldict['institution_bank_id'] = '117' 259 elif student.faccode in ('ART','EDU','MGS','BMS'): 260 xmldict['institution_acct'] = '6220027556' 240 if student.current_mode in ('ug_ft','de_ft','ct_ft','ume_ft'): 241 xmldict['institution_acct'] = '2017506430' 242 xmldict['institution_bank_id'] = '8' 243 elif student.current_mode in ('dp_ft'): 244 xmldict['institution_acct'] = '9201805071' 245 xmldict['institution_bank_id'] = '17' 246 elif student.current_mode in ('pg_ft'): 247 xmldict['institution_acct'] = '5330832799' 261 248 xmldict['institution_bank_id'] = '51' 262 249 elif student.current_mode.endswith('_pt'): 263 250 self.pay_item_id = '5701' 264 #post-grad part-time students of all faculties 265 if student.is_postgrad: 266 xmldict['institution_acct'] = '0023708207' 267 xmldict['institution_bank_id'] = '72' 268 #all other part-time students depending on faculty 269 elif student.faccode in ('ENG','LAW','MGS'): 270 xmldict['institution_acct'] = '2019006824' 271 xmldict['institution_bank_id'] = '8' 272 elif student.faccode in ('IPA','PHA','SSC','AGR','EDU'): 273 xmldict['institution_acct'] = '0122012109' 251 if student.current_mode in ('ug_pt','de_pt','ct_pt'): 252 xmldict['institution_acct'] = '0122009929' 274 253 xmldict['institution_bank_id'] = '16' 254 elif student.current_mode in ('dp_pt'): 255 xmldict['institution_acct'] = '9201805071' 256 xmldict['institution_bank_id'] = '17' 257 elif student.current_mode in ('pg_pt'): 258 xmldict['institution_acct'] = '0031716047' 259 xmldict['institution_bank_id'] = '10' 275 260 elif self.context.p_category == 'clearance': 276 261 self.pay_item_id = '5702' -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9453 r9460 86 86 self.assertMatches('...Total Amount Authorized:...', 87 87 self.browser.contents) 88 self.assertEqual(self.student.current_mode, 'ug_ft') 88 89 self.assertMatches( 89 90 '...<input type="hidden" name="amount" value="4000000.0" />...', 90 91 self.browser.contents) 91 92 self.assertMatches( 92 '...item_name="School Fee" item_amt="3835000" bank_id=" 00" acct_num="000000000000"...',93 '...item_name="School Fee" item_amt="3835000" bank_id="8" acct_num="2017506430"...', 93 94 self.browser.contents) 94 95 self.assertMatches( … … 115 116 self.browser.contents) 116 117 self.assertMatches( 117 '...item_name="School Fee" item_amt="1835000" bank_id=" 00" acct_num="000000000000"...',118 '...item_name="School Fee" item_amt="1835000" bank_id="16" acct_num="0122009929"...', 118 119 self.browser.contents) 119 120 self.assertMatches(
Note: See TracChangeset for help on using the changeset viewer.