Changeset 15074


Ignore:
Timestamp:
3 Jul 2018, 05:47:49 (6 years ago)
Author:
Henrik Bettermann
Message:

Deduct Student Union Dues from Tution Fee.

Start customizing application category.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
Files:
3 edited

Legend:

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

    r15031 r15074  
    9393            self.context.amount_auth - provider_amt - GATEWAY_AMT)
    9494        # Interswitch amount is not part of the xml data
    95         if provider_amt == 0:
     95        if not self.context.p_item == 'Balance' \
     96            and self.context.p_category == 'schoolfee':
     97            xmldict['institution_amt'] -= 200000
     98            xmltext = """<payment_item_detail>
     99<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     100<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
     101<item_detail item_id="2" item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412" />
     102</item_details>
     103</payment_item_detail>""" % xmldict
     104        elif provider_amt == 0:
    96105            xmltext = """<payment_item_detail>
    97106<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/tests.py

    r15072 r15074  
    105105            self.browser.contents)
    106106        self.assertTrue(
    107             'item_name="Tuition and Exams Fee" item_amt="3975000" bank_id="121" acct_num="0068241848"' in
     107            'item_name="Tuition and Exams Fee" item_amt="3775000" bank_id="121" acct_num="0068241848"' in
     108            self.browser.contents)
     109        self.assertTrue(
     110            'item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412"' in
    108111            self.browser.contents)
    109112        # Clearance Fee
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py

    r15073 r15074  
    2424    """A collection of methods subject to customization.
    2525    """
     26
     27    APP_CATS_DICT = {
     28        'basic': 'Basic Application',
     29        'no': 'no application',
     30        'pg': 'Postgraduate',
     31        'sandwich': 'Sandwich',
     32        'cest': 'Part-Time, Diploma, Certificate'
     33        }
    2634
    2735    PAYMENT_CATEGORIES = {
Note: See TracChangeset for help on using the changeset viewer.