Ignore:
Timestamp:
28 Apr 2016, 07:26:19 (9 years ago)
Author:
Henrik Bettermann
Message:

Change alert message.

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

    r13853 r13854  
    8888        self.student.father_name = u'Rudolf'
    8989        error, payment = utils.setPaymentDetails('schoolfee_incl',self.student)
    90         self.assertEqual(error, 'This type of payment is not allowed.')
     90        self.assertEqual(error, 'No additional fees required.')
    9191        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    9292        self.assertEqual(payment.p_level, 200)
     
    100100        IWorkflowState(self.student).setState('cleared')
    101101        error, payment = utils.setPaymentDetails('clearance_incl',self.student)
    102         self.assertEqual(error, 'This type of payment is not allowed.')
     102        self.assertEqual(error, 'No additional fees required.')
    103103        error, payment = utils.setPaymentDetails('clearance',self.student)
    104104        self.assertEqual(payment.p_level, 100)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r13853 r13854  
    210210            elif student.is_postgrad:  # and not part-time
    211211                if category != 'clearance':
    212                     return _("This type of payment is not allowed."), None
     212                    return _("No additional fees required."), None
    213213                amount = academic_session.clearance_fee_pg
    214214            else:
     
    230230                return _('Study course data are incomplete.'), None
    231231            if student.is_postgrad and category != 'schoolfee':
    232                 return _("This type of payment is not allowed."), None
     232                return _("No additional fees required."), None
    233233            if category in ('schoolfee_1', 'schoolfee_2'):
    234234                if student.current_mode == 'ug_pt':
     
    248248                        amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT
    249249            elif student.state == RETURNING:
    250                 if student.is_postgrad and category == 'schoolfee_incl':
    251                     return _("No additional fees required."), None
    252250                if not student.father_name:
    253251                    return _("Personal data form is not properly filled."), None
Note: See TracChangeset for help on using the changeset viewer.