Changeset 11653 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 15 May 2014, 07:08:46 (10 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py
r11624 r11653 45 45 46 46 school_fee_1 = schema.Float( 47 title = _(u' Initial School Fee (not FP)'),47 title = _(u'Regular Initial School Fee'), 48 48 default = 0.0, 49 49 required = True, … … 51 51 52 52 school_fee_2 = schema.Float( 53 title = _(u'Returning School Fee (not FP)'), 53 title = _(u'Returning School Fee'), 54 default = 0.0, 55 required = True, 56 ) 57 58 school_fee_3 = schema.Float( 59 title = _(u'FP Initial School Fee'), 54 60 default = 0.0, 55 61 required = True, … … 63 69 64 70 clearance_fee = schema.Float( 65 title = _(u'Acceptance Fee'), 71 title = _(u'Regular Acceptance Fee'), 72 default = 0.0, 73 required = True, 74 ) 75 76 clearance_fee_fp = schema.Float( 77 title = _(u'FP Acceptance Fee'), 66 78 default = 0.0, 67 79 required = True, -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r11627 r11653 51 51 self.app['configuration']['2004'].maint_fee = 180.0 52 52 self.app['configuration']['2004'].clearance_fee = 1234.0 53 self.app['configuration']['2004'].clearance_fee_fp = 3456.0 53 54 self.app['configuration']['2004'].school_fee_1 = 6666.0 54 55 utils = getUtility(IStudentsUtils) … … 89 90 self.assertEqual(payment.p_session, 2004) 90 91 self.assertEqual(payment.amount_auth, 1234.0) 92 self.assertEqual(payment.p_item, u'CERT1') 93 self.assertEqual(error, None) 94 95 self.app['faculties']['fac1'].code = u'FP' 96 error, payment = utils.setPaymentDetails('clearance',self.student) 97 self.assertEqual(payment.p_level, 100) 98 self.assertEqual(payment.p_session, 2004) 99 self.assertEqual(payment.amount_auth, 3456.0) 91 100 self.assertEqual(payment.p_item, u'CERT1') 92 101 self.assertEqual(error, None) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r11627 r11653 140 140 amount = academic_session.maint_fee 141 141 elif category == 'clearance': 142 amount = academic_session.clearance_fee 142 if student.faccode == 'FP': 143 amount = academic_session.clearance_fee_fp 144 else: 145 amount = academic_session.clearance_fee 143 146 p_item = student['studycourse'].certificate.code 144 147 elif category == 'late_registration': … … 152 155 if student.state == CLEARED: 153 156 if student.faccode == 'FP': 154 amount = 84000.0157 amount = academic_session.school_fee_3 155 158 else: 156 159 amount = academic_session.school_fee_1
Note: See TracChangeset for help on using the changeset viewer.