Changeset 10010 for main


Ignore:
Timestamp:
4 Mar 2013, 07:11:50 (12 years ago)
Author:
Henrik Bettermann
Message:

Show correct warning.

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

Legend:

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

    r10009 r10010  
    253253        self.certificate.study_mode = 'nce_ft'
    254254        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    255         self.assertEqual(error, u'Amount could not be determined.')
     255        self.assertEqual(error, u'School fee payment is disabled.')
    256256
    257257        error, payment = utils.setPaymentDetails('clearance',self.student)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r10009 r10010  
    222222            if academic_session.school_fee_base == -1 and \
    223223                student.current_mode.startswith('nce'):
    224                 amount = 0
     224                return _(u'School fee payment is disabled.'), None
    225225            if student.state == RETURNING:
    226226                # Override p_session and p_level
Note: See TracChangeset for help on using the changeset viewer.