Changeset 8060 for WAeUP_SRP/trunk


Ignore:
Timestamp:
7 Apr 2012, 14:54:40 (13 years ago)
Author:
Henrik Bettermann
Message:

Change account numbers and bank ids.

File:
1 edited

Legend:

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

    r8005 r8060  
    128128    args[arg] = info[field]
    129129itotal = int(amount)*100
    130 fbn_amount = 10000
    131 bt_amount = 75000
     130bt_amount = 190000
    132131interswitch_amount = 15000
    133 uniben_amount = itotal - fbn_amount - bt_amount - interswitch_amount
     132uniben_amount = itotal - bt_amount - interswitch_amount
    134133xmldict = {}
    135134xmldict['detail_ref'] = args['txn_ref']
    136135xmldict['department'] = student_record.department
    137136xmldict['faculty'] = student_record.faculty
    138 xmldict['fbn_amt'] = "%d" % fbn_amount
    139137xmldict['bt_amt'] = "%d" % bt_amount
    140138xmldict['uniben_amt'] = "%d" % uniben_amount
     139
    141140#Full and Part-time students School Fees go into different Accounts
     141
    142142if student_record.mode.endswith('_ft'):
    143   xmldict['uniben_acct'] = "6162030000198"
    144   xmldict['bank_id'] = '8'
    145 else:
    146     xmldict['uniben_acct'] = "6162030000277"
    147     xmldict['bank_id'] = '8'
     143        #post-grad full-time students of all faculties
     144        if student_record.level in ('700','710','800','810','900','910'):
     145            xmldict['uniben_acct'] = "1012842833"
     146            xmldict['bank_id'] = '117'
     147        #all other part-time students depending on faculty     
     148        elif student_record.faculty in ('SSC','LAW','MED'):
     149            xmldict['uniben_acct'] = "0005986938"
     150            xmldict['bank_id'] = '31'
     151        elif student_record.faculty in ('ENG','PSC','PHA'):
     152            xmldict['uniben_acct'] = "0014413973"
     153            xmldict['bank_id'] = '129'
     154        elif student_record.faculty in ('LSC','DEN','AGR'):
     155            xmldict['uniben_acct'] = "1012801319"
     156            xmldict['bank_id'] = '117'
     157        elif student_record.faculty in ('ART','EDU','MGS','BMS'):
     158            xmldict['uniben_acct'] = "6220027556"
     159            xmldict['bank_id'] = '51'
     160elif student_record.mode.endswith('_pt'):
     161        #post-grad part-time students of all faculties
     162        if student_record.level in ('700','710','800','810','900','910'):
     163            xmldict['uniben_acct'] = "0023708207"
     164            xmldict['bank_id'] = '72'
     165        #all other part-time students depending on faculty     
     166        elif student_record.faculty in ('ENG','LAW','MGS'):
     167            xmldict['uniben_acct'] = "2019006824"
     168            xmldict['bank_id'] = '8'
     169        elif student_record.faculty in ('IPA','PHA','SSC','AGR','EDU'):
     170            xmldict['uniben_acct'] = "0122012109"
     171            xmldict['bank_id'] = '16' 
     172
    148173
    149174xmltext = """<payment_item_detail>
     
    151176<item_detail item_id="1" item_name="UNIBEN School Fee" item_amt="%(uniben_amt)s" bank_id="%(bank_id)s" acct_num="%(uniben_acct)s" />
    152177<item_detail item_id="2" item_name="BT" item_amt="%(bt_amt)s" bank_id="89" acct_num="0061001000021095" />
    153 <item_detail item_id="3" item_name="FBN" item_amt="%(fbn_amt)s" bank_id="8" acct_num="6162030000286" />
    154178</item_details>
    155179</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.