Changeset 11767 for main/kofacustom.nigeria/trunk
- Timestamp:
- 23 Jul 2014, 12:42:22 (10 years ago)
- Location:
- main/kofacustom.nigeria/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/CHANGES.txt
r11739 r11767 4 4 1.2 (unreleased) 5 5 ================ 6 7 - All fee amounts must be passed to Interswitch as integers 8 (mutltiples of Kobos) not floats. 6 9 7 10 - Add 'jamb_age' field. -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r11642 r11767 167 167 self.context.p_item, self.context.p_session): 168 168 return _("This type of payment has already been made.") 169 self.amount_auth = 100 * self.context.amount_auth169 self.amount_auth = int(100 * self.context.amount_auth) 170 170 xmldict = {} 171 171 if certificate is not None: … … 217 217 "Application period has expired.") 218 218 self.applicant = self.context.__parent__ 219 self.amount_auth = 100 * self.context.amount_auth219 self.amount_auth = int(100 * self.context.amount_auth) 220 220 self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category] 221 221 tz = getUtility(IKofaUtils).tzinfo -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py
r11640 r11767 64 64 self.assertEqual(self.student.current_mode, 'ug_ft') 65 65 self.assertMatches( 66 '...<input type="hidden" name="amount" value="4000000 .0" />...',66 '...<input type="hidden" name="amount" value="4000000" />...', 67 67 self.browser.contents) 68 68 … … 91 91 self.browser.contents) 92 92 self.assertMatches( 93 '...<input type="hidden" name="amount" value="2000000 .0" />...',93 '...<input type="hidden" name="amount" value="2000000" />...', 94 94 self.browser.contents) 95 95 … … 132 132 self.browser.contents) 133 133 self.assertMatches( 134 '...<input type="hidden" name="amount" value="100000 .0" />...',134 '...<input type="hidden" name="amount" value="100000" />...', 135 135 self.browser.contents) 136 136
Note: See TracChangeset for help on using the changeset viewer.