Changeset 8205 for WAeUP_SRP


Ignore:
Timestamp:
18 Apr 2012, 09:09:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Add payment receipt for imported payments.

Location:
WAeUP_SRP/trunk/skins/waeup_uniben
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentInfo.py

    r7901 r8205  
    3636payment = context.getContent()
    3737info['payment_doc'] = payment
     38info['is_im_pmt'] = im = payment.resp_code in ('IM',)
    3839info['is_etranzact_pmt'] = ie = payment.type == 'etranzact'
    3940info['is_online_pmt'] = io = payment.resp_code in ('0','00','AP','IP',)
     
    4142info['is_scratchcard_pmt'] = isc =  payment.resp_code == 'SC'
    4243info['is_interrupted'] = ii = payment.resp_code == '' and not ie
    43 info['unknown_code'] = not (io or isc or ii or ir or ie)
     44info['unknown_code'] = not (io or isc or ii or ir or ie or im)
    4445info['resp_code'] = payment.resp_code
    4546info['resp_desc'] = payment.resp_desc
  • WAeUP_SRP/trunk/skins/waeup_uniben/payment_receipt.pt

    r8138 r8205  
    77     
    88      <span tal:condition="python: info">
     9
     10        <metal:block tal:condition="info/is_im_pmt">
     11        <h3>Imported Payment Receipt</h3>
     12        <br />
     13        <table tal:define="student info/student;
     14                           pm nocall: info/payment_doc">
     15        <tr>
     16          <td width="220px">Name:</td>
     17          <td><span tal:content="student/name" /></td>
     18        </tr>
     19        <tr>
     20          <td>Student Id:</td>
     21          <td tal:content="student/id" />
     22        </tr>
     23        <tr>
     24          <td>Registration Number:</td>
     25          <td tal:content="student/jamb_reg_no" />
     26        </tr>
     27        <tr>
     28          <td>Matriculation Number:</td>
     29          <td tal:content="student/matric_no" />
     30        </tr>
     31        <tr>
     32          <td>Current Study Level:</td>
     33          <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" />
     34        </tr>
     35        <tr>
     36          <td>Certificate Id:</td>
     37          <td tal:content="student/course" />
     38        </tr>
     39        <tr>
     40          <td>Faculty:</td>
     41          <td tal:content="student/faculty" />
     42        </tr>
     43        <tr>
     44          <td>Department:</td>
     45          <td tal:content="student/department" />
     46        </tr>
     47        <tr>
     48          <td width="220px">Payment Status:</td>
     49          <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td>
     50        </tr>
     51        <tr>
     52          <td width="220px">Payment Type:</td>
     53
     54          <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td>
     55        </tr>
     56        <tr>
     57          <td width="220px">Payment Category:</td>
     58          <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td>
     59        </tr>
     60        <tr>
     61          <td width="220px">Payment Item:</td>
     62          <td><span tal:content="pm/item" /></td>
     63        </tr>
     64        <tr>
     65          <td width="220px">Session:</td>
     66          <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td>
     67        </tr>
     68
     69        <tr>
     70          <td width="220px">Transaction Date:</td>
     71          <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td>
     72        </tr>
     73        <tr>
     74          <td width="220px">Amount (Naira):</td>
     75          <td><span tal:content="pm/amount" /></td>
     76        </tr>
     77        <tr>
     78          <td width="220px">Response Code:</td>
     79          <td><span tal:content="pm/resp_code" /></td>
     80        </tr>
     81        <tr>
     82          <td width="220px">Response Description:</td>
     83          <td><span tal:content="pm/resp_desc" /></td>
     84        </tr>
     85        </table>
     86        </metal:block>
     87
    988        <metal:block tal:condition="info/is_online_pmt">
    1089        <h3>Interswitch Payment Receipt</h3>
Note: See TracChangeset for help on using the changeset viewer.