- Timestamp:
- 30 Jan 2007, 18:55:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixScratchCardPayments.py
r1373 r1378 29 29 for brain in payments: 30 30 d = {} 31 d['resp_code'] = "SC"32 d['resp_desc'] = "SC Payment Successful"31 # d['resp_code'] = "SC" 32 # d['resp_desc'] = "SC Payment Successful" 33 33 payment = brain.getObject() 34 34 pay_doc = payment.getContent() 35 if pay_doc.type_description.startswith('School Fee SC'): 36 d['type_description'] = 'School Fee for Session 2006/2007' 35 # if pay_doc.type_description.startswith('School Fee'): 36 # d['type_description'] = 'School Fee for Session 2006/2007' 37 # pay_doc.edit(mapping=d) 38 # list.append('%s changed' % pay_doc.type_description) 39 if pay_doc.type_code.startswith('transfer'): 40 # d['type_description'] = 'Transfer Form for Session 2006/2007' 41 old = pay_doc.type_code 42 d['type_code'] = old.replace('transfer_','') 37 43 pay_doc.edit(mapping=d) 38 list.append('%s changed' % pay_doc.type_description) 39 elif pay_doc.type_description.startswith('Transfer Form SC'): 40 d['type_description'] = 'Transfer Form for Session 2006/2007' 41 d['type_code'] = pay_doc.type_code.replace('transfer_','') 42 pay_doc.edit(mapping=d) 43 list.append('%s changed' % pay_doc.type_description) 44 list.append('%s changed to %s' % (old,d['type_code'])) 44 45 return '\n'.join(list)
Note: See TracChangeset for help on using the changeset viewer.