Changeset 11557
- Timestamp:
- 1 Apr 2014, 12:48:51 (11 years ago)
- Location:
- main/waeup.kwarapoly/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/CHANGES.txt
r11517 r11557 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Change bank account numbers for special payments. 6 8 7 9 * Use kofa-scrollto script. -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r11303 r11557 100 100 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 101 101 # Institution data 102 xmldict['institution_acct'] = "0000000000000"103 xmldict['institution_bank_id'] = '0'104 102 xmldict['institution_item_name'] = self.category 105 103 xmldict['institution_name'] = INSTITUTION_NAME … … 109 107 gateway_amt = GATEWAY_AMT 110 108 self.pay_item_id = '000' 109 xmldict['institution_acct'] = "7000016724" 110 xmldict['institution_bank_id'] = "9" 111 111 if self.context.p_category == 'schoolfee': 112 112 self.pay_item_id = '101' … … 138 138 elif self.context.p_category == 'certificate': 139 139 self.pay_item_id = '111' 140 xmldict['institution_acct'] = "0131959715"141 xmldict['institution_bank_id'] = '10'142 140 elif self.context.p_category == 'state_result': 143 141 self.pay_item_id = '112' 144 xmldict['institution_acct'] = "0131959715"145 xmldict['institution_bank_id'] = '10'146 142 elif self.context.p_category == 'transcript_local': 147 143 self.pay_item_id = '113' 148 xmldict['institution_acct'] = "0131959715"149 xmldict['institution_bank_id'] = '10'150 144 elif self.context.p_category == 'transcript_foreign': 151 145 self.pay_item_id = '114' 152 xmldict['institution_acct'] = "0131959715"153 xmldict['institution_bank_id'] = '10'154 146 elif self.context.p_category == 'ver_result': 155 147 self.pay_item_id = '115' 156 xmldict['institution_acct'] = "0131959715"157 xmldict['institution_bank_id'] = '10'158 148 elif self.context.p_category == 'change_course': 159 149 self.pay_item_id = '116' 160 xmldict['institution_acct'] = "0131959715"161 xmldict['institution_bank_id'] = '10'162 150 elif self.context.p_category == 'change_inst': 163 151 self.pay_item_id = '117' 164 xmldict['institution_acct'] = "0131959715"165 xmldict['institution_bank_id'] = '10'166 152 elif self.context.p_category == 'jamb_reject': 167 153 self.pay_item_id = '118' 168 xmldict['institution_acct'] = "0131959715"169 xmldict['institution_bank_id'] = '10'170 154 elif self.context.p_category == 'cert_of_cert': 171 155 self.pay_item_id = '119' 172 xmldict['institution_acct'] = "0131959715"173 xmldict['institution_bank_id'] = '10'174 156 elif self.context.p_category == 'ref_let': 175 157 self.pay_item_id = '120' 176 xmldict['institution_acct'] = "0131959715"177 xmldict['institution_bank_id'] = '10'178 158 elif self.context.p_category == 'proc_cert': 179 159 self.pay_item_id = '121' 180 xmldict['institution_acct'] = "0131959715"181 xmldict['institution_bank_id'] = '10'182 160 elif self.context.p_category == 'loss_idcard': 183 161 self.pay_item_id = '122' 184 xmldict['institution_acct'] = "0131959715"185 xmldict['institution_bank_id'] = '10'186 162 dalash_amt = 6.0 187 163 xmldict['dalash_amt'] = 100 * dalash_amt … … 190 166 elif self.context.p_category == 'loss_examcard': 191 167 self.pay_item_id = '123' 192 xmldict['institution_acct'] = "0131959715"193 xmldict['institution_bank_id'] = '10'194 168 dalash_amt = 3.0 195 169 xmldict['dalash_amt'] = 100 * dalash_amt … … 198 172 elif self.context.p_category == 'loss_result': 199 173 self.pay_item_id = '124' 200 xmldict['institution_acct'] = "0131959715"201 xmldict['institution_bank_id'] = '10'202 174 elif self.context.p_category == 'loss_receipt': 203 175 self.pay_item_id = '125' 204 xmldict['institution_acct'] = "0131959715"205 xmldict['institution_bank_id'] = '10'206 176 elif self.context.p_category == 'loss_clearance': 207 177 self.pay_item_id = '126' 208 xmldict['institution_acct'] = "0131959715"209 xmldict['institution_bank_id'] = '10'210 178 elif self.context.p_category == 'conv_brochure': 211 179 self.pay_item_id = '127' 212 xmldict['institution_acct'] = "0131959715"213 xmldict['institution_bank_id'] = '10'214 180 elif 'maintenance' in self.context.p_category: 215 181 self.pay_item_id = '102' … … 218 184 dalash_amt = 0.0 219 185 provider_amt = 0.0 220 186 else: 187 xmldict['institution_acct'] = "0000000000000" 188 xmldict['institution_bank_id'] = '0' 221 189 222 190 xmldict['dalash_amt'] = 100 * dalash_amt … … 225 193 self.context.amount_auth - provider_amt - 226 194 gateway_amt - dalash_amt) 227 228 195 229 196 hashargs = ( … … 323 290 dalash_amt = 0.0 324 291 elif self.applicant.applicant_id.startswith('special'): 292 xmldict['institution_acct'] = "7000016724" 293 xmldict['institution_bank_id'] = '9' 325 294 if self.applicant.special_application == 'certificate': 326 295 self.pay_item_id = '111' 327 xmldict['institution_acct'] = "0131959715"328 xmldict['institution_bank_id'] = '10'329 296 elif self.applicant.special_application == 'state_result': 330 297 self.pay_item_id = '112' 331 xmldict['institution_acct'] = "0131959715"332 xmldict['institution_bank_id'] = '10'333 298 elif self.applicant.special_application == 'transcript_local': 334 299 self.pay_item_id = '113' 335 xmldict['institution_acct'] = "0131959715"336 xmldict['institution_bank_id'] = '10'337 300 elif self.applicant.special_application == 'transcript_foreign': 338 301 self.pay_item_id = '114' 339 xmldict['institution_acct'] = "0131959715"340 xmldict['institution_bank_id'] = '10'341 302 elif self.applicant.special_application == 'ver_result': 342 303 self.pay_item_id = '115' 343 xmldict['institution_acct'] = "0131959715"344 xmldict['institution_bank_id'] = '10'345 304 elif self.applicant.special_application == 'change_course': 346 305 self.pay_item_id = '116' 347 xmldict['institution_acct'] = "0131959715"348 xmldict['institution_bank_id'] = '10'349 306 elif self.applicant.special_application == 'change_inst': 350 307 self.pay_item_id = '117' 351 xmldict['institution_acct'] = "0131959715"352 xmldict['institution_bank_id'] = '10'353 308 elif self.applicant.special_application == 'jamb_reject': 354 309 self.pay_item_id = '118' 355 xmldict['institution_acct'] = "0131959715"356 xmldict['institution_bank_id'] = '10'357 310 elif self.applicant.special_application == 'cert_of_cert': 358 311 self.pay_item_id = '119' 359 xmldict['institution_acct'] = "0131959715"360 xmldict['institution_bank_id'] = '10'361 312 elif self.applicant.special_application == 'ref_let': 362 313 self.pay_item_id = '120' 363 xmldict['institution_acct'] = "0131959715"364 xmldict['institution_bank_id'] = '10'365 314 elif self.applicant.special_application == 'proc_cert': 366 315 self.pay_item_id = '121' 367 xmldict['institution_acct'] = "0131959715"368 xmldict['institution_bank_id'] = '10'369 316 elif self.applicant.special_application == 'loss_idcard': 370 317 self.pay_item_id = '122' 371 xmldict['institution_acct'] = "0131959715"372 xmldict['institution_bank_id'] = '10'373 318 dalash_amt = 6.0 374 319 xmldict['dalash_amt'] = 100 * dalash_amt … … 377 322 elif self.applicant.special_application == 'loss_examcard': 378 323 self.pay_item_id = '123' 379 xmldict['institution_acct'] = "0131959715"380 xmldict['institution_bank_id'] = '10'381 324 dalash_amt = 3.0 382 325 xmldict['dalash_amt'] = 100 * dalash_amt … … 385 328 elif self.applicant.special_application == 'loss_result': 386 329 self.pay_item_id = '124' 387 xmldict['institution_acct'] = "0131959715"388 xmldict['institution_bank_id'] = '10'389 330 elif self.applicant.special_application == 'loss_receipt': 390 331 self.pay_item_id = '125' 391 xmldict['institution_acct'] = "0131959715"392 xmldict['institution_bank_id'] = '10'393 332 elif self.applicant.special_application == 'loss_clearance': 394 333 self.pay_item_id = '126' 395 xmldict['institution_acct'] = "0131959715"396 xmldict['institution_bank_id'] = '10'397 334 elif self.applicant.special_application == 'conv_brochure': 398 335 self.pay_item_id = '127' 399 xmldict['institution_acct'] = "0131959715"400 xmldict['institution_bank_id'] = '10'401 336 else: 402 337 xmldict['institution_acct'] = '00000000000' -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r10847 r11557 592 592 self.assertTrue( 593 593 '<item_detail item_id="1" item_name="transcript_local" ' 594 'item_amt="450000" bank_id=" 10" acct_num="0131959715" />'595 in self.browser.contents) 594 'item_amt="450000" bank_id="9" acct_num="7000016724" />' 595 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.