Ignore:
Timestamp:
25 Oct 2011, 19:42:31 (13 years ago)
Author:
Henrik Bettermann
Message:

Add clearance fee and to session configuration.

Location:
main/waeup.custom/trunk/src/waeup/custom
Files:
3 edited

Legend:

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

    r6923 r6950  
    4646        )
    4747
     48    clearance = schema.Int(
     49        title = u'Clearance Fee',
     50        default = 0,
     51        )
     52
    4853    def getSessionString():
    4954        """Returns the session string from the vocabulary.
  • main/waeup.custom/trunk/src/waeup/custom/students/tests.py

    r6949 r6950  
    6060        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
    6161        self.browser.getControl("Create ticket").click()
     62        self.browser.open(self.payments_student_path + '/addop')
     63        self.browser.getControl(name="form.p_category").value = ['clearance']
     64        self.browser.getControl("Create ticket").click()
    6265        self.certificate.study_mode = 'ug_pt'
    6366        self.browser.open(self.payments_student_path + '/addop')
  • main/waeup.custom/trunk/src/waeup/custom/students/utils.py

    r6926 r6950  
    2323    elif category == 'hostel_maintenance':
    2424        amount = academic_session.hostelmaintenance
     25    elif category == 'clearance':
     26        p_item = student['studycourse'].certificate.code
     27        amount = academic_session.clearance
    2528    elif category == 'schoolfee':
    2629        surcharge_1 = academic_session.surcharge_1
Note: See TracChangeset for help on using the changeset viewer.