Changeset 8060 for WAeUP_SRP/trunk
- Timestamp:
- 7 Apr 2012, 14:54:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/pay_interswitch.py
r8005 r8060 128 128 args[arg] = info[field] 129 129 itotal = int(amount)*100 130 fbn_amount = 10000 131 bt_amount = 75000 130 bt_amount = 190000 132 131 interswitch_amount = 15000 133 uniben_amount = itotal - fbn_amount -bt_amount - interswitch_amount132 uniben_amount = itotal - bt_amount - interswitch_amount 134 133 xmldict = {} 135 134 xmldict['detail_ref'] = args['txn_ref'] 136 135 xmldict['department'] = student_record.department 137 136 xmldict['faculty'] = student_record.faculty 138 xmldict['fbn_amt'] = "%d" % fbn_amount139 137 xmldict['bt_amt'] = "%d" % bt_amount 140 138 xmldict['uniben_amt'] = "%d" % uniben_amount 139 141 140 #Full and Part-time students School Fees go into different Accounts 141 142 142 if 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' 160 elif 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 148 173 149 174 xmltext = """<payment_item_detail> … … 151 176 <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" /> 152 177 <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" />154 178 </item_details> 155 179 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.