Changeset 8676 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 11 Jun 2012, 11:11:11 (12 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
r8535 r8676 139 139 ) 140 140 141 penalty_ug = schema.Float( 142 title = _(u'UG Penalty Fee'), 143 default = 0.0, 144 required = False, 145 ) 146 147 penalty_pg = schema.Float( 148 title = _(u'PG Penalty Fee'), 149 default = 0.0, 150 required = False, 151 ) 152 141 153 def getSessionString(): 142 154 """Returns the session string from the vocabulary. -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r8598 r8676 321 321 self.assertEqual(error, None) 322 322 323 # Add penalty fee. 324 self.app['configuration']['2004'].penalty_ug = 99.0 325 error, payment = utils.setPaymentDetails('schoolfee',self.student) 326 self.assertEqual(payment.amount_auth, 40099.0) 327 323 328 IWorkflowState(self.student).setState('returning') 324 329 error, payment = utils.setPaymentDetails('schoolfee',self.student) 325 330 self.assertEqual(payment.p_level, 200) 326 331 self.assertEqual(payment.p_session, 2005) 327 self.assertEqual(payment.amount_auth, 200 00.0)332 self.assertEqual(payment.amount_auth, 20099.0) 328 333 self.assertEqual(payment.p_item, u'CERT1') 329 334 self.assertEqual(error, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r8622 r8676 68 68 except KeyError: 69 69 return _(u'Session configuration object is not available.'), None 70 # Determine fee. 70 71 if category == 'transfer': 71 72 amount = academic_session.transfer_fee … … 107 108 if amount in (0.0, None): 108 109 return _(u'Amount could not be determined.'), None 110 # Add session specific penalty fee. 111 if category == 'schoolfee' and student.is_postgrad: 112 amount += academic_session.penalty_pg 113 elif category == 'schoolfee': 114 amount += academic_session.penalty_ug 115 # Create ticket. 109 116 for key in student['payments'].keys(): 110 117 ticket = student['payments'][key]
Note: See TracChangeset for help on using the changeset viewer.