Changeset 13013 for main/kofacustom.nigeria
- Timestamp:
- 28 May 2015, 14:00:57 (10 years ago)
- Location:
- main/kofacustom.nigeria/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/CHANGES.txt
r13007 r13013 5 5 ================ 6 6 7 - Non-imported payment tickets must not be submitted to Interswitch if they7 - Payment tickets must not be submitted to Interswitch if they 8 8 are older than 1 day. 9 9 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r13007 r13013 168 168 tz = getUtility(IKofaUtils).tzinfo 169 169 time_delta = datetime.utcnow() - self.context.creation_date 170 if self.context.created_online andtime_delta.seconds > 3600:170 if time_delta.seconds > 3600: 171 171 return _("This payment ticket is too old. Please create a new ticket.") 172 172 student = self.context.student -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r13007 r13013 118 118 result = open(self.outfile, 'rb').read() 119 119 self.assertMatches( 120 'ac,amount_auth,creat ed_online,creation_date,gateway_amt,p_category,p_current,'120 'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,' 121 121 'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,' 122 122 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 123 123 'r_pay_reference,thirdparty_amt,student_id,state,' 124 124 'current_session\r\n' 125 '666,12.12, 0,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'125 '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,' 126 126 '100,2012,paid,2012-04-01 14:12:01#,,12.12,' 127 127 '789,r-code,interswatch,,,,A111111,created,2012\r\n',
Note: See TracChangeset for help on using the changeset viewer.