Ignore:
Timestamp:
22 Jun 2023, 03:54:31 (17 months ago)
Author:
Henrik Bettermann
Message:

Add old school fees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r17444 r17445  
    9494reader = csv.DictReader(open(schoolfees_path, 'rb'))
    9595SCHOOLFEES_21 = {item['code']:item for item in reader}
     96
     97schoolfees_path = os.path.join(
     98    os.path.dirname(__file__), '../students/schoolfees_20.csv')
     99reader = csv.DictReader(open(schoolfees_path, 'rb'))
     100SCHOOLFEES_20 = {item['code']:item for item in reader}
     101
     102schoolfees_path = os.path.join(
     103    os.path.dirname(__file__), '../students/schoolfees_19.csv')
     104reader = csv.DictReader(open(schoolfees_path, 'rb'))
     105SCHOOLFEES_19 = {item['code']:item for item in reader}
    96106
    97107acceptancefees_path = os.path.join(
     
    263273<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">""" % xmldict
    264274                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:
    266280                    sorted_items = SCHOOLFEES_21[student.certcode].items()
    267281                else:
Note: See TracChangeset for help on using the changeset viewer.