Ignore:
Timestamp:
26 Jul 2007, 18:09:47 (18 years ago)
Author:
joachim
Message:

fix for #167 see there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r2005 r2059  
    7878order_id = ds.get('pin_n')
    7979p_id = "p%s" % order_id
     80pin = str(ds.get('pin'))
     81try:
     82    cost = context.portal_pins(pin="".join(pin.split('-')))[0].cost
     83except:
     84    cost = "n/a"
     85try:
     86    x = float(cost)
     87except:
     88    cost = "n/a"
     89   
    8090if not hasattr(payments,p_id):
    8191    now = DateTime.DateTime()
    8292    info['date'] = now
    83     info['amount'] = "n/a"
    84     pin = info['order_id'] = "%s" % (ds.get('pin'))
     93    info['amount'] = cost
     94    pin = info['order_id'] = "%s" % (pin)
    8595    info['type_code'] = "%s" % pin
    8696    info['type_description'] = 'School Fee for Session %s' % next_session_str
Note: See TracChangeset for help on using the changeset viewer.