Ignore:
Timestamp:
6 Jun 2016, 11:51:58 (9 years ago)
Author:
Henrik Bettermann
Message:

Add penalty fees for late school fee payment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r13800 r13881  
    270270        if amount in (0.0, None):
    271271            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
    272284        if self.samePaymentMade(student, category, p_item, p_session):
    273285            return _('This type of payment has already been made.'), None
Note: See TracChangeset for help on using the changeset viewer.