Changeset 2387 for WAeUP_SRP/base/skins/waeup_utilities
- Timestamp:
- 18 Oct 2007, 17:46:56 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/getPaymentStatistic.py
r2386 r2387 55 55 application_pbs = [pb for pb in pbs if pb.startswith('APP')] 56 56 57 newschoolfee_pbs = [pb for pb in pbs if pb.endswith('NEW1')] 58 57 59 schoolfee_pbs = list(pbs)[:] 58 for pb in application_pbs + hostel_pbs + clearance_pbs + ['HOS1','HOS2']:60 for pb in application_pbs + hostel_pbs + clearance_pbs + newschoolfee_pbs +['HOS1','HOS2']: 59 61 schoolfee_pbs.remove(pb) 60 62 fees = {} … … 92 94 aspaysc = aq_portal(Eq('portal_type','Payment') &\ 93 95 Eq("SearchableText","payment") &\ 94 Eq("SearchableText","successful")) 95 rwrite("*"*80) 96 Eq("SearchableText","successful") &\ 97 ~ Eq("SearchableText","transfer") 98 ) 99 #rwrite("*"*80) 96 100 # for pp in aspaysc: 97 101 # indexdata = portal.getIndexDataForRID(pp.getRID()) … … 101 105 'title': 'Schoolfee (sc in payments)', 102 106 'prefixes': (), 107 } 108 anewschool = aq_pins(In('prefix_batch', newschoolfee_pbs) & missing_query) 109 fees['newschoolfee_sc'] = {'anz' : len(anewschool), 110 'fee': 1000, 111 'title': 'Schoolfee (..NEW SC)', 112 'prefixes': newschoolfee_pbs, 103 113 } 104 114 #assc = [pin for pin in aq_pins(In('prefix_batch', schoolfee_pbs)) if pin.student]
Note: See TracChangeset for help on using the changeset viewer.