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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py

    r10923 r11004  
    100100        )
    101101
     102    late_fee = schema.Float(
     103        title = _(u'Late Registration Fee'),
     104        default = 0.0,
     105        required = False,
     106        )
     107
    102108    def getSessionString():
    103109        """Returns the session string from the vocabulary.
  • 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:
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r10893 r11004  
    3838        'transfer': 'Transfer Fee',
    3939        'transcript': 'Transcript Fee',
     40        'late_registration': 'Late Registration Fee',
    4041        }
    4142
     
    5152        'transfer': 'Transfer Fee',
    5253        'transcript': 'Transcript Fee',
     54        'late_registration': 'Late Registration Fee',
    5355        }
    5456
Note: See TracChangeset for help on using the changeset viewer.