Changeset 17494 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 19 Jul 2023, 16:41:44 (17 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/schoolfees_12.csv
r17449 r17494 1 1 code,faculty_code,department_code,tuition,edohis,union,access,sport,library 2 CERT1,FAG,ANS,184000,16000,30000,4500,3000, 20002 CERT1,FAG,ANS,184000,16000,30000,4500,3000,100_2000 3 3 BAGRANS,FAG,ANS,35000,16000,1000,4500,3000,1000 4 4 BAGRCRS,FAG,CRS,35000,16000,1000,4500,3000,1000 -
main/waeup.aaue/trunk/src/waeup/aaue/students/schoolfees_15.csv
r17455 r17494 1 1 code,faculty_code,department_code,tuition,edohis,union,access,sport,library,nuga 2 CERT1,FAG,ANS,184000,16000,30000,4500,3000,1000,100 02 CERT1,FAG,ANS,184000,16000,30000,4500,3000,1000,100_1000 3 3 BAGRANS,FAG,ANS,106700,16000,1000,4500,3000,1000,1000 4 4 BAGRCRS,FAG,CRS,106700,16000,1000,4500,3000,1000,1000 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r17468 r17494 685 685 # 'You must choose a payment which includes additional fees' 686 686 # in self.browser.contents) 687 configuration_2 = createObject('waeup.SessionConfiguration') 688 configuration_2.academic_session = 2019 689 self.app['configuration'].addSessionConfiguration(configuration_2) 690 self.student.father_name = u'Rudolf' 691 IWorkflowState(self.student).setState('returning') 692 self.browser.open(self.student_path + '/payments') 693 self.browser.getLink("Add current session payment ticket").click() 694 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 695 self.browser.getControl("Create ticket").click() 696 self.assertTrue('ticket created' in self.browser.contents) 697 value = self.student['payments'].keys()[1] 698 self.student['payments'][value].p_state = 'paid' 699 self.browser.getLink(value).click() 700 self.assertTrue('Amount Authorized' in self.browser.contents) 701 # It's 1000 less 702 self.assertEqual(self.student['payments'][value].amount_auth, 238500.0) 687 703 return 688 704 -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r17481 r17494 426 426 additional += int(item) 427 427 except: 428 pass 428 # 100_ indicates first year payment only 429 if student.state == CLEARED: 430 try: 431 additional += int(item.split('_')[1]) 432 except: 433 pass 429 434 amount = float(schoolfees[0]) 430 435 additional -= amount
Note: See TracChangeset for help on using the changeset viewer.