Changeset 16461


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

Implement payment by instalment for fresh NCE students.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
2 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':
  • main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py

    r15435 r16461  
    8686    PAYMENT_CATEGORIES = {
    8787        'schoolfee': 'School Fee',
     88        'schoolfee_pde1': 'School Fee 1st instalment (new PDE students only)',
    8889        'clearance': 'Acceptance Fee',
    8990        'bed_allocation': 'Bed Allocation Fee',
    9091        'hostel_maintenance': 'Hostel Maintenance Fee',
    91         #'transfer': 'Transfer Fee',
    92         #'gown': 'Gown Hire Fee',
    9392        'application': 'Application Fee',
    94         #'transcript': 'Transcript Fee',
    9593        'third_semester': 'NCE Third Semester Fee',
    9694        }
Note: See TracChangeset for help on using the changeset viewer.