Ignore:
Timestamp:
6 Jul 2007, 07:54:34 (17 years ago)
Author:
joachim
Message:

make getSchoolFee more flexible

File:
1 edited

Legend:

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

    r1992 r1994  
    1818        "EDU",
    1919        )
    20        
    21 sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session)
    22 fee_1_data = ("22200",sessionstring)
    23 fee_2_data = ("23700",sessionstring)
     20session_fees = {'99': ('22200','23700'),
     21                '00': ('22200','23700'),
     22                '01': ('22200','23700'),
     23                '02': ('22200','23700'),
     24                '03': ('22200','23700'),
     25                '04': ('22200','23700'),
     26                '05': ('22200','23700'),
     27                '06': ('22200','23700'),
     28                }
     29#sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session)
     30# sessionstring = "School Fee for Session %s" % context.sessions_voc(key=session)
     31# fee_1_data = ("22200",sessionstring)
     32# fee_2_data = ("23700",sessionstring)
    2433
     34# if faculty in fee1:
     35#     return fee_1_data
     36# return fee_2_data
     37f = 1
    2538if faculty in fee1:
    26     return fee_1_data
    27 return fee_2_data
     39    f = 0
     40return (session_fees[session][f],
     41        "School Fee for Session %s" % context.sessions_voc(key=session))
    2842
Note: See TracChangeset for help on using the changeset viewer.