Changeset 11653 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 15 May 2014, 07:08:46 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.