Changeset 16191
- Timestamp:
- 7 Aug 2020, 12:52:51 (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
r16169 r16191 812 812 payment1.p_session = 2012 813 813 payment1.amount_auth = 12.12 814 payment1.p_state = u' unpaid'814 payment1.p_state = u'failed' 815 815 payment1.p_category = u'schoolfee' 816 816 payment1.r_company = u'xyz' … … 838 838 'p_category': 'schoolfee', 839 839 'amount_auth': 12.12, 'p_session': 2012, 840 'p_state': ' unpaid',840 'p_state': 'failed', 841 841 'r_company': 'xyz'} 842 842 ]) … … 845 845 results,[ 846 846 {'display_item': None, 847 'p_id': '%s' % p_id_1,848 'p_category': 'schoolfee',849 'amount_auth': 12.12,850 'p_session': 2012,851 'p_state': 'unpaid',852 'r_company': 'xyz'},853 {'display_item': None,854 847 'p_id': '%s' % p_id_3, 855 848 'p_category': 'schoolfee', … … 857 850 'p_session': 2012, 858 851 'p_state': 'unpaid', 859 'r_company': None} 852 'r_company': None}, 853 {'display_item': None, 854 'p_id': '%s' % p_id_1, 855 'p_category': 'schoolfee', 856 'amount_auth': 12.12, 857 'p_session': 2012, 858 'p_state': 'failed', 859 'r_company': 'xyz'} 860 860 ]) 861 861 results = server.get_unpaid_payments(4,'xyz') … … 867 867 'amount_auth': 12.12, 868 868 'p_session': 2012, 869 'p_state': ' unpaid',869 'p_state': 'failed', 870 870 'r_company': 'xyz'}, 871 871 ]) … … 913 913 <member> 914 914 <name>p_state</name> 915 <value><string> unpaid</string></value>915 <value><string>failed</string></value> 916 916 </member> 917 917 </struct></value> -
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r16169 r16191 432 432 cat.searchResults(p_id=(p_id_minus_days, p_id_now), 433 433 p_state=('unpaid', 'unpaid'))) 434 payments += list( 435 cat.searchResults(p_id=(p_id_minus_days, p_id_now), 436 p_state=('failed', 'failed'))) 434 437 hitlist = [] 435 438 if company:
Note: See TracChangeset for help on using the changeset viewer.