Ignore:
Timestamp:
1 Sep 2012, 15:16:10 (12 years ago)
Author:
Henrik Bettermann
Message:

Configure school fees. In FCEOkene we can't setup school fees in certificates.

File:
1 edited

Legend:

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

    r8908 r9143  
    7474        self.app['configuration']['2004'].gown_fee = 150.0
    7575        self.app['configuration']['2004'].transfer_fee = 90.0
    76         #self.app['configuration']['2004'].clearance_fee = 120.0
     76        self.app['configuration']['2004'].clearance_fee = 120.0
    7777        self.app['configuration']['2004'].booking_fee = 150.0
    7878        self.app['configuration']['2004'].maint_fee = 180.0
     
    186186        self.app['configuration']['2004'].booking_fee = 150.0
    187187        self.app['configuration']['2004'].maint_fee = 180.0
     188        self.app['configuration']['2004'].clearance_fee = 120.0
    188189        utils = getUtility(IStudentsUtils)
    189190
     
    196197        self.assertEqual(payment.p_level, 100)
    197198        self.assertEqual(payment.p_session, 2004)
    198         self.assertEqual(payment.amount_auth, 40000.0)
     199        self.assertEqual(payment.amount_auth, 12495.0)
    199200        self.assertEqual(payment.p_item, u'CERT1')
    200201        self.assertEqual(error, None)
     
    202203        IWorkflowState(self.student).setState('returning')
    203204        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    204         self.assertEqual(payment.p_level, 200)
    205         self.assertEqual(payment.p_session, 2005)
    206         self.assertEqual(payment.amount_auth, 20000.0)
     205        self.assertEqual(payment.p_level, 100)
     206        self.assertEqual(payment.p_session, 2004)
     207        self.assertEqual(payment.amount_auth, 11545.0)
    207208        self.assertEqual(payment.p_item, u'CERT1')
    208209        self.assertEqual(error, None)
     
    211212        self.assertEqual(payment.p_level, 100)
    212213        self.assertEqual(payment.p_session, 2004)
    213         self.assertEqual(payment.amount_auth, 34250.0)
     214        self.assertEqual(payment.amount_auth, 120.0)
    214215        self.assertEqual(payment.p_item, u'CERT1')
    215216        self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.