Ignore:
Timestamp:
14 Nov 2017, 11:08:44 (7 years ago)
Author:
Henrik Bettermann
Message:

Adjust acceptance/clearance fee.

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

    r14893 r14897  
    325325        #                   self.browser.contents)
    326326        #self.browser.open(self.payments_path + '/addop')
    327         # We can't test clearance payment ticket creation at the moment,
    328         # since Uniben decided to deactivate clearance for ug students.
    329         #self.browser.getControl(name="form.p_category").value = ['clearance']
    330         #self.browser.getControl("Create ticket").click()
    331         #self.assertMatches('...ticket created...',
    332         #                  self.browser.contents)
     327
     328        self.browser.getControl(name="form.p_category").value = ['clearance']
     329        self.browser.getControl("Create ticket").click()
     330        self.assertMatches('...ticket created...',
     331                           self.browser.contents)
     332        self.assertTrue('<td>60000.0</td>' in self.browser.contents)
    333333        self.browser.open(self.payments_path + '/addop')
    334334        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     
    351351        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    352352        self.browser.getControl("Create ticket").click()
    353 
    354353
    355354        #self.assertMatches('...You have not yet paid your current/active session...',
     
    360359        #self.browser.getControl(name="form.p_category").value = ['schoolfee']
    361360        #self.browser.getControl("Create ticket").click()
    362 
    363361
    364362        self.assertMatches('...ticket created...',
     
    640638        self.assertEqual(payment.p_level, 100)
    641639        self.assertEqual(payment.p_session, 2004)
    642         self.assertEqual(payment.amount_auth, 45000.0)
     640        self.assertEqual(payment.amount_auth, 60000.0)
    643641        self.assertEqual(payment.p_item, u'CERT1')
    644642        self.assertEqual(error, None)
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r14893 r14897  
    263263            if p_item is None:
    264264                return _('Study course data are incomplete.'), None
    265             #if student.faccode == 'JUPEB':
    266             #    return _('No payment required.'), None
    267             if student.faccode.startswith('FCETA'):
     265            if student.faccode == 'JUPEB':
     266                amount = 50000.0
     267            elif student.faccode.startswith('FCETA'):
    268268                # ASABA and AKOKA
    269269                amount = 30000.0
    270270            elif p_item in ('BSCANA', 'BSCMBC', 'BMLS', 'BSCNUR', 'BSCPHS', 'BDS',
    271271                'MBBSMED', 'MBBSNDU', 'BSCPTY'):
    272                 amount = 65000.0
    273             else:
    274                 amount = 45000.0
    275             # Clearance fee and provider amount have been increased
    276             # for new students.
    277             if student.entry_session >= 2016:
    278                 amount += 5000.0
     272                amount = 80000.0
     273            else:
     274                amount = 60000.0
    279275        elif category == 'schoolfee':
    280276            try:
Note: See TracChangeset for help on using the changeset viewer.