Ignore:
Timestamp:
18 Aug 2016, 06:01:42 (8 years ago)
Author:
Henrik Bettermann
Message:

Add payment types for foundation programme fees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r14085 r14087  
    106106            'SCHOOL-FEE-PT-BALANCE': ('schoolfee','schoolfee_incl',
    107107                                      'schoolfee_1','schoolfee_2'),
     108            'SCHOOL-FEE-FP-NEW': ('schoolfee',),
    108109
    109110            'ACCEPTANCE-FEE': ('clearance',),
    110111            'ACCEPTANCE-FEE-PLUS': ('clearance_incl',),
    111112            'ACCEPTANCE-FEE-PG': ('clearance',),
    112 
    113113            'ACCEPTANCE-FEE-PT': ('clearance',),
    114114            'ACCEPTANCE-FEE-PT-PLUS': ('clearance_incl',),
    115115            'ACCEPTANCE-FEE-PT-PG': ('clearance',),
     116            'ACCEPTANCE-FEE-FP': ('clearance',),
    116117
    117118            'APPLICATION-FEE': ('application',),
    118119            'APPLICATION-FEE-PT': ('application',),
     120            'APPLICATION-FEE-FP': ('application',),
    119121
    120122            'LATE-REGISTRATION': ('late_registration',),
     
    200202            and student.current_mode.endswith('_pt'):
    201203            self.output = ERROR_PART1 + 'Part-time student' + ERROR_PART2
     204            return
     205        if student and '-FP' in PAYMENT_TYPE and student.current_mode != 'found':
     206            self.output = ERROR_PART1 + 'Not a foundation programme student' + ERROR_PART2
     207            return
     208        if student and '-FP' not in PAYMENT_TYPE and student.current_mode == 'found':
     209            self.output = ERROR_PART1 + 'Foundation programme student' + ERROR_PART2
    202210            return
    203211        if '-BALANCE' in PAYMENT_TYPE and results[0].p_item != 'Balance':
Note: See TracChangeset for help on using the changeset viewer.