Changeset 14396


Ignore:
Timestamp:
13 Jan 2017, 18:58:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Determine schoolfee_2 properly.

File:
1 edited

Legend:

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

    r14378 r14396  
    269269                    return _("You are not allowed "
    270270                             "to pay by instalments."), None
    271             if student.state == CLEARED:
     271            if student.state == CLEARED and category != 'schoolfee_2':
    272272                amount = getattr(certificate, 'school_fee_1', 0.0)
    273273                # Cut school fee by 50%
     
    279279                if amount:
    280280                    amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT
    281             elif student.state == RETURNING:
     281            elif student.state == RETURNING and category != 'schoolfee_2':
    282282                if not student.father_name:
    283283                    return _("Personal data form is not properly filled."), None
     
    294294                    amount = getattr(certificate, 'school_fee_2', 0.0)
    295295                    # Cut school fee by 50%
    296                     if category in ('schoolfee_1', 'schoolfee_2') and amount:
     296                    if category == 'schoolfee_1' and amount:
    297297                        amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT
    298298                else:
Note: See TracChangeset for help on using the changeset viewer.