Ignore:
Timestamp:
23 Aug 2007, 10:31:35 (17 years ago)
Author:
joachim
Message:

online payment for parttime, please test.

File:
1 edited

Legend:

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

    r1994 r2151  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=faculty=None, session=None
     7##parameters=brain=None
    88##title=
    99##
     
    2727                '06': ('22200','23700'),
    2828                }
     29pt_fees = {
     30           "DIF": {'new': "32200",
     31                   'returning': "17700",
     32                   'description': 'Diploma in French'},
     33           "DTA": {'new':"34200",
     34                   'returning':"19700",
     35                  'description': 'Diploma in Theatre Arts'},
     36           "DISD": {'new':"42200",
     37                    'returning':"27700",
     38                   'description': 'Diploma in International Studies'},
     39           "DFA": {'new':"34200",
     40                   'returning':"19700",
     41                  'description': 'Diploma in Fine & Applied Arts'},
     42           "DAE": {'new':"41700",
     43                   'returning':"25700",
     44                  'description': 'Diploma in Agric Economics'},
     45           "DFS": {'new':"38700",
     46                   'returning':"22700",
     47                  'description': 'Diploma in Fishery, Forestry & Wild Life'},
     48           "DFBS": {'new':"38700",
     49                    'returning':"22700",
     50                   'description': 'Diploma in Food & Breweries'},
     51           "DIA": {'new':"42200",
     52                   'returning':"27700",
     53                  'description': 'Diploma in Accounting'},
     54           "DBF": {'new':"42200",
     55                   'returning':"27700",
     56                  'description': 'Diploma in Banking & Finance'},
     57           "DAIC": {'new':"38700",
     58                    'returning':"22700",
     59                   'description': 'Diploma in Applied Industrial Chemistry'},
     60           "DAM": {'new':"38700",
     61                   'returning':"22700",
     62                  'description': 'Diploma in Applied Microbiology'},
     63           "DIG": {'new':"41700",
     64                   'returning':"25700",
     65                  'description': 'Diploma in Geology'},
     66           "DSLT": {'new':"41700",
     67                    'returning':"25700",
     68                   'description': 'Diploma in Science Laboratory Technology'},
     69           "DICE": {'new':"43700",
     70                    'returning':"27700",
     71                   'description': 'Diploma in Computer Engineering'},
     72           "DICHE": {'new':"43700",
     73                     'returning':"27700",
     74                    'description': 'Diploma in Chemical Engineering'},
     75           "DDP": {'new':"43700",
     76                   'returning':"27700",
     77                  'description': 'Diploma in Data Processing'},
     78           "DCG": {'new':"34200",
     79                   'returning':"19700",
     80                  'description': 'Diploma in Cartography'},
     81           "DSW": {'new':"40200",
     82                   'returning':"25700",
     83                  'description': 'Diploma in Social Works'},
     84           "DIL": {'new':"42200",
     85                   'returning':"27700",
     86                  'description': 'Diploma in Law'},
     87           "DHT": {'new':"42200",
     88                   'returning':"27700",
     89                  'description': 'Diploma in Recreation, Hotel & Tourism Mgt.'},
     90           "DEC": {'new':"36200",
     91                   'returning':"21200",
     92                  'description': 'Certificate in Early Child Health & Dev.'},
     93           "DLS": {'new':"37200",
     94                   'returning':"24200",
     95                  'description': 'Diploma in Library & Information Science'},
     96           "BFA": {'new':"42200",
     97                   'returning':"27700",
     98                  'description': 'Bachelor in Fine & Applied Arts'},
     99           "BTA": {'new':"42200",
     100                   'returning':"27700",
     101                  'description': 'Bachelor in Theatre Arts'},
     102           "BEL": {'new':"42200",
     103                   'returning':"27700",
     104                  'description': 'Bachelor in English'},
     105           "BFR": {'new':"42200",
     106                   'returning':"27700",
     107                  'description': 'Bachelor in French'},
     108           "BISD": {'new':"42200",
     109                    'returning':"27700",
     110                   'description': 'Bachelor in International Std. & Diplomacy'},
     111           "BAE": {'new':"48700",
     112                   'returning':"32700",
     113                  'description': 'Bachelor in Agric Econs'},
     114           "BAN": {'new':"43700",
     115                   'returning':"27700",
     116                  'description': 'Bachelor in Animal Science'},
     117           "BAC": {'new':"43700",
     118                   'returning':"27700",
     119                  'description': 'Bachelor in Crop Science'},
     120           "BAS": {'new':"43700",
     121                   'returning':"27700",
     122                  'description': 'Bachelor in Soil Science'},
     123           "BIA": {'new':"47200",
     124                   'returning':"32700",
     125                  'description': 'Bachelor in Accounting'},
     126           "BBF": {'new':"47200",
     127                   'returning':"32700",
     128                  'description': 'Bachelor in Banking & Finance'},
     129           "BLG": {'new':"37200",
     130                   'returning':"22700",
     131                  'description': 'Bachelor in Local Goverment'},
     132           "BPA": {'new':"47200",
     133                   'returning':"32700",
     134                  'description': 'Bachelor in Public Admin'},
     135           "BSW": {'new':"42200",
     136                   'returning':"27700",
     137                  'description': 'Bachelor in  Social Works'},
     138           "BES": {'new':"43700",
     139                   'returning':"27700",
     140                  'description': 'Bachelor in Environmental Science'},
     141           "BSLT": {'new':"43700",
     142                    'returning':"27700",
     143                   'description': 'Bachelor in Science Lab Technology'},
     144           "BIP": {'new':"43700",
     145                   'returning':"27700",
     146                  'description': 'Bachelor in Industrial Physics'},
     147           "BSCS": {'new':"45700",
     148                    'returning':"29700",
     149                   'description': 'Bachelor in Statistics with Computer'},
     150           "LLBPT": {'new':"47200",
     151                     'returning':"32700",
     152                    'description': 'Bachelor in Law'},
     153           "ODPT": {'new':"58700",
     154                    'returning':"42700",
     155                   'description': 'Doctor of Optometry'},
     156           "PHARMD": {'new':"58700",
     157                      'returning':"44700",
     158                     'description': 'Doctor of Pharmacy'},
     159           "BEEL": {'new':"38700",
     160                    'returning':"32700",
     161                   'description': 'Bachelor in Electrical/Electronics'},
     162           "BECE": {'new':"38700",
     163                    'returning':"32700",
     164                   'description': 'Bachelor in Chemical Engineering'},
     165           "BECO": {'new':"38700",
     166                    'returning':"32700",
     167                   'description': 'Bachelor in Computer Engineering'},
     168           "BPRE": {'new':"38700",
     169                    'returning':"32700",
     170                   'description': 'Bachelor in Production Engineering'},
     171           "BEPE": {'new':"38700",
     172                    'returning':"32700",
     173                   'description': 'Bachelor in Petroleum Engineering'},
     174           "BECV": {'new':"38700",
     175                    'returning':"32700",
     176                   'description': 'Bachelor in Civil Engineering'},
     177          }
    29178#sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session)
    30179# sessionstring = "School Fee for Session %s" % context.sessions_voc(key=session)
     
    35184#     return fee_1_data
    36185# return fee_2_data
    37 f = 1
    38 if faculty in fee1:
    39     f = 0
    40 return (session_fees[session][f],
    41         "School Fee for Session %s" % context.sessions_voc(key=session))
     186d = {}
     187if brain.mode.endswith('_ft'):
     188    f = 1
     189    if brain.faculty in fee1:
     190        f = 0
     191    d['new'] = session_fees[brain.session][f]
     192    d['returning'] = session_fees[brain.session][f]
     193    d['description'] = "School Fee for Session %s" % context.sessions_voc(key=brain.session)
     194if pt_fees.has_key(brain.course):
     195    d = pt_fees[brain.course]
     196    d['description'] = "School Fee for Session %s %s" % (context.sessions_voc(key=brain.session),
     197                                                         d['description'])
     198return d
    42199
Note: See TracChangeset for help on using the changeset viewer.