Ignore:
Timestamp:
23 Nov 2012, 10:51:00 (12 years ago)
Author:
Henrik Bettermann
Message:

Change acceptance fee calculation. This way penalty fees can be added or payment can be disabled via the UI.

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

Legend:

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

    r9699 r9714  
    171171        self.assertEqual(error, u'Previous session payment not yet implemented.')
    172172
     173        self.app['configuration']['2004'].clearance_fee = 20000.0
    173174        error, payment = utils.setPaymentDetails('clearance',self.student)
    174175        self.assertEqual(payment.p_level, 100)
  • main/waeup.futminna/trunk/src/waeup/futminna/students/utils.py

    r9575 r9714  
    114114            except (AttributeError, TypeError):
    115115                return _('Study course data are incomplete.'), None
    116             if student.faccode in ['EET','ICT'] or student.depcode in ['ARC']:
    117                 amount = 25000.0
    118             else:
    119                 amount = 20000.0
     116            amount = academic_session.clearance_fee
     117            if amount and (student.faccode in [
     118                'EET','ICT'] or student.depcode in ['ARC']):
     119                amount += 5000.0
    120120        elif category == 'hostel_maintenance':
    121121            current_session = student['studycourse'].current_session
Note: See TracChangeset for help on using the changeset viewer.