Changeset 13881 for main/waeup.fceokene
- Timestamp:
- 6 Jun 2016, 11:51:58 (8 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interfaces.py
r11919 r13881 63 63 ) 64 64 65 penalty_ug_ft = schema.Float( 66 title = _(u'UG Full-Time Penalty Fee'), 67 default = 0.0, 68 required = False, 69 ) 70 71 penalty_nce_ft = schema.Float( 72 title = _(u'NCE Full-Time Penalty Fee'), 73 default = 0.0, 74 required = False, 75 ) 76 77 penalty_nce_pt = schema.Float( 78 title = _(u'NCE Sandwich and Part-Time Penalty Fee'), 79 default = 0.0, 80 required = False, 81 ) 82 83 penalty_prence = schema.Float( 84 title = _(u'Pre-NCE Penalty Fee'), 85 default = 0.0, 86 required = False, 87 ) 88 65 89 def getSessionString(): 66 90 """Returns the session string from the vocabulary. -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r13800 r13881 270 270 if amount in (0.0, None): 271 271 return _(u'Amount could not be determined.'), None 272 # Add session specific penalty fee. 273 if category == 'schoolfee' and student.current_mode in ( 274 'ug_ft', 'de_ft'): 275 amount += academic_session.penalty_ug_ft 276 elif category == 'schoolfee' and student.current_mode in ( 277 'nce_ft',): 278 amount += academic_session.penalty_nce_ft 279 elif category == 'schoolfee' and student.current_mode in ( 280 'nce_sw', 'nce_pt'): 281 amount += academic_session.penalty_nce_pt 282 elif category == 'schoolfee' and student.current_mode in ('prence',): 283 amount += academic_session.penalty_prence 272 284 if self.samePaymentMade(student, category, p_item, p_session): 273 285 return _('This type of payment has already been made.'), None
Note: See TracChangeset for help on using the changeset viewer.