Ignore:
Timestamp:
21 Mar 2007, 07:18:53 (18 years ago)
Author:
joachim
Message:

implementation of the requery module, will now test it on the uniben-demo

M profiles/default/schemas/payment.xml
AM skins/waeup_epayment/requery_payment.py
AM skins/waeup_epayment/requery_payment_form.pt
M skins/waeup_epayment/getPaymentsFolderInfo.py
M skins/waeup_epayment/payments_view.pt

catch unauthorized delets, must be testet.
M skins/waeup_student/delete_course_result.py

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 added
2 edited

Legend:

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

    r1568 r1613  
    5353    else:
    5454        row['is_approvable'] = is_so and (review_state == "opened")
     55    if so_object.type_description.startswith('School Fee'):
     56        row['is_requeryable'] = (review_state == "opened") and info['review_state'] == 'cleared_and_validated'
     57    else:
     58        row['is_requeryable'] = is_so and (review_state == "opened")
    5559    if (review_state == "closed") and so_object.resp_code in ('SC','00','AP',):
    5660        row['confirmed'] = 'active'
  • WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt

    r1431 r1613  
    3434            </td>
    3535            <td>
    36             <a tal:condition="python:row['is_approvable']"
     36            <a tal:condition="row/is_approvable"
    3737               tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
    3838                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
    3939                               ">
    4040                [approve payment]
     41            </a>             
     42            </td>
     43            <td>
     44            <a tal:condition="row/is_requeryable"
     45               tal:attributes="href string:${context/absolute_url}/${row/id}/requery_payment;
     46                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
     47                               ">
     48                [requery payment]
    4149            </a>             
    4250            </td>
Note: See TracChangeset for help on using the changeset viewer.