Ignore:
Timestamp:
21 Feb 2017, 06:46:42 (8 years ago)
Author:
Henrik Bettermann
Message:

Add level specific penalty fees.

File:
1 edited

Legend:

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

    r14556 r14566  
    4747        self.certificate.end_level = 300
    4848        self.student['studycourse'].current_verdict = 'B'
    49         self.student['studycourse'].current_level = 300
     49        self.student['studycourse'].current_level = 200
    5050        configuration = createObject('waeup.SessionConfiguration')
    5151        configuration.academic_session = 2005
    5252        self.app['configuration'].addSessionConfiguration(configuration)
    53         self.app['configuration']['2005'].penalty_nce_ft = 99.0
     53        self.app['configuration']['2005'].penalty_nce3_ft = 99.0
    5454        self.student['studycourse'].certificate.study_mode = 'nce_ft'
    5555        utils = getUtility(IStudentsUtils)
     
    5757        IWorkflowState(self.student).setState('returning')
    5858        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    59         self.assertEqual(payment.amount_auth, 12224.0) # 11975 + 150 + 99
     59        self.assertEqual(payment.amount_auth, 14124.0) # 13875 + 150 + 99
    6060        self.student['studycourse'].previous_verdict = 'O'
    6161        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    62         self.assertEqual(payment.amount_auth, 12125.0) # 11975 + 150
     62        self.assertEqual(payment.amount_auth, 14025.0) # 13875 + 150
    6363        return
Note: See TracChangeset for help on using the changeset viewer.