Changeset 3312


Ignore:
Timestamp:
10 Mar 2008, 14:50:20 (17 years ago)
Author:
Henrik Bettermann
Message:

updated

File:
1 edited

Legend:

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

    r3275 r3312  
    9090    if payment.status == 'invalid':
    9191        row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount,
    92                                                           payment.date.strftime("%d/%m/%y %H:%M:%S"))   
    93     else:                                                         
     92                                                          payment.date.strftime("%d/%m/%y %H:%M:%S"))
     93    else:
    9494        row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category),
    9595                                                            vocabularies.sessions.get(payment.session_id),
    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.