Ignore:
Timestamp:
14 Sep 2014, 15:53:20 (10 years ago)
Author:
Henrik Bettermann
Message:

Until 14/9/2014 we have not sent split amount data for pre applications.
To compenstate the loss in 2014 we temporarily double the split amounts
See ticket 75.

File:
1 edited

Legend:

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

    r11791 r11793  
    247247            xmldict['institution_acct'] = '2013910271'
    248248            xmldict['institution_bank_id'] = '8'
    249             self.pay_item_id = '104'
    250             provider_amt = 0.0
    251             dalash_amt = 0.0
     249            # Until 14/9/2014 we have not sent split amount data for pre applications.
     250            # To compenstate the loss we temporarily double the split amounts.
     251            # See ticket 75.
     252            provider_amt = 600.0
     253            dalash_amt = 400.0
    252254        elif self.applicant.applicant_id.startswith('pre'):
    253255            # changed for prejambites from FBN '2013910271' to GTBank '0106259811'
    254256            xmldict['institution_acct'] = '0106259811'
    255257            xmldict['institution_bank_id'] = '10'
    256             provider_amt = 0.0
    257             dalash_amt = 0.0
     258            # Until 14/9/2014 we have not sent split amount data for pre applications.
     259            # To compenstate the loss we temporarily double the split amounts.
     260            # See ticket 75.
     261            provider_amt = 600.0
     262            dalash_amt = 400.0
    258263        elif self.applicant.applicant_id.startswith('special'):
    259264            if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
     
    287292        # Interswitch amount is not part of the xml data
    288293
    289         if not self.applicant.applicant_id.startswith('pre'):
    290             xmltext = """<payment_item_detail>
     294        xmltext = """<payment_item_detail>
    291295<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
    292296<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" />
    293297<item_detail item_id="2" item_name="Dalash" item_amt="%(dalash_amt)d" bank_id="117" acct_num="1013196791" />
    294298<item_detail item_id="3" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
    295 </item_details>
    296 </payment_item_detail>""" % xmldict
    297 
    298         else:
    299             xmltext = """<payment_item_detail>
    300 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
    301 <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" />
    302299</item_details>
    303300</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.