Changeset 2967 for WAeUP_SRP


Ignore:
Timestamp:
28 Dec 2007, 16:38:37 (17 years ago)
Author:
Henrik Bettermann
Message:

should only be used for hostel payments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/pay_interswitch_acco.py

    r2891 r2967  
    4343    info = context.getInterswitchParams(paytype,student,payment_id)
    4444    info['student'] = student_record
    45 else:
    46     info = {}
    47     info['student'] = student_record
    48     info['payment_possible'] = False
    49     info['amount'] = '0'
    50     info['bank'] = ''
    51     info['type_description'] = ''
    52     info['pay_bill_to'] = ''
    53     fee_dict = context.getSchoolFee(student_record)
    54     fulltime = student_record.mode.endswith('_ft')
    55     new = student_record.review_state == 'cleared_and_validated'
    56     returning = student_record.review_state == 'returning'
    57     if not fee_dict or (not new and fulltime) or not (new or returning):
    58         return context.interswitch_form(info=info)
    59     if new:
    60         amount = info['amount'] = fee_dict['new']
    61     elif returning:
    62         amount = info['amount'] = fee_dict['returning']
    63     if fulltime:
    64         pay_item_id = "6100"
    65         #info['type_code'] = student_record.faculty   #type_code is redundant and will be removed soon
    66         info['bank'] = ''
    67     else:
    68         pay_item_id = "6101"
    69         #info['type_code'] = student_record.course  #type_code is redundant and will be removed soon
    70         info['bank'] = ''
    71     info['payment_possible'] = True
    72     info['type_description'] = fee_dict['description']
    73     info['pay_ship_to'] = "University of Benin"
     45
     46#else:
     47#    info = {}
     48#    info['student'] = student_record
     49#    info['payment_possible'] = False
     50#    info['amount'] = '0'
     51#    info['bank'] = ''
     52#    info['type_description'] = ''
     53#    info['pay_bill_to'] = ''
     54#    fee_dict = context.getSchoolFee(student_record)
     55#    fulltime = student_record.mode.endswith('_ft')
     56#    new = student_record.review_state == 'cleared_and_validated'
     57#    returning = student_record.review_state == 'returning'
     58#    if not fee_dict or (not new and fulltime) or not (new or returning):
     59#        return context.interswitch_form(info=info)
     60#    if new:
     61#        amount = info['amount'] = fee_dict['new']
     62#    elif returning:
     63#        amount = info['amount'] = fee_dict['returning']
     64#    if fulltime:
     65#        pay_item_id = "6100"
     66#        #info['type_code'] = student_record.faculty   #type_code is redundant and will be removed soon
     67#        info['bank'] = ''
     68#    else:
     69#        pay_item_id = "6101"
     70#        #info['type_code'] = student_record.course  #type_code is redundant and will be removed soon
     71#        info['bank'] = ''
     72#    info['payment_possible'] = True
     73#    info['type_description'] = fee_dict['description']
     74#    info['pay_ship_to'] = "University of Benin"
     75
    7476info['pay_bill_to'] = student_record.name
    7577info['student_id'] = student_id
Note: See TracChangeset for help on using the changeset viewer.