Changeset 9151 for main/waeup.kofa/trunk/src
- Timestamp:
- 4 Sep 2012, 07:03:24 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_payment_data.csv
r9039 r9151 1 matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type 2 ,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online 3 100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 WAT,online 4 ,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online 1 matric_number,p_state,p_category,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,p_current 2 ,paid,schoolfee,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,1 3 100001,unpaid,schoolfee,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 WAT,online,0 4 ,paid,schoolfee,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,1 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r9039 r9151 915 915 p_id='p2907979737440'), self.app) 916 916 self.assertEqual(payment.p_id, 'p2907979737440') 917 self.assertTrue(payment.p_current) 917 918 cdate = payment.creation_date.strftime("%Y-%m-%d %H:%M:%S") 918 919 self.assertEqual(cdate, "2010-11-26 18:59:33") … … 921 922 p_id='p2907125937570'), self.app) 922 923 self.assertEqual(payment.p_id, 'p2907125937570') 924 self.assertFalse(payment.p_current) 923 925 cdate = payment.creation_date.strftime("%Y-%m-%d %H:%M:%S") 924 926 # Ooooh, still the old problem, see … … 932 934 self.assertTrue( 933 935 'INFO - system - K1000001 - Payment ticket updated: ' 934 'p_i d=p1266236341955, p_item=BTECHBDT, '935 ' creation_date=2010-02-15 13:19:01+00:00, r_code=00, '936 ' r_amount_approved=19500.0, p_category=schoolfee, '937 ' amount_auth=19500.0,p_state=paid'936 'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, ' 937 'p_category=schoolfee, amount_auth=19500.0, p_current=True, ' 938 'p_id=p1266236341955, r_code=00, r_amount_approved=19500.0, ' 939 'p_state=paid' 938 940 in logcontent) 939 941 -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9148 r9151 282 282 283 283 def setPaymentDetails(self, category, student, 284 previous_session =None, previous_level=None):284 previous_session, previous_level): 285 285 """Create Payment object and set the payment data of a student for 286 286 the payment category specified.
Note: See TracChangeset for help on using the changeset viewer.