Changeset 15663
- Timestamp:
- 13 Oct 2019, 13:44:40 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py
r15661 r15663 79 79 self.browser.contents) 80 80 self.assertTrue( 81 'item_name="Tuition Plus Total" item_amt="3985000" bank_id="00" acct_num="00000000"' in81 'item_name="Tuition Plus (total amount)" item_amt="3985000" bank_id="00" acct_num="00000000"' in 82 82 self.browser.contents) 83 83 -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r15661 r15663 81 81 # Determine fee. 82 82 if category in ('schoolfee', 'schoolfee40', 83 's choolfee50', 'schoolfee60'):83 'secondinstal'): 84 84 try: 85 85 certificate = student['studycourse'].certificate … … 121 121 ), None 122 122 amount = getattr(certificate, 'school_fee_2', 0.0) 123 if category == 'schoolfee40': 124 amount *= 0.4 125 elif category == 'secondinstal': 126 amount *= 0.6 123 127 elif category == 'clearance': 124 128 try: -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py
r15661 r15663 27 27 28 28 PAYMENT_CATEGORIES = { 29 'schoolfee40': 'Tuition Plus 40', 30 'schoolfee50': 'Tuition Plus 50', 31 'schoolfee60': 'Tuition Plus 60', 32 'schoolfee': 'Tuition Plus Total', 29 'schoolfee': 'Tuition Plus (total amount)', 30 'schoolfee40': 'Tuition Plus (40% - 1st instalment)', 31 'secondinstal': 'Tuition Plus (60% - 2nd instalment))', 33 32 'clearance': 'Acceptance Fee', 34 33 #'bed_allocation': 'Bed Allocation Fee', … … 55 54 56 55 SELECTABLE_PAYMENT_CATEGORIES = { 56 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', 57 57 'schoolfee40': 'Tuition, Accommodation, Adm. Charges (40% - 1st instalment)', 58 'schoolfee50': 'Tuition, Accommodation, Adm. Charges (50% - 1st instalment)', 59 'schoolfee60': 'Tuition, Accommodation, Adm. Charges (60% - 1st instalment)', 60 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', 58 'secondinstal': 'Tuition, Accommodation, Adm. Charges (60% - 2nd instalment)', 61 59 #'bed_allocation': 'Bed Allocation Fee', 62 60 #'hostel_maintenance': 'Accommodation',
Note: See TracChangeset for help on using the changeset viewer.