Ignore:
Timestamp:
19 Jul 2023, 16:41:44 (19 months ago)
Author:
Henrik Bettermann
Message:

100_ now indicates first year only payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r17468 r17494  
    685685        #    'You must choose a payment which includes additional fees'
    686686        #    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)
    687703        return
    688704
Note: See TracChangeset for help on using the changeset viewer.