Changeset 16709 for main/kofacustom.edocons
- Timestamp:
- 9 Nov 2021, 15:57:09 (3 years ago)
- Location:
- main/kofacustom.edocons/trunk/src/kofacustom/edocons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/tests.py
r16704 r16709 80 80 self.browser.contents) 81 81 self.assertTrue( 82 'item_name="School Fee (total amount)" item_amt="4000000" bank_id=" 00" acct_num="00000000"' in82 'item_name="School Fee (total amount)" item_amt="4000000" bank_id="31" acct_num="1489560452"' in 83 83 self.browser.contents) 84 84 self.browser.open(self.payments_path + '/addop') … … 94 94 self.browser.contents) 95 95 self.assertTrue( 96 '<span>2 4000.0</span>' in self.browser.contents)96 '<span>26400.0</span>' in self.browser.contents) 97 97 self.payment_url = self.browser.url 98 98 self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click() … … 101 101 self.assertEqual(self.student.current_mode, 'ug_ft') 102 102 self.assertTrue( 103 '<input type="hidden" name="amount" value="2 430000" />' in104 self.browser.contents) 105 self.assertTrue( 106 'item_name="School Fee (6 0% - 1st instalment)" item_amt="2400000" bank_id="00" acct_num="00000000"' in103 '<input type="hidden" name="amount" value="2670000" />' in 104 self.browser.contents) 105 self.assertTrue( 106 'item_name="School Fee (66% - 1st instalment)" item_amt="2640000" bank_id="31" acct_num="1489560452"' in 107 107 self.browser.contents) 108 108 -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py
r16704 r16709 73 73 else: 74 74 if category == 'secondinstal': 75 amount = 0. 4 * getattr(certificate, 'school_fee_1', 0.0)75 amount = 0.34 * getattr(certificate, 'school_fee_1', 0.0) 76 76 else: 77 77 if student.state == CLEARED: … … 101 101 amount = getattr(certificate, 'school_fee_1', 0.0) 102 102 if category == 'schoolfee_1': 103 amount *= 0.6 103 amount *= 0.66 104 104 elif category == 'clearance': 105 105 try: -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py
r16705 r16709 26 26 PAYMENT_CATEGORIES = { 27 27 'schoolfee': 'School Fee (total amount)', 28 'schoolfee_1': 'School Fee (6 0% - 1st instalment)',29 'secondinstal': 'School Fee ( 40% - 2nd instalment)',28 'schoolfee_1': 'School Fee (66% - 1st instalment)', 29 'secondinstal': 'School Fee (34% - 2nd instalment)', 30 30 'clearance': 'Acceptance Fee (not applicable)', 31 31 #'bed_allocation': 'Bed Allocation Fee', … … 42 42 SELECTABLE_PAYMENT_CATEGORIES = { 43 43 'schoolfee': 'School Fee (total amount)', 44 'schoolfee_1': 'School Fee (6 0% - 1st instalment)',45 'secondinstal': 'School Fee ( 40% - 2nd instalment)',44 'schoolfee_1': 'School Fee (66% - 1st instalment)', 45 'secondinstal': 'School Fee (34% - 2nd instalment)', 46 46 } 47 47
Note: See TracChangeset for help on using the changeset viewer.