Changeset 11791


Ignore:
Timestamp:
9 Sep 2014, 07:18:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Change bank account numbers for pre* application fee payments.

Adjust tests.

Location:
main/waeup.kwarapoly/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/CHANGES.txt

    r11769 r11791  
    441.2dev (unreleased)
    55===================
     6
     7* Change bank account numbers for pre* application fee payments.
    68
    79* Use dictionary for special payment parameter configuration.
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r11769 r11791  
    244244            xmldict['institution_bank_id'] = '9'
    245245        elif self.applicant.applicant_id.startswith('prejambites'):
    246             xmldict['institution_acct'] = '0106259811'
    247             xmldict['institution_bank_id'] = '10'
     246            # changed for prejambites from GTBank '0106259811' to FBN '2013910271'
     247            xmldict['institution_acct'] = '2013910271'
     248            xmldict['institution_bank_id'] = '8'
    248249            self.pay_item_id = '104'
    249250            provider_amt = 0.0
    250251            dalash_amt = 0.0
    251252        elif self.applicant.applicant_id.startswith('pre'):
    252             xmldict['institution_acct'] = '2013910271'
    253             xmldict['institution_bank_id'] = '8'
     253            # changed for prejambites from FBN '2013910271' to GTBank '0106259811'
     254            xmldict['institution_acct'] = '0106259811'
     255            xmldict['institution_bank_id'] = '10'
    254256            provider_amt = 0.0
    255257            dalash_amt = 0.0
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r11769 r11791  
    163163                           self.browser.contents)
    164164        self.assertTrue(
    165             '<input type="hidden" name="amount" value="2950000.0" />' in
     165            '<input type="hidden" name="amount" value="2950000" />' in
    166166            self.browser.contents)
    167167        self.assertTrue(
     
    226226            self.browser.contents)
    227227        self.assertMatches(
    228             '...<input type="hidden" name="amount" value="87600.0" />...',
     228            '...<input type="hidden" name="amount" value="87600" />...',
    229229            self.browser.contents)
    230230        self.assertMatches(
     
    253253                           self.browser.contents)
    254254        self.assertMatches(
    255             '...<input type="hidden" name="amount" value="600000.0" />...',
     255            '...<input type="hidden" name="amount" value="600000" />...',
    256256            self.browser.contents)
    257257        self.assertMatches(
     
    526526                           self.browser.contents)
    527527        self.assertTrue(
    528             '<input type="hidden" name="amount" value="333300.0" />'
     528            '<input type="hidden" name="amount" value="333300" />'
    529529            in self.browser.contents)
    530530        self.assertTrue(
     
    563563        self.assertTrue(
    564564            '<item_detail item_id="1" item_name="Application Fee" '
    565             'item_amt="303300" bank_id="8" acct_num="2013910271" />'
     565            'item_amt="303300" bank_id="10" acct_num="0106259811" />'
    566566            in self.browser.contents)
    567567        # No 'commission', no provider fee
     
    578578        self.assertTrue(
    579579            '<item_detail item_id="1" item_name="Application Fee" '
    580             'item_amt="303300" bank_id="10" acct_num="0106259811" />'
     580            'item_amt="303300" bank_id="8" acct_num="2013910271" />'
    581581            in self.browser.contents)
    582582        # No 'commission', no provider fee
Note: See TracChangeset for help on using the changeset viewer.