Changeset 17468 for main/waeup.aaue
- Timestamp:
- 6 Jul 2023, 04:06:15 (16 months 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
r17456 r17468 66 66 'fac2': ('2000249757', '8'), 67 67 'fac3': ('1012678566', '123'), 68 'acceptance': ('2000249757', '8'),69 68 'matricgown': ('2000249757', '8'), 70 69 'lapel': ('2000249757', '8'), 71 70 71 'acceptance': ('2000249757', '8'), 72 72 73 'hostel_maintenance': ('1006406795', '123'), 74 'bed_allocation': ('1006406795', '123'), 73 75 'late_registration': ('5210006575', '51'), 74 76 'ent_combined': ('6220029828', '51'), … … 85 87 'gst_text_book_2': ('1010893123', '117'), 86 88 'gst_text_book_3': ('1010893123', '117'), 89 90 'postgrad': ('1010827641', '117'), 87 91 } 88 92 … … 153 157 if self.applicant.applicant_id.startswith('trans'): 154 158 provider_amt = 3000.0 155 xmldict['institution_acct'] = '00000000' 156 xmldict['institution_bank_id'] = '00' 159 xmldict['institution_acct'] = '1012332141' 160 xmldict['institution_bank_id'] = '123' 161 if self.applicant.applicant_id.startswith('dsh'): 162 xmldict['institution_acct'] = '1014847058' 163 xmldict['institution_bank_id'] = '7' 164 if self.applicant.applicant_id.startswith('ijmbe'): 165 xmldict['institution_acct'] = '1012278272' 166 xmldict['institution_bank_id'] = '123' 157 167 xmldict['detail_ref'] = self.context.p_id 158 168 xmldict['provider_amt'] = 100 * provider_amt … … 328 338 # no additional charges, determine faculty bank only 329 339 else: 330 if student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'): 340 if student.is_postgrad: 341 bank = BANK_ACCOUNTS['postgrad'] 342 elif student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'): 331 343 bank = BANK_ACCOUNTS['fac1'] 332 344 elif student.faccode in ('FCS', 'FED', 'FES', 'FET'): … … 365 377 # no additional charges, determine faculty bank only 366 378 else: 367 bank = BANK_ACCOUNTS['acceptance'] 379 if student.is_postgrad: 380 bank = BANK_ACCOUNTS['postgrad'] 381 else: 382 bank = BANK_ACCOUNTS['acceptance'] 368 383 xmldict['institution_acct'] = bank[0] 369 384 xmldict['institution_bank_id'] = bank[1] … … 374 389 xmldict['institution_acct'] = bank[0] 375 390 xmldict['institution_bank_id'] = bank[1] 376 377 378 379 380 381 382 383 391 384 392 if not xmltext and provider_amt == 0: -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r17456 r17468 677 677 print "Sample PDF payment_slip.pdf written to %s" % path 678 678 # Another school fee payment cannot be added 679 self.student['payments'][value].approve()680 self.browser.open(self.student_path + '/payments')681 self.browser.getLink("Add current session payment ticket").click()682 self.browser.getControl(name="form.p_category").value = ['schoolfee']683 self.browser.getControl("Create ticket").click()684 self.assertTrue(685 'You must choose a payment which includes additional fees'686 in self.browser.contents)679 #self.student['payments'][value].approve() 680 #self.browser.open(self.student_path + '/payments') 681 #self.browser.getLink("Add current session payment ticket").click() 682 #self.browser.getControl(name="form.p_category").value = ['schoolfee'] 683 #self.browser.getControl("Create ticket").click() 684 #self.assertTrue( 685 # 'You must choose a payment which includes additional fees' 686 # in self.browser.contents) 687 687 return 688 688 … … 1230 1230 IWorkflowState(self.student).setState(PAID) 1231 1231 self.browser.getControl("Book accommodation").click() 1232 self.assertFalse('Activation Code:' in self.browser.contents)1232 #self.assertFalse('Activation Code:' in self.browser.contents) 1233 1233 self.browser.getControl("Create bed ticket").click() 1234 1234 # Bed is randomly selected but, since there is only
Note: See TracChangeset for help on using the changeset viewer.