- Timestamp:
- 3 Jul 2018, 05:47:49 (6 years ago)
- Location:
- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py
r15031 r15074 93 93 self.context.amount_auth - provider_amt - GATEWAY_AMT) 94 94 # Interswitch amount is not part of the xml data 95 if provider_amt == 0: 95 if not self.context.p_item == 'Balance' \ 96 and self.context.p_category == 'schoolfee': 97 xmldict['institution_amt'] -= 200000 98 xmltext = """<payment_item_detail> 99 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 100 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 101 <item_detail item_id="2" item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412" /> 102 </item_details> 103 </payment_item_detail>""" % xmldict 104 elif provider_amt == 0: 96 105 xmltext = """<payment_item_detail> 97 106 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/tests.py
r15072 r15074 105 105 self.browser.contents) 106 106 self.assertTrue( 107 'item_name="Tuition and Exams Fee" item_amt="3975000" bank_id="121" acct_num="0068241848"' in 107 'item_name="Tuition and Exams Fee" item_amt="3775000" bank_id="121" acct_num="0068241848"' in 108 self.browser.contents) 109 self.assertTrue( 110 'item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412"' in 108 111 self.browser.contents) 109 112 # Clearance Fee -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py
r15073 r15074 24 24 """A collection of methods subject to customization. 25 25 """ 26 27 APP_CATS_DICT = { 28 'basic': 'Basic Application', 29 'no': 'no application', 30 'pg': 'Postgraduate', 31 'sandwich': 'Sandwich', 32 'cest': 'Part-Time, Diploma, Certificate' 33 } 26 34 27 35 PAYMENT_CATEGORIES = {
Note: See TracChangeset for help on using the changeset viewer.