Ignore:
Timestamp:
26 Nov 2024, 02:34:19 (8 months ago)
Author:
Henrik Bettermann
Message:

Let JUPEB students pay by instalments.

File:
1 edited

Legend:

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

    r17930 r17963  
    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'):
     499            try:
     500                certificate = student['studycourse'].certificate
     501                p_item = certificate.code
     502            except (AttributeError, TypeError):
     503                return _('Study course data are incomplete.'), None
     504            amount = 220000.0
     505            if category in ('schoolfee_1', 'secondinstall'):
     506                amount /= 2
     507
    495508        elif category == 'schoolfee':
    496509            try:
     
    580593            if student.is_staff:
    581594                amount /= 2
    582 
    583595        else:
    584596            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.