Ignore:
Timestamp:
23 Aug 2007, 12:57:22 (17 years ago)
Author:
Henrik Bettermann
Message:

payment conditions fixed

File:
1 edited

Legend:

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

    r2151 r2153  
    3939info['payment_possible'] = False
    4040fee_dict = context.getSchoolFee(sbrain)
    41 if not fee_dict:
     41fulltime = sbrain.mode.endswith('_ft')
     42#new =  sbrain.entry_session == context.getSessionId()[-2:]
     43new = sbrain.review_state == 'cleared_and_validated'
     44returning = sbrain.review_state == 'returning'
     45if not fee_dict or (not new and fulltime) or not (new or returning):
    4246    return context.interswitch_form(info=info)
    43 info['payment_possible'] = True
    4447info['site_id'] = '61'
    4548info['currency_id'] = '566'
    46 if sbrain.entry_session == context.getSessionId()[-2:]:
     49if new:
    4750    amount = info['amount'] = fee_dict['new']
     51elif returning:
     52    amount = info['amount'] = fee_dict['returning']
    4853else:
    49     amount = info['amount'] = fee_dict['returning']
    50 if sbrain.mode.endswith('_ft'):
     54    amount = info['amount'] = '0'
     55if fulltime:
    5156    pay_item_id = "6100"
    5257    info['type_code'] = sbrain.faculty
     
    5459    pay_item_id = "6101"
    5560    info['type_code'] = sbrain.course
     61info['payment_possible'] = True
    5662info['type_description'] = fee_dict['description']
    5763info['pay_bill_to'] = sbrain.name
Note: See TracChangeset for help on using the changeset viewer.