Changeset 16752


Ignore:
Timestamp:
18 Jan 2022, 11:35:04 (3 years ago)
Author:
Henrik Bettermann
Message:

ND PT and HND PT acceptance fees differ.

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

Legend:

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

    r16738 r16752  
    9393        )
    9494
     95    hndpt_clearance_fee = schema.Float(
     96        title = _(u'HND Part-Time Acceptance Fee'),
     97        default = 0.0,
     98        required = False,
     99        )
     100
     101    ndpt_clearance_fee = schema.Float(
     102        title = _(u'ND Part-Time Acceptance Fee'),
     103        default = 0.0,
     104        required = False,
     105        )
     106
    95107    gown_fee = schema.Float(
    96108        title = _(u'Gown Fee'),
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py

    r16738 r16752  
    243243                else:
    244244                    amount = academic_session.nd_clearance_fee
    245             else:
    246                     amount = academic_session.clearance_fee
     245            elif student.current_mode == 'hnd_pt':
     246                amount = academic_session.hndpt_clearance_fee
     247            elif student.current_mode == 'nd_pt':
     248                amount = academic_session.ndpt_clearance_fee
     249            else:
     250                amount = academic_session.clearance_fee
    247251        elif category == 'bed_allocation':
    248252            p_item = self.getAccommodationDetails(student)['bt']
Note: See TracChangeset for help on using the changeset viewer.