Changeset 3759 for WAeUP_SRP/trunk/skins
- Timestamp:
- 12 Nov 2008, 13:19:51 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_fceokene/pay_interswitch.py
r3690 r3759 50 50 info['site_id'] = '83' 51 51 info['currency_id'] = '566' 52 pay_item_id = "8302" 52 53 53 pay_item_id = "8302"54 54 #info['type_code'] = sbrain.course #type_code is redundant and will be removed soon 55 55 info['bank'] = '' … … 128 128 args[arg] = info[field] 129 129 130 bt_amount = 1600 131 fceokene_split = 1400 132 fceokene_amount = amount - bt_amount - fceokene_split 133 134 xmldict = {} 135 xmldict['detail_ref'] = args['txn_ref'] 136 xmldict['department'] = student_record.department 137 xmldict['faculty'] = student_record.faculty 138 xmldict['fceokene_amount'] = "%d" % int(100*fceokene_amount) 139 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 140 xmldict['fceokene_split'] = "%d" % int(100*fceokene_split) 141 142 if student_record.mode in ('ug_sw','prence',): 143 xmldict['fceokene_acct'] = "04470040000032" 144 xmldict['bank_id'] = '7' 145 elif student_record.mode in ('ug_ft',): 146 xmldict['fceokene_acct'] = "2822010008611" 147 xmldict['bank_id'] = '8' 148 else: 149 xmldict['fceokene_acct'] = "0000000000000" 150 xmldict['bank_id'] = '0' 151 152 153 xmltext = """<payment_item_detail> 154 <item_details detail_ref="%(detail_ref)s" college="FCE Okene" department="%(department)s" faculty="%(faculty)s"> 155 <item_detail item_id="1" item_name="FCEOkene School Fee" item_amt="%(fceokene_amount)s" bank_id="%(bank_id)s" acct_num="%(fceokene_acct)s" /> 156 <item_detail item_id="2" item_name="FCEOkene Split" item_amt="%(fceokene_split)s" bank_id="8" acct_num="2822040000037" /> 157 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" /> 158 </item_details> 159 </payment_item_detail>""" % xmldict 160 161 info['xml_data'] = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 162 130 163 args['Amount'] = "%d" % (total_amount) 131 164 args['site_name'] = "fceokene.waeup.org" … … 133 166 args['pay_item_id'] = pay_item_id 134 167 args['pay_item_name'] = "FCEOKENE Tuition Payments" 135 args['payment_params'] = 'switch_college_split' 136 args['xml_data'] = '' 168 args['payment_params'] = 'college_split' 169 #args['xml_data'] = '' 170 #args['xml_data'] = xmltext # info['xml_data']can be used instead 137 171 info['args'] = args 172 138 173 return context.goto_interswitch_form(info=info) 174 -
WAeUP_SRP/trunk/skins/waeup_fceoyo/getSchoolFee.py
r3739 r3759 23 23 if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': 24 24 if brain.department in ARTS: 25 d['all'] = 1 695025 d['all'] = 14770 26 26 else: 27 d['all'] = 1 755027 d['all'] = 15370 28 28 elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': 29 29 if brain.department in ARTS: … … 31 31 else: 32 32 d['all'] = 10420 33 # new addition for prence to nce-i students whose fees are different from other nce-i students 34 elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.entry_mode == 'prence': 35 if brain.department in ARTS: 36 d['all'] = 13320 37 else: 38 d['all'] = 14420 33 39 elif str(brain.level) == '100' and brain.review_state == 'returning': 34 40 if brain.department in ARTS: 35 d['all'] = 782041 d['all'] = 8320 36 42 else: 37 d['all'] = 8 42043 d['all'] = 8920 38 44 elif str(brain.level) in ('200','210','220'): 39 45 if brain.department in ARTS: … … 51 57 d['all'] = 4950 52 58 else: 53 d['all'] = 680059 d['all'] = 5550 54 60 else: 55 61 d['all'] = 0 -
WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py
r3752 r3759 127 127 args[arg] = info[field] 128 128 129 bt_amount = 1750130 fceoyo_split = 750129 bt_amount = 2000 130 fceoyo_split = 500 131 131 132 #getSchoolFee provides pure school fee, the fees have to be added132 #getSchoolFee provides pure school fee, the other fees have to be added 133 133 total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split) 134 134 … … 142 142 143 143 if student_record.mode in ('ug_sw','prence',): 144 xmldict['fceoyo_acct'] = "0 285001000000899"144 xmldict['fceoyo_acct'] = "0061001000021076" 145 145 xmldict['bank_id'] = '89' 146 146 elif student_record.mode in ('ug_ft',): 147 xmldict['fceoyo_acct'] = " 1681001000137"147 xmldict['fceoyo_acct'] = "3030010073" 148 148 xmldict['bank_id'] = '125' 149 149 else: … … 157 157 <item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s" > 158 158 <item_detail item_id="1" item_name="FCEOyo School Fee" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" /> 159 <item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num=" 1681001000119" />160 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="006100100002109 5" />159 <item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="3030010076" /> 160 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021096" /> 161 161 </item_details> 162 162 </payment_item_detail>""" % xmldict -
WAeUP_SRP/trunk/skins/waeup_upload/uploads_form.pt
r3733 r3759 200 200 <tr tal:repeat="row python:info['imported'][:10]" 201 201 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 202 <td nowrap tal:condition="python:len(row['id']) > 30" tal:content="python:row['id'][:15] + '[...].done'" ></td>203 <td tal:condition="python:len(row['id']) <= 30" tal:content="python:row['id'] + '.done'" ></td>202 <td nowrap tal:condition="python:len(row['id']) > 8" tal:content="python:row['id'][:8] + '[...].done'" ></td> 203 <td tal:condition="python:len(row['id']) <= 8" tal:content="python:row['id'] + '.done'" ></td> 204 204 <td tal:content="row/import_layout"></td> 205 205 <td tal:content="row/uploaded_by" ></td>
Note: See TracChangeset for help on using the changeset viewer.