Ignore:
Timestamp:
4 Dec 2018, 08:18:51 (6 years ago)
Author:
Henrik Bettermann
Message:

Change provider amount.

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

Legend:

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

    r15233 r15260  
    9090            self.redirect(self.url(self.context, '@@index'))
    9191            return
     92        provider_amt = 2000.0
    9293        if contr_agreement_applicant(self.context.__parent__) == 'first':
    9394            self.product_id = PRODUCT_ID_PT
    9495            self.pay_item_id = '101'
    9596            self.mac = MAC_PT
    96             provider_amt = 4000.0
    9797        else:
    9898            self.product_id = PRODUCT_ID_REGULAR
    9999            self.pay_item_id = '109'
    100100            self.mac = MAC_REGULAR
    101             provider_amt = 1000.0
    102101            if self.applicant.__parent__.prefix in ('trans', 'cert'):
    103                 provider_amt = 2000.0
    104102                self.provider_bank_id = '10'
    105103                self.provider_acct = '0427773399'
    106104            elif self.applicant.applicant_id.startswith('bridge',): # easier to test
    107                 provider_amt = 2000.0
    108105                self.institution_acct = '1014847058'
    109106                self.institution_bank_id = '7'
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r15224 r15260  
    7878            in self.browser.contents)
    7979        self.assertTrue(
    80             'item_name="WAeAC" item_amt="100000"'
    81             in self.browser.contents)
    82         self.assertTrue(
    83             'item_name="Application Fee" item_amt="875000" bank_id="117" acct_num="1010835352"'
     80            'item_name="WAeAC" item_amt="200000"'
     81            in self.browser.contents)
     82        self.assertTrue(
     83            'item_name="Application Fee" item_amt="775000" bank_id="117" acct_num="1010835352"'
    8484            in self.browser.contents)
    8585        self.assertTrue(
     
    109109            in self.browser.contents)
    110110        self.assertTrue(
    111             'item_name="WAeAC" item_amt="100000"'
    112             in self.browser.contents)
    113         self.assertTrue(
    114             'item_name="Application Fee" item_amt="675000" bank_id="117" acct_num="1010835352"'
     111            'item_name="WAeAC" item_amt="200000"'
     112            in self.browser.contents)
     113        self.assertTrue(
     114            'item_name="Application Fee" item_amt="575000" bank_id="117" acct_num="1010835352"'
    115115            in self.browser.contents)
    116116        self.assertTrue(
     
    143143            in self.browser.contents)
    144144        self.assertTrue(
    145             'item_name="WAeAC" item_amt="100000"'
    146             in self.browser.contents)
    147         self.assertTrue(
    148             'item_name="Application Fee" item_amt="875000" bank_id="117" acct_num="1010835352"'
     145            'item_name="WAeAC" item_amt="200000"'
     146            in self.browser.contents)
     147        self.assertTrue(
     148            'item_name="Application Fee" item_amt="775000" bank_id="117" acct_num="1010835352"'
    149149            in self.browser.contents)
    150150        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.