Changeset 16192 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 11 Aug 2020, 08:38:20 (4 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/tests/test_webservices.py
r16191 r16192 839 839 'amount_auth': 12.12, 'p_session': 2012, 840 840 'p_state': 'failed', 841 'r_company': 'xyz'} 841 'r_company': 'xyz', 842 'fullname': 'Anna Tester', 843 'id': 'K1000000', 844 'matric_number': '234'} 842 845 ]) 843 846 results = server.get_unpaid_payments(4) … … 850 853 'p_session': 2012, 851 854 'p_state': 'unpaid', 852 'r_company': None}, 855 'r_company': None, 856 'fullname': 'Anna Tester', 857 'id': 'K1000000', 858 'matric_number': '234'}, 853 859 {'display_item': None, 854 860 'p_id': '%s' % p_id_1, … … 857 863 'p_session': 2012, 858 864 'p_state': 'failed', 859 'r_company': 'xyz'} 865 'r_company': 'xyz', 866 'fullname': 'Anna Tester', 867 'id': 'K1000000', 868 'matric_number': '234'}, 860 869 ]) 861 870 results = server.get_unpaid_payments(4,'xyz') … … 868 877 'p_session': 2012, 869 878 'p_state': 'failed', 870 'r_company': 'xyz'}, 879 'r_company': 'xyz', 880 'fullname': 'Anna Tester', 881 'id': 'K1000000', 882 'matric_number': '234'}, 871 883 ]) 872 884 … … 892 904 <value><nil/></value></member> 893 905 <member> 906 <name>amount_auth</name> 907 <value><double>12.12</double></value> 908 </member> 909 <member> 894 910 <name>p_id</name> 895 911 <value><string>%s</string></value> … … 900 916 </member> 901 917 <member> 918 <name>matric_number</name> 919 <value><string>234</string></value> 920 </member> 921 <member> 902 922 <name>p_category</name> 903 923 <value><string>schoolfee</string></value> 904 924 </member> 905 925 <member> 906 <name>amount_auth</name> 907 <value><double>12.12</double></value> 926 <name>fullname</name> 927 <value><string>Anna Tester</string></value> 928 </member> 929 <member> 930 <name>p_state</name> 931 <value><string>failed</string></value> 908 932 </member> 909 933 <member> … … 912 936 </member> 913 937 <member> 914 <name> p_state</name>915 <value><string> failed</string></value>938 <name>id</name> 939 <value><string>K1000000</string></value> 916 940 </member> 917 941 </struct></value> -
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r16191 r16192 26 26 IUniversity, IExtFileStore, IFileStoreNameChooser, IKofaUtils, 27 27 GRADUATED, TRANSREL) 28 from waeup.kofa.payments.interfaces import IPayer 28 29 from waeup.kofa.utils.helpers import get_fileformat, to_timezone 29 30 from waeup.kofa.students.catalog import StudentsQuery … … 446 447 p_session=payment.p_session, 447 448 p_state=payment.p_state, 448 r_company=getattr(payment, 'r_company', None) 449 r_company=getattr(payment, 'r_company', None), 450 id = IPayer(payment).id, 451 matric_number = IPayer(payment).matric_number, 452 fullname = IPayer(payment).display_fullname, 449 453 ) 450 454 ) … … 458 462 p_session=payment.p_session, 459 463 p_state=payment.p_state, 460 r_company=getattr(payment, 'r_company', None) 464 r_company=getattr(payment, 'r_company', None), 465 id = IPayer(payment).id, 466 matric_number = IPayer(payment).matric_number, 467 fullname = IPayer(payment).display_fullname, 461 468 ) 462 469 )
Note: See TracChangeset for help on using the changeset viewer.