Changeset 2387 for WAeUP_SRP


Ignore:
Timestamp:
18 Oct 2007, 17:46:56 (17 years ago)
Author:
joachim
Message:

da waren es nur noch 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/getPaymentStatistic.py

    r2386 r2387  
    5555application_pbs = [pb for pb in pbs if pb.startswith('APP')]
    5656
     57newschoolfee_pbs = [pb for pb in pbs if pb.endswith('NEW1')]
     58
    5759schoolfee_pbs = list(pbs)[:]
    58 for pb in application_pbs + hostel_pbs + clearance_pbs + ['HOS1','HOS2']:
     60for pb in application_pbs + hostel_pbs + clearance_pbs + newschoolfee_pbs +['HOS1','HOS2']:
    5961    schoolfee_pbs.remove(pb)
    6062fees = {}
     
    9294aspaysc = aq_portal(Eq('portal_type','Payment') &\
    9395                    Eq("SearchableText","payment") &\
    94                     Eq("SearchableText","successful"))
    95 rwrite("*"*80)
     96                    Eq("SearchableText","successful") &\
     97                    ~ Eq("SearchableText","transfer")
     98                   )
     99#rwrite("*"*80)
    96100# for pp in aspaysc:
    97101    # indexdata = portal.getIndexDataForRID(pp.getRID())
     
    101105                 'title': 'Schoolfee (sc in payments)',
    102106                  'prefixes': (),
     107                 }
     108anewschool = aq_pins(In('prefix_batch', newschoolfee_pbs) & missing_query)
     109fees['newschoolfee_sc'] = {'anz' : len(anewschool),
     110                 'fee': 1000,
     111                 'title': 'Schoolfee (..NEW SC)',
     112                  'prefixes': newschoolfee_pbs,
    103113                 }
    104114#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.