Ignore:
Timestamp:
9 Feb 2022, 17:31:29 (3 years ago)
Author:
Henrik Bettermann
Message:

Configure acceptance fee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r16789 r16790  
    2222from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
    2323from kofacustom.unidel.interfaces import MessageFactory as _
     24
     25def local(student):
     26    lga = getattr(student, 'lga')
     27    if lga and lga.startswith('delta'):
     28        return True
     29    return False
    2430
    2531class CustomStudentsUtils(NigeriaStudentsUtils):
     
    106112                return _('Study course data are incomplete.'), None
    107113            amount = academic_session.clearance_fee
     114            if local(student):
     115                amount += 10000
    108116        elif category == 'bed_allocation':
    109117            p_item = self.getAccommodationDetails(student)['bt']
Note: See TracChangeset for help on using the changeset viewer.