Changeset 15512 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 24 Jul 2019, 19:59:27 (5 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15480 r15512 118 118 provider_amt = 1000.0 119 119 if self.applicant.__parent__.prefix in ('trans', 'cert'): 120 self.institution_acct = '1010827641' 121 self.institution_bank_id = '117' 120 122 self.provider_bank_id = '10' 121 123 self.provider_acct = '0427773399' 124 if self.applicant.applicant_id[:5] in ('cert7', 'cert8'): 125 provider_amt = 0.0 126 if self.applicant.applicant_id[:6] in ('trans5', 'trans6'): 127 self.institution_acct = '5210006575' 128 self.institution_bank_id = '5' 122 129 elif self.applicant.applicant_id.startswith('bridge',): # easier to test 123 130 self.institution_acct = '1014847058' 124 131 self.institution_bank_id = '7' 125 126 132 xmldict = {} 127 133 xmldict['detail_ref'] = self.context.p_id … … 136 142 xmldict['institution_amt'] = 100 * ( 137 143 self.context.amount_auth - provider_amt - GATEWAY_AMT) 144 138 145 xmltext = """<payment_item_detail> 139 146 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 140 147 <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" /> 141 148 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 149 </item_details> 150 </payment_item_detail>""" % xmldict 151 152 if provider_amt == 0.0: 153 xmltext = """<payment_item_detail> 154 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 155 <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" /> 142 156 </item_details> 143 157 </payment_item_detail>""" % xmldict -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r15511 r15512 438 438 # "Course registration has ended. " 439 439 # "Unregistration is disabled."), type="danger") 440 elif str(self.context.__parent__.current_level) != self.context.__name__:440 if str(self.context.__parent__.current_level) != self.context.__name__: 441 441 self.flash(_('This is not your current level.'), type="danger") 442 442 elif self.context.student.state == REGISTERED:
Note: See TracChangeset for help on using the changeset viewer.