Changeset 13641
- Timestamp:
- 20 Jan 2016, 17:18:11 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r13640 r13641 363 363 IStudentOnlinePayment, exclude_attribs=False, 364 364 omit=['display_item']))) + ( 365 'student_id','state','current_session' , 'reg_number')365 'student_id','state','current_session') 366 366 title = _(u'Student Payments') 367 367 … … 482 482 fields = ('student_id', 'matric_number', 'display_fullname', 483 483 'state', 'certcode', 'faccode', 'depcode', 'is_postgrad', 484 'current_level', 'current_session', 'current_mode', 'entry_session' 484 'current_level', 'current_session', 'current_mode', 485 'entry_session', 'reg_number' 485 486 ) + year_range_tuple 486 487 title = _(u'Student Payments Overview') -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r13640 r13641 746 746 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 747 747 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 748 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'749 750 ',0.0,2012-04-01 13:12:01#,,1,,,,,unpaid,,0.0,,,,, ,\r\n'748 'r_code,r_desc,student_id,state,current_session\r\n' 749 750 ',0.0,2012-04-01 13:12:01#,,1,,,,,unpaid,,0.0,,,,,\r\n' 751 751 ) 752 752 return … … 764 764 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 765 765 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 766 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'766 'r_code,r_desc,student_id,state,current_session\r\n' 767 767 768 768 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 769 769 'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,' 770 'r-code,,A111111,created,2012 ,\r\n'770 'r-code,,A111111,created,2012\r\n' 771 771 ) 772 772 return … … 783 783 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 784 784 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 785 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'785 'r_code,r_desc,student_id,state,current_session\r\n' 786 786 787 787 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 788 788 'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,' 789 'r-code,,A111111,created,2012 ,\r\n'789 'r-code,,A111111,created,2012\r\n' 790 790 ) 791 791 return … … 802 802 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 803 803 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 804 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'804 'r_code,r_desc,student_id,state,current_session\r\n' 805 805 806 806 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 807 807 'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,' 808 'r-code,,A111111,created,2012 ,\r\n'808 'r-code,,A111111,created,2012\r\n' 809 809 ) 810 810 return … … 824 824 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 825 825 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 826 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'826 'r_code,r_desc,student_id,state,current_session\r\n' 827 827 828 828 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 829 829 'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,' 830 'r-code,,A111111,created,2012 ,\r\n'830 'r-code,,A111111,created,2012\r\n' 831 831 ) 832 832 return … … 860 860 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 861 861 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 862 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'862 'r_code,r_desc,student_id,state,current_session\r\n' 863 863 864 864 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 865 865 'p-item,100,2012,paid,2012-04-01 14:12:01#,12.12,' 866 'r-code,,A111111,created,2012 ,\r\n'866 'r-code,,A111111,created,2012\r\n' 867 867 ) 868 868 # Payment date is 2012-04-01, 14:12:01. … … 877 877 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 878 878 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 879 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'879 'r_code,r_desc,student_id,state,current_session\r\n' 880 880 ) 881 881 exporter.export_filtered( … … 888 888 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 889 889 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 890 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'890 'r_code,r_desc,student_id,state,current_session\r\n' 891 891 ) 892 892 # No results if payment_date is not set … … 901 901 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 902 902 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 903 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'903 'r_code,r_desc,student_id,state,current_session\r\n' 904 904 ) 905 905 return … … 926 926 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 927 927 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 928 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'928 'r_code,r_desc,student_id,state,current_session\r\n' 929 929 ) 930 930 # Make ticket unpaid … … 936 936 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 937 937 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 938 'r_code,r_desc,student_id,state,current_session ,reg_number\r\n'938 'r_code,r_desc,student_id,state,current_session\r\n' 939 939 940 940 '666,12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,' 941 941 'p-item,100,2012,unpaid,2012-04-01 14:12:01#,12.12,' 942 'r-code,,A111111,created,2012 ,\r\n'942 'r-code,,A111111,created,2012\r\n' 943 943 ) 944 944 return … … 1110 1110 'faccode,depcode,is_postgrad,' 1111 1111 'current_level,current_session,current_mode,entry_session,' 1112 ' %s\r\n'1112 'reg_number,%s\r\n' 1113 1113 'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,' 1114 1114 '200,2012,ug_ft,2010,' … … 1153 1153 'certcode,faccode,depcode,is_postgrad,' 1154 1154 'current_level,current_session,current_mode,entry_session,' 1155 ' %s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,'1156 '200,2012,ug_ft,2010, ,,,,,14.14,waived,,,,\r\n'1155 'reg_number,%s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,' 1156 '200,2012,ug_ft,2010,123,,,,,,14.14,waived,,,,\r\n' 1157 1157 % year_range_str in result 1158 1158 )
Note: See TracChangeset for help on using the changeset viewer.