Changeset 4818


Ignore:
Timestamp:
15 Jan 2010, 17:56:09 (15 years ago)
Author:
Henrik Bettermann
Message:

enable online payment for returning students (the fee structure of returning full-time students is still missing)

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
3 edited

Legend:

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

    r4295 r4818  
    5656# begin customization
    5757
    58 if review_state == 'cleared_and_validated' and session not in ('07','08'):
     58# special handling of 06 payments for testing purposes
     59if review_state == 'cleared_and_validated' and session in ('06'):
     60    info['payment_method'] = "online_payment"
     61elif review_state == 'returning' and info['next_session'] == '06':
     62    info['payment_method'] = "both_payments"
     63elif review_state == 'cleared_and_validated' and session not in ('07','08'):
    5964    info['payment_method'] = "both_payments"
    6065elif review_state == 'cleared_and_validated' and session in ('07','08'):
  • WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py

    r4154 r4818  
    121121         }
    122122
    123 d = {}
     123
     124
     125next_info = context.getNextInfo(brain)
     126next_session_str = next_info['next_session_str']
     127description = "School Fee for Session %s" % next_session_str
     128
     129d = {}
     130
    124131if brain.mode.endswith('_ft'):
    125132    f = 1
     
    128135    d['new'] = session_fees[brain.session][f]
    129136    d['returning'] = 'not set'
    130     d['description'] = "School Fee for Session %s" % context.getSessionsVoc(key=brain.session)
     137    d['description'] =description
    131138if pt_fees.has_key(brain.course):
    132139    d = pt_fees[brain.course]
    133     d['description'] = "School Fee for Session %s, %s" % (context.getSessionsVoc(key=brain.session),
    134                                                          d['description'])
     140    d['description'] = "%s (%s)" % (description,d['description'])
     141   
     142d['next_session_id'] = next_info['next_session_id']
     143                                                   
    135144return d
    136145
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py

    r4799 r4818  
    7070info['student_name'] = student_record.name
    7171info['student_email'] = student_record.email
    72 info['session_id'] = student_record.session   # this holds only for new students und must be replaced when also previous session students will pay online !!!!!!
     72#info['session_id'] = student_record.session   # this holds only for new students und must be replaced when also previous session students will pay online !!!!!!
     73info['session_id'] = fee_dict['next_session_id']
    7374info['type'] = 'online'
    7475info['status'] = 'started'
Note: See TracChangeset for help on using the changeset viewer.