Changeset 14639 for main/kofacustom.coewarri
- Timestamp:
- 21 Mar 2017, 12:25:55 (8 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r14455 r14639 15 15 16 16 def test_set_payment_details(self): 17 self.student['studycourse']. certificate.study_mode = 'ug_ft'17 self.student['studycourse'].entry_mode = 'ug_ft' 18 18 self.student.nationality = u'NG' 19 19 self.student.lga = 'ebonyi_ukaba' … … 59 59 self.assertEqual(payment.amount_auth, 20300.0) 60 60 61 self.student['studycourse']. certificate.study_mode = 'nce_ft'61 self.student['studycourse'].entry_mode = 'nce_ft' 62 62 error, payment = utils.setPaymentDetails('clearance',self.student) 63 63 self.assertEqual(payment.amount_auth, 10300.0) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py
r14589 r14639 106 106 except (AttributeError, TypeError): 107 107 return _('Study course data are incomplete.'), None 108 if student. current_mode == 'nce_we_pt':108 if student.entry_mode == 'nce_we_pt': 109 109 amount = academic_session.clearance_fee_3 110 elif student. current_mode == 'ug_ft':110 elif student.entry_mode == 'ug_ft': 111 111 amount = academic_session.clearance_fee_2 112 112 else:
Note: See TracChangeset for help on using the changeset viewer.