Ignore:
Timestamp:
21 Oct 2014, 19:16:07 (10 years ago)
Author:
Henrik Bettermann
Message:

Increase school fees and change bank account numbers.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r11797 r11865  
    127127            dalash_amt = 1800.0
    128128            provider_amt = 1200.0
    129             if xmldict['faculty'] in ('CPGS',):
    130                 xmldict['institution_acct'] = "1771586608"    #changed account no. from 1771180233
    131                 xmldict['institution_bank_id'] = '120'
    132             elif xmldict['faculty'] in ('IBAS',):
    133                 xmldict['institution_acct'] = "2013910271"
    134                 xmldict['institution_bank_id'] = '8'
    135                 self.pay_item_id = '107'
    136             elif xmldict['faculty'] in ('IETS',):
    137                 xmldict['institution_acct'] = "2013910271"
    138                 xmldict['institution_bank_id'] = '8'
    139                 self.pay_item_id = '109'
    140             elif xmldict['faculty'] in ('IFMS',):
    141                 xmldict['institution_acct'] = "0106259811"
    142                 xmldict['institution_bank_id'] = '10'
    143                 self.pay_item_id = '106'
    144             elif xmldict['faculty'] in ('ITCH',):
    145                 xmldict['institution_acct'] = "1771586608"    #changed account no. from 1771180233
    146                 xmldict['institution_bank_id'] = '120'
    147                 self.pay_item_id = '110'
    148             elif xmldict['faculty'] in ('IICT',):
    149                 xmldict['institution_acct'] = "2013910271"
    150                 xmldict['institution_bank_id'] = '8'
    151                 self.pay_item_id = '108'
     129            if not student.current_mode.endswith('_pt'):
     130                if xmldict['faculty'] in ('CPGS',):
     131                    xmldict['institution_acct'] = "1771586608"    #changed account no. from 1771180233
     132                    xmldict['institution_bank_id'] = '120'
     133                elif xmldict['faculty'] in ('IBAS',):
     134                    xmldict['institution_acct'] = "1771586608"  #Changed from FBN to SKYE Bank
     135                    xmldict['institution_bank_id'] = '120'
     136                    self.pay_item_id = '107'
     137                elif xmldict['faculty'] in ('IETS',):
     138                    xmldict['institution_acct'] = "0693033406" #Changed from FBN to Access Bank
     139                    xmldict['institution_bank_id'] = '31'
     140                    self.pay_item_id = '109'
     141                elif xmldict['faculty'] in ('IFMS',):
     142                    xmldict['institution_acct'] = "2013910271" #changed bank from GTBank to FBN
     143                    xmldict['institution_bank_id'] = '8'
     144                    self.pay_item_id = '106'
     145                elif xmldict['faculty'] in ('ITCH',):
     146                    xmldict['institution_acct'] = "0106259811"    #changed from SKYE Bank to GTbank
     147                    xmldict['institution_bank_id'] = '10'
     148                    self.pay_item_id = '110'
     149                elif xmldict['faculty'] in ('IICT',):
     150                    xmldict['institution_acct'] = "1100019929" #changed from FBN to Keystone Bank
     151                    xmldict['institution_bank_id'] = '123'
     152                    self.pay_item_id = '108'
     153            else:
     154                xmldict['institution_acct'] = "0838798020"  #part-time fees acquired by FCMB
     155                xmldict['institution_bank_id'] = '76'
    152156        elif self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
    153157            self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r11797 r11865  
    147147        self.assertMatches('...Amount Authorized...', self.browser.contents)
    148148        self.assertMatches(
    149             '...<span>29500.0</span>...',
     149            '...<span>30500.0</span>...',
    150150            self.browser.contents)
    151151        self.payment_url = self.browser.url
     
    163163                           self.browser.contents)
    164164        self.assertTrue(
    165             '<input type="hidden" name="amount" value="2950000" />' in
    166             self.browser.contents)
    167         self.assertTrue(
    168             'item_name="School Fee" item_amt="2620000" bank_id="120" acct_num="1771586608"' in
     165            '<input type="hidden" name="amount" value="3050000" />' in
     166            self.browser.contents)
     167        self.assertTrue(
     168            'item_name="School Fee" item_amt="2720000" bank_id="120" acct_num="1771586608"' in
    169169            self.browser.contents)
    170170        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.