Ignore:
Timestamp:
31 Oct 2019, 15:58:16 (5 years ago)
Author:
Henrik Bettermann
Message:

Take GATEWAY_AMT into consideration when determining instalments.

File:
1 edited

Legend:

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

    r15701 r15729  
    2121    ADMITTED, CLEARANCE, CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
    2222from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
     23from kofacustom.iuokada.interswitch.browser import GATEWAY_AMT
    2324from kofacustom.iuokada.interfaces import MessageFactory as _
    2425
     
    122123                    amount = getattr(certificate, 'school_fee_2', 0.0)
    123124            if category == 'schoolfee40':
    124                 amount *= 0.4
     125                amount = (amount-GATEWAY_AMT)*0.4 + GATEWAY_AMT
    125126            elif category == 'secondinstal':
    126                 amount *= 0.6
     127                amount = (amount-GATEWAY_AMT)*0.6 + GATEWAY_AMT
    127128        elif category == 'clearance':
    128129            try:
Note: See TracChangeset for help on using the changeset viewer.