Ignore:
Timestamp:
1 Oct 2023, 20:32:58 (12 months ago)
Author:
Henrik Bettermann
Message:

Reconfigure clearance (acceptance) fee.

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

Legend:

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

    r17506 r17599  
    8989        if self.context.p_category == 'clearance':
    9090            provider_amt = 500.0
    91             xmldict['institution_acct'] = '1216063205'
    92             if student.faccode in ('PRE', 'JUPEB'):
    93                 xmldict['institution_acct'] = '1011431799'
    94             if student.current_mode.startswith('dp'):
    95                 xmldict['institution_acct'] = '1011431799'
    96             if student.faccode == 'IJMB':
    97                 xmldict['institution_acct'] = '0093658062'
     91            if student.current_mode in ('ug_ft', 'de_ft'):
     92                xmldict['institution_acct'] = '1216063205'
     93                tech_fee = 18000.0
     94                xmldict['tech_acct'] = '0092304647'
     95                xmldict['tech_bank_id'] = '121'
    9896        elif self.context.p_category == 'schoolfee':
    9997            provider_amt = 2800.0
    10098            tech_fee = 1200.0
    10199            xmldict['institution_acct'] = '1011739172'
     100            xmldict['tech_acct'] = '0213065415'
     101            xmldict['tech_bank_id'] = '47'
    102102            if student.faccode in ('PRE', 'JUPEB'):
    103103                xmldict['institution_acct'] = '2001627961'
     
    152152<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" />
    153153<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
    154 <item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="47" acct_num="0213065415" />
     154<item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="%(tech_bank_id)s" acct_num="%(tech_acct)s"/>
    155155</item_details>
    156156</payment_item_detail>""" % xmldict
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py

    r16869 r17599  
    101101        self.assertEqual(self.student.current_mode, 'ug_ft')
    102102        self.assertMatches(
    103             '...<input type="hidden" name="amount" value="115000" />...',
     103            '...<input type="hidden" name="amount" value="1975000" />...',
    104104            self.browser.contents)
    105105        delta = timedelta(days=8)
Note: See TracChangeset for help on using the changeset viewer.