Ignore:
Timestamp:
12 Nov 2008, 20:46:06 (16 years ago)
Author:
Henrik Bettermann
Message:

second trial to implement new school fee logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_fceokene/getSchoolFee.py

    r3759 r3760  
    2121
    2222if not brain.mode.endswith('_sw'):
     23    # PRENCE
    2324    if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
    2425        if brain.department in ARTS:
     
    2627        else:
    2728            d['all'] = 16400
     29    # all repeaters
     30    if brain.verdict == 'C':
     31        if brain.department in ARTS:
     32            d['all'] = 10170
     33        else:
     34            d['all'] = 10645
     35    # NCE I fresh
    2836    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
    2937        if brain.department in ARTS:
     
    3139        else:
    3240            d['all'] = 13495
    33     elif str(brain.level) == '100' and brain.review_state == 'returning':
     41    # NCE II
     42    elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
    3443        if brain.department in ARTS:
    3544            d['all'] = 12070
    3645        else:
    3746            d['all'] = 12545
     47    # NCE III
    3848    elif str(brain.level) in ('200','210','220'):
    3949        if brain.department in ARTS:
     
    4151        else:
    4252            d['all'] = 12545
    43     # repeaters = spillover
    44     elif str(brain.level) in ('300','310','320'):
    45         if brain.department in ARTS:
    46             d['all'] = 10170
    47         else:
    48             d['all'] = 10645
    4953    else:
    50         d['all'] = 0
     54        d['all'] = 0   
     55
    5156else:
    5257    if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
     
    5560        else:
    5661            d['all'] = 22400
    57     elif str(brain.level) == '100' and brain.review_state == 'returning':
     62    # all repeaters
     63    if brain.verdict == 'C':
     64        if brain.department in ARTS:
     65            d['all'] = 16900
     66        else:
     67            d['all'] = 17400
     68    # NCE II           
     69    elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
    5870        if brain.department in ARTS:
    5971            d['all'] = 18400
    6072        else:
    6173            d['all'] = 18900
     74    # NCE III
    6275    elif str(brain.level) in ('200','210','220'):
    6376        if brain.department in ARTS:
     
    6578        else:
    6679            d['all'] = 20900
     80    # NCE IV
    6781    elif str(brain.level) in ('300','310','320'):
    6882        if brain.department in ARTS:
     
    7084        else:
    7185            d['all'] = 18900
    72 
     86    # NCE V
    7387    elif str(brain.level) in ('400','410','420'):
    7488        if brain.department in ARTS:
     
    7690        else:
    7791            d['all'] = 18900
    78 
    79     # repeaters = spillover
    80     elif str(brain.level) in ('500','510','520'):
    81         if brain.department in ARTS:
    82             d['all'] = 16900
    83         else:
    84             d['all'] = 17400
    8592    else:
    8693        d['all'] = 0
Note: See TracChangeset for help on using the changeset viewer.