Ignore:
Timestamp:
4 Dec 2016, 16:58:28 (8 years ago)
Author:
Henrik Bettermann
Message:

Deduct Interswitch surcharge.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r14307 r14308  
    245245        self.browser.getControl("Add online payment ticket").click()
    246246        self.assertTrue('Payment ticket created' in self.browser.contents)
    247         self.assertTrue('<span>600.0</span>' in self.browser.contents)
    248         self.assertEqual(applicant.values()[0].amount_auth, 600.0)
    249         return
     247        self.assertTrue('<span>100.0</span>' in self.browser.contents)
     248        self.assertEqual(applicant.values()[0].amount_auth, 100.0)
     249        return
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py

    r14307 r14308  
    2020
    2121from kofacustom.nigeria.applicants.utils import NigeriaApplicantsUtils
     22from waeup.aaue.interswitch.browser import GATEWAY_AMT
    2223from waeup.aaue.interfaces import MessageFactory as _
    2324
     
    9091        if applicant.container_code.startswith('trans') or \
    9192            applicant.container_code.startswith('cert'):
    92             payment.amount_auth = applicant.no_copies * container.application_fee
     93            payment.amount_auth = applicant.no_copies * container.application_fee - \
     94                (applicant.no_copies-1) * GATEWAY_AMT
    9395        return
Note: See TracChangeset for help on using the changeset viewer.