Ignore:
Timestamp:
23 May 2012, 21:33:14 (12 years ago)
Author:
Henrik Bettermann
Message:

Fix getPaymentDetails and adjust browser test.

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

Legend:

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

    r8503 r8505  
    3333from waeup.aaue.interfaces import MessageFactory as _
    3434from waeup.aaue.payments.interfaces import ICustomOnlinePayment
    35 from waeup.aaue.utils.lgas import LGAS
    3635
    3736
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r8474 r8505  
    316316        self.app['configuration']['2004'].booking_fee = 150.0
    317317        self.app['configuration']['2004'].maint_fee = 180.0
     318        self.app['configuration']['2004'].clearance_fee = 360.0
    318319        utils = getUtility(IStudentsUtils)
    319320        self.assertEqual(utils.getPaymentDetails('schoolfee',self.student),
     
    322323            )
    323324        self.assertEqual(utils.getPaymentDetails('clearance',self.student),
    324             {'p_level': 100, 'p_session': 2004, 'amount': 34250.0,
     325            {'p_level': 100, 'p_session': 2004, 'amount': 360.0,
    325326            'p_item': u'CERT1', 'error': u''}
    326327            )
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r8499 r8505  
    8181            details['amount'] = academic_session.maint_fee
    8282        elif category == 'clearance':
     83            details['p_item'] = student['studycourse'].certificate.code
    8384            details['amount'] = academic_session.clearance_fee
    8485        elif category == 'schoolfee':
Note: See TracChangeset for help on using the changeset viewer.