Changeset 8294 for main


Ignore:
Timestamp:
27 Apr 2012, 06:32:43 (13 years ago)
Author:
Henrik Bettermann
Message:

Dynamize acceptance fee (clearance fee) payment.

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

Legend:

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

    r8263 r8294  
    9393
    9494    clearance_fee = schema.Float(
    95         title = _(u'Clearance Fee'),
     95        title = _(u'Clearance Fee (ignored)'),
    9696        default = 0.0,
    9797        required = False,
     
    107107
    108108    maint_fee = schema.Float(
    109         title = _(u'Maintenance Fee'),
     109        title = _(u'Maintenance Fee (ignored)'),
    110110        default = 0.0,
    111111        required = False,
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r8267 r8294  
    138138        self.app['configuration']['2004'].gown_fee = 150.0
    139139        self.app['configuration']['2004'].transfer_fee = 90.0
    140         self.app['configuration']['2004'].clearance_fee = 120.0
     140        #self.app['configuration']['2004'].clearance_fee = 120.0
     141        self.app['configuration']['2004'].booking_fee = 150.0
    141142        self.app['configuration']['2004'].maint_fee = 180.0
    142143
     
    181182        self.browser.getControl(name="form.p_category").value = ['gown']
    182183        self.browser.getControl("Create ticket").click()
     184        self.assertMatches('...ticket created...',
     185                           self.browser.contents)
    183186        self.browser.open(self.payments_path + '/addop')
    184187        self.browser.getControl(name="form.p_category").value = ['transfer']
    185188        self.browser.getControl("Create ticket").click()
     189        self.assertMatches('...ticket created...',
     190                           self.browser.contents)
    186191        self.browser.open(self.payments_path + '/addop')
    187192        self.browser.getControl(
    188193            name="form.p_category").value = ['bed_allocation']
    189194        self.browser.getControl("Create ticket").click()
     195        self.assertMatches('...ticket created...',
     196                           self.browser.contents)
    190197        self.browser.open(self.payments_path + '/addop')
    191198        self.browser.getControl(
    192199            name="form.p_category").value = ['hostel_maintenance']
    193200        self.browser.getControl("Create ticket").click()
     201        self.assertMatches('...ticket created...',
     202                           self.browser.contents)
    194203        self.browser.open(self.payments_path + '/addop')
    195204        self.browser.getControl(name="form.p_category").value = ['clearance']
    196205        self.browser.getControl("Create ticket").click()
     206        self.assertMatches('...ticket created...',
     207                           self.browser.contents)
    197208        self.certificate.study_mode = 'ug_pt'
    198209        self.browser.open(self.payments_path + '/addop')
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r8270 r8294  
    112112        elif category == 'clearance':
    113113            d['p_item'] = student['studycourse'].certificate.code
    114             d['amount'] = academic_session.clearance_fee
     114            if d['p_item'] in ('BEDCET', 'BIOEDCET', 'CHMEDCET', 'ISEDCET',
     115                'MTHEDCET', 'PHYEDCET', 'ITECET', 'AGREDCET', 'HEEDCET'):
     116                d['amount'] = 17250.0
     117            else:
     118                d['amount'] = 34250.0
    115119        elif category == 'schoolfee':
    116120            d['amount'] = get_school_fee(student)
Note: See TracChangeset for help on using the changeset viewer.