Changeset 5594 for WAeUP_SRP


Ignore:
Timestamp:
24 Nov 2010, 10:57:04 (14 years ago)
Author:
Henrik Bettermann
Message:

Make hostel fee payments approvable.

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

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

    r5231 r5594  
    106106    url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:])
    107107    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and not payment.resp_desc and payment.type == 'online' or str(member) in ('admin',)  # customized too
    108     row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maintenance
     108    #row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maintenance
     109    row['is_approvable'] = is_so and row['is_requeryable']
    109110    row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    110111    row['trans_ref'] = payment.order_id
  • WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py

    r3467 r5594  
    3333session = s_brain.session
    3434
    35 next_info = context.getNextInfo(s_brain)
    36 next_session_id = next_info['next_session_id']
    37 next_session_str = next_info['next_session_str']
    38 next_level_id = next_info['next_level_id']
    39 next_transition = next_info['next_transition']
    40 next_verdict = next_info['next_verdict']
    41 
    4235pd = {}
    4336doc = context.getContent()
     
    4841
    4942if doc.category == 'schoolfee':
     43    next_info = context.getNextInfo(s_brain)
     44    next_session_id = next_info['next_session_id']
     45    next_session_str = next_info['next_session_str']
     46    next_level_id = next_info['next_level_id']
     47    next_transition = next_info['next_transition']
     48    next_verdict = next_info['next_verdict']   
    5049    study_course = getattr(student,'study_course')
    5150    try:
Note: See TracChangeset for help on using the changeset viewer.