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

Configure acceptance fee.

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

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r16736 r16790  
    9393        xmldict['institution_bank_id'] = '117'
    9494        provider_amt = 0.0
     95        if self.context.p_category == 'clearance':
     96            provider_amt = 500.0
    9597        self.pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch
    9698        xmldict['provider_amt'] = 100 * provider_amt
  • 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.