Ignore:
Timestamp:
29 Jan 2014, 16:08:09 (11 years ago)
Author:
Henrik Bettermann
Message:

Add late registration payment category.

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

Legend:

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

    r10656 r11004  
    121121        self.app['configuration']['2004'].booking_fee = 150.0
    122122        self.app['configuration']['2004'].maint_fee = 180.0
     123        self.app['configuration']['2004'].late_fee = 80.0
    123124
    124125        # Managers can add online payment tickets
     
    182183        self.browser.open(self.payments_path + '/addop')
    183184        self.browser.getControl(name="form.p_category").value = ['clearance']
     185        self.browser.getControl("Create ticket").click()
     186        self.assertMatches('...ticket created...',
     187                           self.browser.contents)
     188        self.browser.open(self.payments_path + '/addop')
     189        self.browser.getControl(name="form.p_category").value = ['late_registration']
    184190        self.browser.getControl("Create ticket").click()
    185191        self.assertMatches('...ticket created...',
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r10953 r11004  
    122122            amount = academic_session.clearance_fee
    123123            p_item = student['studycourse'].certificate.code
     124        elif category == 'late_registration':
     125            amount = academic_session.late_fee
    124126        elif category == 'schoolfee':
    125127            try:
Note: See TracChangeset for help on using the changeset viewer.