Changeset 17445 for main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Timestamp:
- 22 Jun 2023, 03:54:31 (18 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
r17444 r17445 94 94 reader = csv.DictReader(open(schoolfees_path, 'rb')) 95 95 SCHOOLFEES_21 = {item['code']:item for item in reader} 96 97 schoolfees_path = os.path.join( 98 os.path.dirname(__file__), '../students/schoolfees_20.csv') 99 reader = csv.DictReader(open(schoolfees_path, 'rb')) 100 SCHOOLFEES_20 = {item['code']:item for item in reader} 101 102 schoolfees_path = os.path.join( 103 os.path.dirname(__file__), '../students/schoolfees_19.csv') 104 reader = csv.DictReader(open(schoolfees_path, 'rb')) 105 SCHOOLFEES_19 = {item['code']:item for item in reader} 96 106 97 107 acceptancefees_path = os.path.join( … … 263 273 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">""" % xmldict 264 274 item_id = 1 265 if student.entry_session < 2022: 275 if student.entry_session < 2020: 276 sorted_items = SCHOOLFEES_19[student.certcode].items() 277 elif student.entry_session < 2021: 278 sorted_items = SCHOOLFEES_20[student.certcode].items() 279 elif student.entry_session < 2022: 266 280 sorted_items = SCHOOLFEES_21[student.certcode].items() 267 281 else: -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r17440 r17445 305 305 in self.browser.contents) 306 306 self.assertTrue( 307 'item_name=" LMS Plus Fee" item_amt="2000000" bank_id="7" acct_num="1022438743"' in self.browser.contents)307 'item_name="Student Union Dues" item_amt="3000000" bank_id="7" acct_num="1019763348"' in self.browser.contents) 308 308 self.assertTrue( 309 309 'item_name="Tuition" item_amt="9200000" bank_id="7" acct_num="1022438743"' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.