Ignore:
Timestamp:
9 Jan 2017, 06:32:18 (8 years ago)
Author:
Henrik Bettermann
Message:

Add conditions for restitution fee payments.

File:
1 edited

Legend:

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

    r14229 r14378  
    117117        self.assertEqual(error, None)
    118118
     119        error, payment = utils.setPaymentDetails('restitution',self.student)
     120        self.assertEqual(error, 'Restitution fee payment not required.')
     121        self.student['studycourse'].certificate.study_mode = 'ug_ft'
     122        self.app['configuration']['2004'].restitution_fee = 1111.0
     123        error, payment = utils.setPaymentDetails('restitution',self.student)
     124        self.assertEqual(payment.p_level, 100)
     125        self.assertEqual(payment.p_session, 2004)
     126        self.assertEqual(payment.amount_auth, 1111.0)
     127        self.assertEqual(payment.p_item, u'')
     128        self.assertEqual(error, None)
     129
    119130        error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100)
    120131        self.assertEqual(error, u'Previous session payment not yet implemented.')
Note: See TracChangeset for help on using the changeset viewer.