Changeset 10192 for main


Ignore:
Timestamp:
22 May 2013, 12:48:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Only ug_pt students get the reduction?!

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

    r10181 r10192  
    170170
    171171        # Returning students with entry session 2005-2007
    172         # get a reduction of 20000
     172        # and study mode ug_pt get a reduction of 20000
     173        self.certificate.study_mode = 'ug_pt'
    173174        IWorkflowState(self.student).setState('returning')
    174175        self.student['studycourse'].entry_session = 2005
  • main/waeup.aaua/trunk/src/waeup/aaua/students/utils.py

    r10181 r10192  
    8383                elif category == 'schoolfee_1':
    8484                    amount = getattr(certificate, 'school_fee_2', 0.0) * ratio
    85                     if student['studycourse'].entry_session in (2005, 2006, 2007):
     85                    if student['studycourse'].entry_session in (
     86                        2005, 2006, 2007) and student.current_mode == 'ug_pt':
    8687                        amount -= 20000.0
    8788            elif student.is_postgrad and student.state == PAID:
Note: See TracChangeset for help on using the changeset viewer.