Changeset 3743
- Timestamp:
- 30 Oct 2008, 07:16:07 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r3742 r3743 977 977 return None 978 978 es = getattr(doc,'entry_session',None) 979 if es is not None and len(es) == 2 or len(es) == 1:979 if es is not None and len(es) == 2: 980 980 return es 981 elif len(es) == 9: 982 return es[2:4] 981 983 try: 982 984 digit = int(doc.jamb_reg_no[0]) -
WAeUP_SRP/trunk/Widgets.py
r3710 r3743 360 360 widget_id = self.getWidgetId() 361 361 value = datastructure[widget_id] 362 #import pdb;pdb.set_trace() 362 363 try: 363 364 v = str(value) … … 372 373 v = '' 373 374 sessions = self._getSessions() 374 #import pdb;pdb.set_trace() 375 375 376 if not sessions.has_key(v): 376 377 datastructure.setError(widget_id, "'%s' not a valid session key" % v) -
WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py
r3739 r3743 67 67 now = DateTime.DateTime() 68 68 info['date'] = now 69 info['pay_ship_to'] = "Federal College of Education Oyo"69 info['pay_ship_to'] = "Federal College of Education [Special] Oyo" 70 70 timestamp = "%d" % int(now.timeTime()*1000) 71 71 info['order_id'] = "%s%s" % (student_id[1:],timestamp) 72 72 p_id = "p%s" % timestamp 73 74 75 info['surcharge'] = interswitch_amount = '300'76 info['amount'] = amount = fee_dict['all']77 total_amount = 100*int(amount) + 100*int(interswitch_amount)78 73 79 74 … … 113 108 p_id, 114 109 p_id) 110 111 info['amount'] = amount = fee_dict['all'] 112 115 113 116 114 logger.info('%(student_id)s initiated online school fee payment with order_id %(order_id)s and callback url %(callback_url)s' % info) … … 129 127 130 128 bt_amount = 1750 129 fceoyo_split = 750 130 info['surcharge'] = interswitch_amount = 300 131 #getSchoolFee provides pure school fee, the fees have to be added 132 total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split) 131 133 132 fceoyo_amount = amount - bt_amount # das ist falsch hier133 134 134 135 xmldict = {} … … 136 137 xmldict['department'] = student_record.department 137 138 xmldict['faculty'] = student_record.faculty 138 xmldict[' fceoyo_amount'] = "%d" % int(100*fceoyo_amount)139 xmldict['bt_amount'] = "%d" % int(100*bt_amount)139 xmldict['amount'] = "%d" % 100*amount 140 xmldict['bt_amount'] = "%d" % 100*bt_amount 140 141 141 if student_record.mode.endswith('_pt'): 142 xmldict['fceoyo_acct'] = "0321100000000046" 143 elif student_record.mode.endswith('_sw'): 144 xmldict['fceoyo_acct'] = "0321100000000056" 142 if student_record.mode in ('ug_sw','prence',): 143 xmldict['fceoyo_acct'] = "0285001000000899" 144 xmldict['bank_id'] = '89' 145 elif student_record.mode in ('ug_ft',): 146 xmldict['fceoyo_acct'] = "1681001000137" 147 xmldict['bank_id'] = '125' 145 148 else: 146 xmldict['fceoyo_acct'] = "0000000000000000" 149 xmldict['fceoyo_acct'] = "0000000000000" 150 xmldict['bank_id'] = '0' 147 151 152 xmldict['fceoyo_split'] = "%d" % 100*fceoyo_split 148 153 149 154 xmltext = """<payment_item_detail> 150 155 <item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s"> 151 <item_detail item_id="1" item_name="fceoyo" item_amt="%(fceoyo_amount)s" bank_id="89" acct_num="%(fceoyo_acct)s" /> 156 <item_detail item_id="1" item_name="fceoyo" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" /> 157 <item_detail item_id="2" item_name="fceoyo_split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" /> 152 158 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" /> 153 159 </item_details> … … 160 166 args['cust_name_desc'] = "Student Name" 161 167 args['pay_item_id'] = pay_item_id 162 args['pay_item_name'] = "FCE Oyo Tuition Payments"168 args['pay_item_name'] = "FCE[Special] Oyo Tuition Payments" 163 169 args['payment_params'] = 'college_split' 164 170 #args['xml_data'] = ''
Note: See TracChangeset for help on using the changeset viewer.