Changeset 3311


Ignore:
Timestamp:
10 Mar 2008, 14:31:26 (17 years ago)
Author:
joachim
Message:

fix for #501 part 2, already in custom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py

    r3276 r3311  
    9696                                                            payment.amount,
    9797                                                            payment.date.strftime("%d/%m/%y %H:%M:%S"))
    98     url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:])
     98    oid = payment.order_id
     99    onr = oid.rfind('-')+1
     100    if onr > 0:
     101        start_pos = onr
     102    else:
     103        start_pos = 6
     104    url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:])
    99105    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
    100106    row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
Note: See TracChangeset for help on using the changeset viewer.