Changeset 11624 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 6 May 2014, 19:00:28 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r11622 r11624 51 51 # Managers can add online payment tickets 52 52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 53 self.app['configuration']['2004'].school_fee = 1234.053 self.app['configuration']['2004'].school_fee_1 = 1234.0 54 54 self.browser.open(self.payments_path) 55 55 IWorkflowState(self.student).setState('cleared') -
main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py
r11004 r11624 35 35 # title = _(u'School Fee Instalments'), 36 36 # default = 0.0, 37 # required = False,37 # required = True, 38 38 # ) 39 39 40 school_fee = schema.Float( 41 title = _(u'School Fee (not FP)'), 40 #school_fee = schema.Float( 41 # title = _(u'School Fee (not FP)'), 42 # default = 0.0, 43 # required = True, 44 # ) 45 46 school_fee_1 = schema.Float( 47 title = _(u'Initial School Fee (not FP)'), 42 48 default = 0.0, 43 required = False, 49 required = True, 50 ) 51 52 school_fee_2 = schema.Float( 53 title = _(u'Returning School Fee (not FP)'), 54 default = 0.0, 55 required = True, 44 56 ) 45 57 … … 47 59 title = _(u'Application Fee'), 48 60 default = 0.0, 49 required = False,61 required = True, 50 62 ) 51 63 … … 53 65 title = _(u'Acceptance Fee'), 54 66 default = 0.0, 55 required = False,67 required = True, 56 68 ) 57 69 … … 59 71 title = _(u'Booking Fee'), 60 72 default = 0.0, 61 required = False,73 required = True, 62 74 ) 63 75 … … 65 77 title = _(u'Transcript Fee'), 66 78 default = 0.0, 67 required = False,79 required = True, 68 80 ) 69 81 … … 73 85 title = _(u'Maintenance Fee (ignored)'), 74 86 default = 0.0, 75 required = False,87 required = True, 76 88 ) 77 89 … … 79 91 title = _(u'Gown Fee'), 80 92 default = 0.0, 81 required = False,93 required = True, 82 94 ) 83 95 … … 85 97 title = _(u'Transfer Fee'), 86 98 default = 0.0, 87 required = False,99 required = True, 88 100 ) 89 101 … … 91 103 title = _(u'UG Penalty Fee'), 92 104 default = 0.0, 93 required = False,105 required = True, 94 106 ) 95 107 … … 97 109 title = _(u'PG Penalty Fee'), 98 110 default = 0.0, 99 required = False,111 required = True, 100 112 ) 101 113 … … 103 115 title = _(u'Late Registration Fee'), 104 116 default = 0.0, 105 required = False,117 required = True, 106 118 ) 107 119 -
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.