Changeset 16738


Ignore:
Timestamp:
10 Dec 2021, 13:54:16 (3 years ago)
Author:
Henrik Bettermann
Message:

Change acceptance fee computation algorithm.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interfaces.py

    r16725 r16738  
    3232
    3333    clearance_fee = schema.Float(
    34         title = _(u'Acceptance Fee'),
     34        title = _(u'Acceptance Fee (default)'),
    3535        default = 0.0,
    3636        required = False,
     
    6767        )
    6868
    69 
    7069    # Additional fees in custom package
     70
     71    hnd_clearance_fee = schema.Float(
     72        title = _(u'HND Non-Local Acceptance Fee'),
     73        default = 0.0,
     74        required = False,
     75        )
     76
     77    nd_clearance_fee = schema.Float(
     78        title = _(u'ND Non-Local Acceptance Fee'),
     79        default = 0.0,
     80        required = False,
     81        )
     82
     83    hndlocal_clearance_fee = schema.Float(
     84        title = _(u'HND Local Acceptance Fee'),
     85        default = 0.0,
     86        required = False,
     87        )
     88
     89    ndlocal_clearance_fee = schema.Float(
     90        title = _(u'ND Local Acceptance Fee'),
     91        default = 0.0,
     92        required = False,
     93        )
    7194
    7295    gown_fee = schema.Float(
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py

    r16430 r16738  
    233233            except (AttributeError, TypeError):
    234234                return _('Study course data are incomplete.'), None
    235             amount = academic_session.clearance_fee
    236             # HND students pay more
    237235            if student.current_mode == 'hnd_ft':
    238                 amount += 3000
    239             # Local ND and HND students are given a rebate which has
    240             # to be adjusted if the basic acceptance fee changes.
    241             if amount and student.current_mode == 'nd_ft' and local(student):
    242                 amount -= 10000.0
    243             if amount and student.current_mode == 'hnd_ft' and local(student):
    244                 amount -= 5000.0
     236                if local(student):
     237                    amount = academic_session.hndlocal_clearance_fee
     238                else:
     239                    amount = academic_session.hnd_clearance_fee
     240            elif student.current_mode == 'nd_ft':
     241                if local(student):
     242                    amount = academic_session.ndlocal_clearance_fee
     243                else:
     244                    amount = academic_session.nd_clearance_fee
     245            else:
     246                    amount = academic_session.clearance_fee
    245247        elif category == 'bed_allocation':
    246248            p_item = self.getAccommodationDetails(student)['bt']
Note: See TracChangeset for help on using the changeset viewer.