Changeset 13756


Ignore:
Timestamp:
1 Mar 2016, 22:21:54 (9 years ago)
Author:
Henrik Bettermann
Message:

Different late payment penalty fees for ug_ft and ug_pt.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py

    r11782 r13756  
    8282        )
    8383
    84     penalty_ug = schema.Float(
    85         title = _(u'UG Penalty Fee'),
     84    penalty_ug_ft = schema.Float(
     85        title = _(u'UG Full-Time Penalty Fee'),
     86        default = 0.0,
     87        required = False,
     88        )
     89
     90    penalty_ug_pt = schema.Float(
     91        title = _(u'UG Part-Time Penalty Fee'),
    8692        default = 0.0,
    8793        required = False,
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r13723 r13756  
    506506        # Add penalty fee ...
    507507        # ... for cleared
    508         self.app['configuration']['2004'].penalty_ug = 99.0
     508        self.app['configuration']['2004'].penalty_ug_ft = 99.0
    509509        # ... for returning
    510         self.app['configuration']['2005'].penalty_ug = 88.0
     510        self.app['configuration']['2005'].penalty_ug_ft = 88.0
    511511        error, payment = utils.setPaymentDetails('schoolfee',
    512512            self.student, None, None)
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r13631 r13756  
    333333        if category == 'schoolfee' and student.is_postgrad:
    334334            amount += academic_session.penalty_pg
    335         elif category == 'schoolfee':
    336             amount += academic_session.penalty_ug
     335        elif category == 'schoolfee' and student.current_mode.endswith('ft'):
     336            amount += academic_session.penalty_ug_ft
     337        elif category == 'schoolfee' and student.current_mode.endswith('pt'):
     338            amount += academic_session.penalty_ug_pt
    337339        if category.startswith('tempmaint'):
    338340            p_item = getUtility(IKofaUtils).PAYMENT_CATEGORIES[category]
Note: See TracChangeset for help on using the changeset viewer.