Changeset 8294 for main/waeup.uniben/trunk
- Timestamp:
- 27 Apr 2012, 06:32:43 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py
r8263 r8294 93 93 94 94 clearance_fee = schema.Float( 95 title = _(u'Clearance Fee '),95 title = _(u'Clearance Fee (ignored)'), 96 96 default = 0.0, 97 97 required = False, … … 107 107 108 108 maint_fee = schema.Float( 109 title = _(u'Maintenance Fee '),109 title = _(u'Maintenance Fee (ignored)'), 110 110 default = 0.0, 111 111 required = False, -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r8267 r8294 138 138 self.app['configuration']['2004'].gown_fee = 150.0 139 139 self.app['configuration']['2004'].transfer_fee = 90.0 140 self.app['configuration']['2004'].clearance_fee = 120.0 140 #self.app['configuration']['2004'].clearance_fee = 120.0 141 self.app['configuration']['2004'].booking_fee = 150.0 141 142 self.app['configuration']['2004'].maint_fee = 180.0 142 143 … … 181 182 self.browser.getControl(name="form.p_category").value = ['gown'] 182 183 self.browser.getControl("Create ticket").click() 184 self.assertMatches('...ticket created...', 185 self.browser.contents) 183 186 self.browser.open(self.payments_path + '/addop') 184 187 self.browser.getControl(name="form.p_category").value = ['transfer'] 185 188 self.browser.getControl("Create ticket").click() 189 self.assertMatches('...ticket created...', 190 self.browser.contents) 186 191 self.browser.open(self.payments_path + '/addop') 187 192 self.browser.getControl( 188 193 name="form.p_category").value = ['bed_allocation'] 189 194 self.browser.getControl("Create ticket").click() 195 self.assertMatches('...ticket created...', 196 self.browser.contents) 190 197 self.browser.open(self.payments_path + '/addop') 191 198 self.browser.getControl( 192 199 name="form.p_category").value = ['hostel_maintenance'] 193 200 self.browser.getControl("Create ticket").click() 201 self.assertMatches('...ticket created...', 202 self.browser.contents) 194 203 self.browser.open(self.payments_path + '/addop') 195 204 self.browser.getControl(name="form.p_category").value = ['clearance'] 196 205 self.browser.getControl("Create ticket").click() 206 self.assertMatches('...ticket created...', 207 self.browser.contents) 197 208 self.certificate.study_mode = 'ug_pt' 198 209 self.browser.open(self.payments_path + '/addop') -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r8270 r8294 112 112 elif category == 'clearance': 113 113 d['p_item'] = student['studycourse'].certificate.code 114 d['amount'] = academic_session.clearance_fee 114 if d['p_item'] in ('BEDCET', 'BIOEDCET', 'CHMEDCET', 'ISEDCET', 115 'MTHEDCET', 'PHYEDCET', 'ITECET', 'AGREDCET', 'HEEDCET'): 116 d['amount'] = 17250.0 117 else: 118 d['amount'] = 34250.0 115 119 elif category == 'schoolfee': 116 120 d['amount'] = get_school_fee(student)
Note: See TracChangeset for help on using the changeset viewer.