Ignore:
Timestamp:
14 Jun 2010, 11:38:15 (15 years ago)
Author:
Henrik Bettermann
Message:

sort payments on date (in custom)

File:
1 edited

Legend:

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

    r5044 r5222  
    113113    else:
    114114        start_pos = 6
     115    row['sort_param'] = payment.date
    115116    url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:])
    116117    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
     
    137138    payments.append(row)
    138139
    139 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref']))
     140payments.sort(cmp=lambda x,y: cmp(x['sort_param'],y['sort_param']))
    140141info['payments'] = payments
    141142return info
Note: See TracChangeset for help on using the changeset viewer.