Changeset 14308 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 4 Dec 2016, 16:58:28 (8 years ago)
- 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 245 245 self.browser.getControl("Add online payment ticket").click() 246 246 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 20 20 21 21 from kofacustom.nigeria.applicants.utils import NigeriaApplicantsUtils 22 from waeup.aaue.interswitch.browser import GATEWAY_AMT 22 23 from waeup.aaue.interfaces import MessageFactory as _ 23 24 … … 90 91 if applicant.container_code.startswith('trans') or \ 91 92 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 93 95 return
Note: See TracChangeset for help on using the changeset viewer.