Changeset 14455 for main/kofacustom.coewarri/trunk/src/kofacustom/coewarri
- Timestamp:
- 25 Jan 2017, 09:26:29 (8 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interfaces.py
r14336 r14455 38 38 ) 39 39 40 clearance_fee = schema.Float( 41 title = _(u'Acceptance Fee'), 40 clearance_fee_1 = schema.Float( 41 title = _(u'Acceptance Fee NCE Prog.'), 42 default = 0.0, 43 required = False, 44 ) 45 46 clearance_fee_2 = schema.Float( 47 title = _(u'Acceptance Fee Degree Prog.'), 42 48 default = 0.0, 43 49 required = False, -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r14344 r14455 25 25 configuration.academic_session = 2016 26 26 self.app['configuration'].addSessionConfiguration(configuration) 27 self.app['configuration']['2016'].clearance_fee = 10234.0 27 self.app['configuration']['2016'].clearance_fee_1 = 10300.0 28 self.app['configuration']['2016'].clearance_fee_2 = 20300.0 28 29 29 30 error, payment = utils.setPaymentDetails('schoolfee',self.student) … … 49 50 50 51 error, payment = utils.setPaymentDetails('clearance',self.student) 51 self.assertEqual(payment.amount_auth, 15234.0)52 self.assertEqual(payment.amount_auth, 25300.0) 52 53 self.assertEqual(payment.p_item, u'CERT1') 53 54 … … 56 57 self.assertEqual(payment.amount_auth, 69500.0) 57 58 error, payment = utils.setPaymentDetails('clearance',self.student) 58 self.assertEqual(payment.amount_auth, 10234.0) 59 self.assertEqual(payment.amount_auth, 20300.0) 60 61 self.student['studycourse'].certificate.study_mode = 'nce_ft' 62 error, payment = utils.setPaymentDetails('clearance',self.student) 63 self.assertEqual(payment.amount_auth, 10300.0) 59 64 return -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py
r14347 r14455 106 106 except (AttributeError, TypeError): 107 107 return _('Study course data are incomplete.'), None 108 amount = academic_session.clearance_fee 108 if student.current_mode == 'ug_ft': 109 amount = academic_session.clearance_fee_2 110 else: 111 amount = academic_session.clearance_fee_1 109 112 if local_nonlocal(student) == 'non-local': 110 113 amount += 5000.0
Note: See TracChangeset for help on using the changeset viewer.