Changeset 2366 for WAeUP_SRP/base/skins
- Timestamp:
- 16 Oct 2007, 06:43:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/getPaymentStatistic.py
r2365 r2366 54 54 'fee': 500, 55 55 'title': 'Hostel Maintainance', 56 'prefixes': hostel_pbs, 56 57 } 57 58 #ac = [pin for pin in aq_pins(In('prefix_batch', clearance_pbs)) if pin.student] 58 59 ac = aq_pins(In('prefix_batch', clearance_pbs)& missing_query) 59 60 fees['clearance'] = {'anz': len(ac), 60 'fee': 250, 61 'title': 'Clearance', 61 'fee': 250, 62 'title': 'Clearance', 63 'prefixes': clearance_pbs, 62 64 } 63 65 #aa = [pin for pin in aq_pins(In('prefix_batch', application_pbs)) if pin.student] … … 66 68 'fee': 200, 67 69 'title': 'Application', 70 'prefixes': application_pbs, 68 71 } 69 72 aso = aq_portal(Eq('portal_type','Payment') & In("SearchableText",("successful",))) … … 71 74 'fee': 1000, 72 75 'title': 'Schoolfee (online)', 76 'prefixes': (), 73 77 } 74 78 #assc = [pin for pin in aq_pins(In('prefix_batch', schoolfee_pbs)) if pin.student] … … 77 81 'fee': 1000, 78 82 'title': 'Schoolfee (Scratchcard)', 83 'prefixes': schoolfee_pbs, 79 84 } 80 85 rwrite("Payed fees") 81 86 total = 0 82 for fee in fees.values(): 87 keys = fees.keys() 88 keys.sort() 89 for key in keys: 90 fee = fees[key] 83 91 t = fee['value'] = fee['anz'] * fee['fee'] 84 92 total += t 85 rwrite("%(title)s fees %(anz)d = %(value)d (%(fee)d N )" % fee)93 rwrite("%(title)s fees %(anz)d = %(value)d (%(fee)d N %(prefixes)s)" % fee) 86 94 gt = float(total)/1000000 87 95 rwrite("Total %10.2f Million N" % gt)
Note: See TracChangeset for help on using the changeset viewer.