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/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.