Changeset 17975


Ignore:
Timestamp:
12 Dec 2024, 13:40:34 (12 days ago)
Author:
Henrik Bettermann
Message:

Fix secondinstall payments.

File:
1 edited

Legend:

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

    r17963 r17975  
    493493            else:
    494494                amount = 60000.0
    495 
    496         elif student.state == CLEARED \
    497                 and student.is_jupeb and category in ('schoolfee', 'schoolfee_1',
    498                                                       'secondinstall'):
     495        elif student.is_jupeb:
    499496            try:
    500497                certificate = student['studycourse'].certificate
     
    502499            except (AttributeError, TypeError):
    503500                return _('Study course data are incomplete.'), None
    504             amount = 220000.0
    505             if category in ('schoolfee_1', 'secondinstall'):
    506                 amount /= 2
    507 
     501            if student.state == CLEARED and category == 'schoolfee':
     502                amount = 220000.0
     503            if student.state == CLEARED and category == 'schoolfee_1':
     504                amount = 110000.0
     505            elif category == 'secondinstall':
     506                amount = 110000.0
    508507        elif category == 'schoolfee':
    509508            try:
Note: See TracChangeset for help on using the changeset viewer.