Ignore:
Timestamp:
15 Apr 2021, 10:01:13 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement payment by instalment for fresh NCE students.

File:
1 edited

Legend:

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

    r16011 r16461  
    134134            else:
    135135                amount = 7938
    136         elif category == 'schoolfee':
     136        elif category.startswith('schoolfee'):
     137            if category == 'schoolfee_pde1':
     138                if not student.current_mode.startswith('nce'):
     139                    return _('You are not an NCE student.'), None
     140                if student.state != CLEARED:
     141                        return _('You are not a fresh student.'), None
    137142            p_item =  student.certcode
    138143            if not p_item:
     
    146151            elif student.current_mode == 'pd_ft' and student.state == CLEARED:
    147152                amount = 70000
     153                if category == 'schoolfee_pde1':
     154                    amount = 40000
    148155            # PDE
    149156            elif student.current_mode == 'pd_ft':
Note: See TracChangeset for help on using the changeset viewer.