Ignore:
Timestamp:
13 Aug 2018, 06:14:51 (6 years ago)
Author:
Henrik Bettermann
Message:

Add payment category.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

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

    r15002 r15106  
    251251        self.browser.open(self.payments_path)
    252252        self.browser.getLink("Add current session payment ticket").click()
     253        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    253254        self.browser.getControl("Create ticket").click()
    254255        self.assertMatches('...Amount could not be determined...',
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r15094 r15106  
    231231            and student.current_mode == 'special_ft':
    232232            amount = 80000.0
     233        elif category == 'develop' and student.is_postgrad:
     234            amount = academic_session.development_fee
    233235        elif category == 'bed_allocation':
    234236            p_item = self.getAccommodationDetails(student)['bt']
Note: See TracChangeset for help on using the changeset viewer.