Ignore:
Timestamp:
15 May 2014, 07:08:46 (10 years ago)
Author:
Henrik Bettermann
Message:

Configure all types school fees and clearance (acceptance) fees in session configuration objects.

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

Legend:

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

    r11624 r11653  
    4545
    4646    school_fee_1 = schema.Float(
    47         title = _(u'Initial School Fee (not FP)'),
     47        title = _(u'Regular Initial School Fee'),
    4848        default = 0.0,
    4949        required = True,
     
    5151
    5252    school_fee_2 = schema.Float(
    53         title = _(u'Returning School Fee (not FP)'),
     53        title = _(u'Returning School Fee'),
     54        default = 0.0,
     55        required = True,
     56        )
     57
     58    school_fee_3 = schema.Float(
     59        title = _(u'FP Initial School Fee'),
    5460        default = 0.0,
    5561        required = True,
     
    6369
    6470    clearance_fee = schema.Float(
    65         title = _(u'Acceptance Fee'),
     71        title = _(u'Regular Acceptance Fee'),
     72        default = 0.0,
     73        required = True,
     74        )
     75
     76    clearance_fee_fp = schema.Float(
     77        title = _(u'FP Acceptance Fee'),
    6678        default = 0.0,
    6779        required = True,
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r11627 r11653  
    5151        self.app['configuration']['2004'].maint_fee = 180.0
    5252        self.app['configuration']['2004'].clearance_fee = 1234.0
     53        self.app['configuration']['2004'].clearance_fee_fp = 3456.0
    5354        self.app['configuration']['2004'].school_fee_1 = 6666.0
    5455        utils = getUtility(IStudentsUtils)
     
    8990        self.assertEqual(payment.p_session, 2004)
    9091        self.assertEqual(payment.amount_auth, 1234.0)
     92        self.assertEqual(payment.p_item, u'CERT1')
     93        self.assertEqual(error, None)
     94
     95        self.app['faculties']['fac1'].code = u'FP'
     96        error, payment = utils.setPaymentDetails('clearance',self.student)
     97        self.assertEqual(payment.p_level, 100)
     98        self.assertEqual(payment.p_session, 2004)
     99        self.assertEqual(payment.amount_auth, 3456.0)
    91100        self.assertEqual(payment.p_item, u'CERT1')
    92101        self.assertEqual(error, None)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r11627 r11653  
    140140            amount = academic_session.maint_fee
    141141        elif category == 'clearance':
    142             amount = academic_session.clearance_fee
     142            if student.faccode == 'FP':
     143                amount = academic_session.clearance_fee_fp
     144            else:
     145                amount = academic_session.clearance_fee
    143146            p_item = student['studycourse'].certificate.code
    144147        elif category == 'late_registration':
     
    152155            if student.state == CLEARED:
    153156                if student.faccode == 'FP':
    154                     amount = 84000.0
     157                    amount = academic_session.school_fee_3
    155158                else:
    156159                    amount = academic_session.school_fee_1
Note: See TracChangeset for help on using the changeset viewer.