Changeset 13482


Ignore:
Timestamp:
19 Nov 2015, 05:26:44 (9 years ago)
Author:
Henrik Bettermann
Message:

Personal data form must be filled before paying school fees.

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

Legend:

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

    r13374 r13482  
    8181        IWorkflowState(self.student).setState('returning')
    8282        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     83        self.assertEqual(error, u'Personal data form is not properly filled.')
     84        self.student.father_name = u'Rudolf'
     85        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    8386        self.assertEqual(payment.p_level, 200)
    8487        self.assertEqual(payment.p_session, 2005)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r13474 r13482  
    187187                    amount = getattr(certificate, 'school_fee_1', 0.0)
    188188            elif student.state == RETURNING:
     189                if not student.father_name:
     190                    return _("Personal data form is not properly filled."), None
    189191                # In case of returning school fee payment the payment session
    190192                # and level contain the values of the session the student
Note: See TracChangeset for help on using the changeset viewer.