Changeset 17437 for main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Timestamp:
- 19 Jun 2023, 06:51:53 (20 months 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
r17434 r17437 56 56 57 57 BANK_ACCOUNTS = { 58 'edohis': ('1222577132', '117', 'Edo State Health Insurance'), 59 'union': ('1019763348', '7', 'Student Union'), 60 'sport': ('1021941220', '7', 'Sport Development'), 61 'access': ('1012688013', '123', 'Access Card'), 62 'notebook': ('4011210501', '51', 'Branded Notebook'), 63 'library': ('2000122995', '8', 'Library Development'), 64 'fac1': ('1022438743', '7', 'Faculty Fee'), 65 'fac2': ('2000249757', '8', 'Faculty Fee'), 66 'fac3': ('1012678566', '123', 'Faculty Fee'), 67 'acceptance': ('2000249757', '8', 'Acceptance Fee'), 68 'matricgown': ('2000249757', '8', 'Matriculation Gown Fee'), 69 'lapel': ('2000249757', '8', 'Lapel Fee'), 58 'edohis': ('1222577132', '117'), 59 'union': ('1019763348', '7'), 60 'sport': ('1021941220', '7'), 61 'access': ('1012688013', '123'), 62 'notebook': ('4011210501', '51'), 63 'library': ('2000122995', '8'), 64 'fac1': ('1022438743', '7'), 65 'fac2': ('2000249757', '8'), 66 'fac3': ('1012678566', '123'), 67 'acceptance': ('2000249757', '8'), 68 'matricgown': ('2000249757', '8'), 69 'lapel': ('2000249757', '8'), 70 } 71 72 FEE_NAMES = { 73 'edohis': 'Edo State Health Insurance Scheme', 74 'union': 'Student Union Dues', 75 'sport': 'Sport Development Fee', 76 'access': 'Access Card Fee', 77 'notebook': 'Branded Notebook', 78 'library': 'Library Development Fee', 79 'tuition': 'Tuition', 80 'acceptance': 'Acceptance Fee', 81 'matricgown': 'Matriculation Gown Fee', 82 'lapel': 'File-Lapel Fee', 83 'lmsplus': 'LMS Plus Fee', 84 'nuga': 'NUGA Fee', 70 85 } 71 86 … … 263 278 acct_num = bank[0] 264 279 bank_id = bank[1] 265 item_name = "%s (%s)" % (bank[2], item[0])280 item_name = FEE_NAMES[item[0]] 266 281 xmltext += """ 267 282 <item_detail item_id="%s" item_name="%s" item_amt="%d" bank_id="%s" acct_num="%s" />""" % (item_id, item_name, item_amt, bank_id, acct_num) … … 300 315 acct_num = bank[0] 301 316 bank_id = bank[1] 302 item_name = "%s (%s)" % (bank[2], item[0])317 item_name = FEE_NAMES[item[0]] 303 318 xmltext += """ 304 319 <item_detail item_id="%s" item_name="%s" item_amt="%d" bank_id="%s" acct_num="%s" />""" % (item_id, item_name, item_amt, bank_id, acct_num) -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r17434 r17437 268 268 in self.browser.contents) 269 269 self.assertTrue( 270 'item_name=" Faculty Fee (tuition)" item_amt="18400000" bank_id="7" '270 'item_name="Tuition" item_amt="18400000" bank_id="7" ' 271 271 'acct_num="1022438743"' in self.browser.contents) 272 272 … … 291 291 in self.browser.contents) 292 292 self.assertTrue( 293 'item_name=" School Fee(2nd instalment)" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents)293 'item_name="Tuition (2nd instalment)" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents) 294 294 295 295 self.browser.open(self.payments_path + '/addop') … … 305 305 in self.browser.contents) 306 306 self.assertTrue( 307 'item_name=" Faculty Fee (lmsplus)" item_amt="2000000" bank_id="7" acct_num="1022438743"' in self.browser.contents)308 self.assertTrue( 309 'item_name=" Faculty Fee (tuition)" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents)307 'item_name="LMS Plus Fee" item_amt="2000000" bank_id="7" acct_num="1022438743"' in self.browser.contents) 308 self.assertTrue( 309 'item_name="Tuition" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents) 310 310 311 311 self.browser.open(self.payments_path + '/addop') … … 321 321 in self.browser.contents) 322 322 self.assertTrue( 323 'item_name=" School Fee(2nd instalment)" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents)323 'item_name="Tuition (2nd instalment)" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents) 324 324 325 325 def disabled_test_interswitch_form_pt_acceptance_fees(self): … … 372 372 self.assertTrue(self.student['payments'].values()[0].net_amt == 16800) 373 373 self.assertTrue( 374 'item_name="Acceptance Fee (acceptance)" item_amt="1400000" bank_id="8" '374 'item_name="Acceptance Fee" item_amt="1400000" bank_id="8" ' 375 375 'acct_num="2000249757"' in self.browser.contents) 376 376
Note: See TracChangeset for help on using the changeset viewer.