Ignore:
Timestamp:
12 Feb 2015, 06:05:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Add Short Duration ICT Programs school fees.

File:
1 edited

Legend:

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

    r12188 r12602  
    153153                amount = 7763
    154154        elif category == 'schoolfee':
    155             try:
    156                 certificate = student['studycourse'].certificate
    157                 p_item = certificate.code
    158             except (AttributeError, TypeError):
     155            p_item =  student.certcode
     156            if not p_item:
    159157                return _('Study course data are incomplete.'), None
    160158
     
    168166            elif student.current_mode == 'pd_ft':
    169167                amount = 35300
     168
     169            #Short Duration ICT Programs
     170            elif p_item in ('CCO','DPMTS','DTPGD') and \
     171                 student.state == CLEARED:
     172                amount = 15000
     173            elif p_item in ('ADTPGD','ADPMTS') and \
     174                 student.state == CLEARED:
     175                amount = 16000
     176            elif p_item in ('ADPMTSI','ADTPGDI','DPMTSI','DTPGDI') and \
     177                 student.state == CLEARED:
     178                amount = 25000
     179            elif p_item in ('ADPMTSA','ADTPGDA') and \
     180               student.state == CLEARED:
     181                amount = 35000
     182
    170183            # UG
    171184            elif student.current_mode == 'ug_ft':
Note: See TracChangeset for help on using the changeset viewer.