Ignore:
Timestamp:
15 May 2013, 14:08:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Returning students with entry session 2005-2007 get a reduction of 20000

Location:
main/waeup.aaua/trunk/src/waeup/aaua/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaua/trunk/src/waeup/aaua/students/tests/test_browser.py

    r10173 r10180  
    164164        error, payment = utils.setPaymentDetails('schoolfee_2',self.student)
    165165        self.assertEqual(payment.amount_auth, 60.0)
     166
     167        # Returning students with entry session 2005-2007
     168        # get a reduction of 20000
     169        IWorkflowState(self.student).setState('returning')
     170        self.student['studycourse'].entry_session = 2005
     171        error, payment = utils.setPaymentDetails('schoolfee_1',self.student)
     172        self.assertEqual(payment.amount_auth, -19920.0)
  • main/waeup.aaua/trunk/src/waeup/aaua/students/utils.py

    r10173 r10180  
    8585                elif category == 'schoolfee_1':
    8686                    amount = getattr(certificate, 'school_fee_2', 0.0) * ratio
     87                    if student['studycourse'].entry_session in (2005, 2006, 2007):
     88                        amount -= 20000.0
    8789                elif category == 'schoolfee_2' and ratio:
    8890                    amount = getattr(certificate, 'school_fee_2', 0.0) * (1- ratio)
Note: See TracChangeset for help on using the changeset viewer.