Changeset 11624 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 6 May 2014, 19:00:28 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r11622 r11624 134 134 self.assertMatches('...Amount could not be determined...', 135 135 self.browser.contents) 136 self.app['configuration']['2004'].school_fee = 6666.0136 self.app['configuration']['2004'].school_fee_1 = 6666.0 137 137 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 138 138 # Accepotance fee must be paid first -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r11622 r11624 43 43 self.app['configuration']['2004'].maint_fee = 180.0 44 44 self.app['configuration']['2004'].clearance_fee = 1234.0 45 self.app['configuration']['2004'].school_fee = 6666.045 self.app['configuration']['2004'].school_fee_1 = 6666.0 46 46 utils = getUtility(IStudentsUtils) 47 47 … … 49 49 configuration.academic_session = 2005 50 50 self.app['configuration'].addSessionConfiguration(configuration) 51 self.app['configuration']['2005'].school_fee = 7777.051 self.app['configuration']['2005'].school_fee_2 = 7777.0 52 52 53 53 error, payment = utils.setPaymentDetails('schoolfee',self.student) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r11622 r11624 164 164 amount = 84000.0 165 165 else: 166 amount = academic_session.school_fee 166 amount = academic_session.school_fee_1 167 167 elif student.state == RETURNING or\ 168 168 (student.is_postgrad and student.state == PAID): … … 181 181 except KeyError: 182 182 return _(u'Session configuration object is not available.'), None 183 amount = academic_session.school_fee 183 amount = academic_session.school_fee_2 184 184 else: 185 185 return _('Wrong state.'), None
Note: See TracChangeset for help on using the changeset viewer.