Changeset 3625 for WAeUP_SRP


Ignore:
Timestamp:
17 Aug 2008, 07:47:00 (16 years ago)
Author:
Henrik Bettermann
Message:

sw students pay less maint. fee

Location:
WAeUP_SRP
Files:
3 edited

Legend:

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

    r2967 r3625  
    4141hostel = paytype == "HOM"
    4242if hostel:
    43     info = context.getInterswitchParams(paytype,student,payment_id)
     43    info = context.getInterswitchParams(paytype,student,payment_id,student_record)
    4444    info['student'] = student_record
    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"
    7545
    7646info['pay_bill_to'] = student_record.name
  • WAeUP_SRP/fceokene/profiles/default/actionicons.xml

    r3290 r3625  
    131131              title="Import Data" priority="7"
    132132              icon_expr="actionicon_submit.png"/>
     133 <action-icon category="global" action_id="send_email_form"
     134              title="Send Email" priority="8"
     135              icon_expr="actionicon_email.png"/>             
    133136
    134137 <action-icon category="global_header" action_id="print"
     
    194197 <action-icon category="navigation"
    195198              action_id="view_uploads" title="Uploads"
    196               priority="6" icon_expr="blank.gif"/>             
     199              priority="6" icon_expr="blank.gif"/>
    197200 <action-icon category="navigation" action_id="contact_admin"
    198201              title="Contact" priority="7"
  • WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py

    r3622 r3625  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=paytype,student,payment_id
     7##parameters=paytype,student,payment_id,student_record
    88##title=
    99##
    1010# $Id$
     11
    1112
    1213test = ""
     
    3233    d['type_description'] = 'Hostel Maintenance Fee'
    3334    d['pay_item_name'] = "FCE Okene %(type_description)s" % d
    34     d['amount'] = '2500'
     35    if student_record.mode.endswith('_sw'):
     36        d['amount'] = '2500'
     37    else:
     38        d['amount'] = '4000'
    3539    d['category'] = 'hostel_maintenance'
    3640    d['item'] = paytype
Note: See TracChangeset for help on using the changeset viewer.