Changeset 18330 for main


Ignore:
Timestamp:
15 Sep 2026, 10:02:13 (2 months ago)
Author:
Henrik Bettermann
Message:

Add sundry payment category.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
5 edited

Legend:

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

    r18159 r18330  
    348348        )
    349349
     350    endowment_fee = schema.Float(
     351        title = _(u'Endowment Fund Fee'),
     352        default = 0.0,
     353        required = False,
     354        )
     355
    350356    # CDL Portal Fees only
    351357
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/browser.py

    r18258 r18330  
    7474    'pg_other':             ('0040621193','31'),
    7575    'municipal_fresh':      ('0040621193','31'),
    76     'matric':               ('0040621193','31')
     76    'matric':               ('0040621193','31'),
     77    'endowment':            ('1312373440','31'),
    7778    }
    7879
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py

    r18184 r18330  
    119119        self.app['configuration']['2025'].id_card_fee = 10000.0
    120120        self.app['configuration']['2025'].medical_screening_fee = 10000.0
     121        self.app['configuration']['2025'].endowment_fee = 10000.0
    121122        self.browser.getControl(name="form.p_category").value = ['required_combi']
    122123        self.browser.getControl("Create payment").click()
    … …  
    127128        self.browser.getLink(self.value).click()
    128129        self.assertTrue(
    129             '<span>130000.0</span>' in self.browser.contents)
     130            '<span>140000.0</span>' in self.browser.contents)
    130131        self.payment_url = self.browser.url
    131132        self.browser.getLink("Pay via Interswitch", index=0).click()
    … …  
    135136        # 250 gateway charge have been added
    136137        payment = self.student['payments'][self.value]
    137         self.assertEqual(payment.amount_auth, 130800)
    138         self.assertEqual(payment.net_amt, 130000)
    139         self.assertTrue(
    140             '<input type="hidden" name="amount" value="13080000" />' in
    141             self.browser.contents)
    142         self.assertTrue(
    143             'item_id="6" item_name="registration_fresh" item_amt="2000000" bank_id="31" acct_num="0040621193"' in
    144             self.browser.contents)
    145         self.assertTrue(
    146             'item_id="12" item_name="parentsconsult" item_amt="1000000" bank_id="117" acct_num="1012355544"' in
     138        self.assertEqual(payment.amount_auth, 140800)
     139        self.assertEqual(payment.net_amt, 140000)
     140        self.assertTrue(
     141            '<input type="hidden" name="amount" value="14080000" />' in
     142            self.browser.contents)
     143        self.assertTrue(
     144            'item_id="7" item_name="registration_fresh" item_amt="2000000" bank_id="31" acct_num="0040621193"' in
     145            self.browser.contents)
     146        self.assertTrue(
     147            'item_id="13" item_name="parentsconsult" item_amt="1000000" bank_id="117" acct_num="1012355544"' in
    147148            self.browser.contents)
    148149
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r18236 r18330  
    6262        'medical_screening': 'Medical Screening Fees',
    6363        'science': 'Science Bench Fee',
     64        'endowment': 'Endowment Fund',
    6465        }
    6566
    … …  
    7677        'id_card': 'I.D. Card',
    7778        'medical_screening': 'Medical Screening Fees',
     79        'endowment': 'Endowment Fund',
    7880        }
    7981
    … …  
    8688        'municipal_returning': 'Returning Students Municipal Fee',
    8789        'health_insurance': 'Student Health Insurance',
     90        'endowment': 'Endowment Fund',
    8891        }
    8992
    … …  
    100103        'conv': 'Convocation Fees',
    101104        'grad_clearance': 'Clearance Fees',
     105        'endowment': 'Endowment Fund',
    102106        }
    103107
    … …  
    111115        'health_insurance': 'Student Health Insurance',
    112116        'pharmlab': 'Pharmacy Lab Support Fee',
     117        'endowment': 'Endowment Fund',
    113118        }
    114119
    … …  
    125130        'grad_clearance': 'Clearance Fees',
    126131        'pharmlab': 'Pharmacy Lab Support Fee',
     132        'endowment': 'Endowment Fund',
    127133        }
    128134
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py

    r18273 r18330  
    9191        'brought_fwd': 'Balance Brought Forward',
    9292        'health_insurance': 'Student Health Insurance',
     93        'endowment': 'Endowment Fund',
    9394        # CDL Portal Fees only
    9495        'medical':'Medical Services',
    … …  
    179180        ## sundry: 'health_insurance': 'Student Health Insurance',
    180181        ## sundry: 'pharmlab': 'Pharmacy Lab Support Fee',
     182        ## sundry: 'endowment': 'Endowment Fund',
    181183        }
    182184
    … …  
    223225        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
    224226        'clearance': 'Acceptance Fee',
    225 
    226         ## sundry: 'registration_fresh': 'Registration Fee (Fresh)',
    227         ## sundry: 'registration_return': 'Registration Fee (Returning)',
    228         ## sundry: 'grad_clearance': 'Clearance Fee',
    229         ## sundry: 'science': 'Science Bench Fee',
    230         ## sundry: 'medical_screening':'Medical Screening Fees',
    231         ## sundry: 'municipal_fresh': 'Municipal Fee (Fresh Students)',
    232         ## sundry: 'municipal_returning': 'Municipal Fee (Returning Students)',
    233         ## sundry: 'alumni': 'Alumni Fee',
    234         ## sundry: 'conv': 'Convocation Fee',
    235         ## sundry: 'matric': 'Matriculation Fee',
    236         ## sundry: 'waecneco': 'WAEC/NECO Verification',
    237         ## sundry: 'jambver': 'JAMB Verification',
    238         ## sundry: 'book': 'Book Deposit',
    239         ## sundry: 'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
    240         ## sundry: 'id_card': 'Student ID Card',
    241         ## sundry: 'develop': 'Development Fee',
    242         ## sundry: 'health_insurance': 'Student Health Insurance',
    243         ## sundry: 'pharmlab': 'Pharmacy Lab Support Fee',
    244 
    245227        'application': 'Application Fee',
    246228        'late_registration': 'Late Registration Fee',
    … …  
    296278    _COMBI_PAYMENT_CATEGORIES = {
    297279        #'registration': 'Registration Fee',
    298         ## sundry: 'registration_fresh': 'Registration Fee (Fresh)',
    299         ## sundry: 'registration_return': 'Registration Fee (Returning)',
    300         ## sundry: 'grad_clearance': 'Clearance Fee',
    301         ## sundry: 'science': 'Science Bench Fee',
    302         ## sundry: 'medical_screening':'Medical Screening Fees',
    303         ## sundry: 'municipal_fresh': 'Municipal Fee (Fresh Students)',
    304         ## sundry: 'municipal_returning': 'Municipal Fee (Returning Students)',
    305         ## sundry: 'alumni': 'Alumni Fee',
    306         ## sundry: 'conv': 'Convocation Fee',
    307         ## sundry: 'matric': 'Matriculation Fee',
    308         ## sundry: 'waecneco': 'WAEC/NECO Verification',
    309         ## sundry: 'jambver': 'JAMB Verification',
    310         ## sundry: 'book': 'Book Deposit',
    311         ## sundry: 'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
    312         ## sundry: 'id_card': 'Student ID Card',
    313         ## sundry: 'develop': 'Development Fee',
    314         ## sundry: 'health_insurance': 'Student Health Insurance',
    315         ## sundry: 'pharmlab': 'Pharmacy Lab Support Fee',
    316280        'clinical': 'Clinical Fee (Medical Students)',
    317281        'late_registration': 'Late Registration Fee',
Note: See TracChangeset for help on using the changeset viewer.