Changeset 3275


Ignore:
Timestamp:
7 Mar 2008, 07:28:11 (17 years ago)
Author:
Henrik Bettermann
Message:

implement invalid payment status

Location:
WAeUP_SRP/fceokene
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml

    r2930 r3275  
    207207     <property name="hidden_readonly_layout_modes"/>
    208208    </widget>
    209  
    210  
     209
     210
    211211  <table>
    212212  <row>
    213    <cell name="type_description"/>
    214   </row>
    215   <row>
    216213   <cell name="status"/>
    217   </row> 
     214  </row>
    218215  <row>
    219216   <cell name="order_id"/>
  • WAeUP_SRP/fceokene/profiles/default/vocabularies/payment_status.xml

    r2877 r3275  
    1010    <item key="paid" msgid="">Paid</item>
    1111    <item key="started" msgid="">Started</item>
    12     <item key="due" msgid="">Due</item>
    1312    <item key="failed" msgid="">Unsuccessfull</item>
     13    <item key="invalid" msgid="">Invalid</item>
    1414</object>
  • WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py

    r3270 r3275  
    8888    row = {}
    8989    row['id'] = payment.key
    90     row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category),
    91                                                         vocabularies.sessions.get(payment.session_id),
    92                                                         payment.amount,
    93                                                         payment.date.strftime("%d/%m/%y %H:%M:%S"))
     90    if payment.status == 'invalid':
     91        row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount,
     92                                                          payment.date.strftime("%d/%m/%y %H:%M:%S"))   
     93    else:                                                         
     94        row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category),
     95                                                            vocabularies.sessions.get(payment.session_id),
     96                                                            payment.amount,
     97                                                            payment.date.strftime("%d/%m/%y %H:%M:%S"))
    9498    url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:])
    9599    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
Note: See TracChangeset for help on using the changeset viewer.