Changeset 1378 for WAeUP_SRP/trunk/skins
- Timestamp:
- 30 Jan 2007, 18:55:59 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py
r1371 r1378 98 98 info['amount'] = "n/a" 99 99 pin = info['order_id'] = ds.get('pin') 100 info['type_code'] = " transfer_%s" % pin100 info['type_code'] = "%s" % pin 101 101 info['type_description'] = 'Transfer Form for Session 2006/2007' 102 102 info['resp_code'] = "SC" -
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.