Changeset 9409 for main/waeup.futminna/trunk/src/waeup/futminna/interswitch
- Timestamp:
- 24 Oct 2012, 22:01:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/interswitch/browser.py
r9386 r9409 28 28 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent 29 29 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant 30 from waeup.kofa.payments.interfaces import payment_categories31 30 from waeup.futminna.students.interfaces import ICustomStudentOnlinePayment 32 31 from waeup.futminna.applicants.interfaces import ICustomApplicantOnlinePayment … … 177 176 xmldict['department'] = None 178 177 xmldict['faculty'] = None 179 self.category = payment_categories.getTermByToken( 180 self.context.p_category).title 178 self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category] 181 179 tz = getUtility(IKofaUtils).tzinfo 182 180 self.local_date_time = to_timezone( … … 265 263 self.pay_item_id = "11706" 266 264 265 elif self.context.p_category == 'hostel_maintenance': 266 xmldict['institution_amt'] = 100 * ( 267 self.context.amount_auth - 300) 268 xmldict['institution_acct'] = "0000000000000" 269 xmldict['institution_bank_id'] = '00' 270 self.pay_item_id = "0000" 271 272 elif self.context.p_category == 'block_h_maintenance': 273 xmldict['institution_amt'] = 100 * ( 274 self.context.amount_auth - 300) 275 xmldict['institution_acct'] = "0000000000000" 276 xmldict['institution_bank_id'] = '00' 277 self.pay_item_id = "0000" 278 267 279 xmldict['institution_name'] = INSTITUTION_NAME 268 280 # Interswitch amount is not part of the xml data … … 275 287 </item_details> 276 288 </payment_item_detail>""" % xmldict 289 277 290 elif self.context.p_category == 'clearance': 278 291 xmltext = """<payment_item_detail> … … 281 294 </item_details> 282 295 </payment_item_detail>""" % xmldict 296 297 elif 'maintenance' in self.context.p_category: 298 xmltext = """<payment_item_detail> 299 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 300 <item_detail item_id="1" item_name="Maintenance Fee" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 301 </item_details> 302 </payment_item_detail>""" % xmldict 303 304 283 305 self.xml_data = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 284 306 return
Note: See TracChangeset for help on using the changeset viewer.