Ignore:
Timestamp:
2 Oct 2017, 05:38:09 (7 years ago)
Author:
Henrik Bettermann
Message:

According to med's advice in ticket #1108: "Paying for the next session should only be done at the state returning"

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

Legend:

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

    r14834 r14857  
    600600        # In Uniben students can pay school fee in all states no matter
    601601        # if they are ug or pg students.
    602         IWorkflowState(self.student).setState('school fee paid')
    603         self.student.is_staff = False
    604         self.student.nationality = u'NG'
    605         self.certificate.school_fee_2 = 10000.0
    606         error, payment = utils.setPaymentDetails(
    607             'schoolfee', self.student, None, None)
    608         self.assertEqual(payment.p_level, None)
    609         self.assertEqual(payment.p_session, 2005)
    610         self.assertEqual(payment.amount_auth, 10088.0)
    611         self.assertEqual(payment.p_item, u'CERT1')
    612         self.assertEqual(error, None)
    613         IWorkflowState(self.student).setState('courses registered')
    614         self.certificate.study_mode = 'special_pg_pt'
    615         error, payment = utils.setPaymentDetails(
    616             'schoolfee', self.student, None, None)
    617         self.assertEqual(payment.p_level, None)
    618         self.assertEqual(payment.p_session, 2005)
    619         self.assertEqual(payment.amount_auth, 10000.0)
    620         self.assertEqual(payment.p_item, u'CERT1')
    621         self.assertEqual(error, None)
    622         IWorkflowState(self.student).setState('courses validated')
    623         error, payment = utils.setPaymentDetails(
    624             'schoolfee', self.student, None, None)
    625         self.assertEqual(payment.p_level, None)
    626         self.assertEqual(payment.p_session, 2005)
    627         self.assertEqual(payment.amount_auth, 10000.0)
    628         self.assertEqual(payment.p_item, u'CERT1')
    629         self.assertEqual(error, None)
     602        # diabled on 02/10/2017, see ticket 1108
     603        #IWorkflowState(self.student).setState('school fee paid')
     604        #self.student.is_staff = False
     605        #self.student.nationality = u'NG'
     606        #self.certificate.school_fee_2 = 10000.0
     607        #error, payment = utils.setPaymentDetails(
     608        #    'schoolfee', self.student, None, None)
     609        #self.assertEqual(payment.p_level, None)
     610        #self.assertEqual(payment.p_session, 2005)
     611        #self.assertEqual(payment.amount_auth, 10088.0)
     612        #self.assertEqual(payment.p_item, u'CERT1')
     613        #self.assertEqual(error, None)
     614        #IWorkflowState(self.student).setState('courses registered')
     615        #self.certificate.study_mode = 'special_pg_pt'
     616        #error, payment = utils.setPaymentDetails(
     617        #    'schoolfee', self.student, None, None)
     618        #self.assertEqual(payment.p_level, None)
     619        #self.assertEqual(payment.p_session, 2005)
     620        #self.assertEqual(payment.amount_auth, 10000.0)
     621        #self.assertEqual(payment.p_item, u'CERT1')
     622        #self.assertEqual(error, None)
     623        #IWorkflowState(self.student).setState('courses validated')
     624        #error, payment = utils.setPaymentDetails(
     625        #    'schoolfee', self.student, None, None)
     626        #self.assertEqual(payment.p_level, None)
     627        #self.assertEqual(payment.p_session, 2005)
     628        #self.assertEqual(payment.amount_auth, 10000.0)
     629        #self.assertEqual(payment.p_item, u'CERT1')
     630        #self.assertEqual(error, None)
    630631
    631632        error, payment = utils.setPaymentDetails('clearance',
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r14855 r14857  
    310310                    else:
    311311                        amount = getattr(certificate, 'school_fee_1', 0.0)
    312                 elif student.state in (PAID, REGISTERED, VALIDATED):
     312                elif False:
     313                # diabled on 02/10/2017, see ticket 1108
     314                #elif student.state in (PAID, REGISTERED, VALIDATED):
    313315                    p_session += 1
    314316                    # We don't know which level the student is paying for.
Note: See TracChangeset for help on using the changeset viewer.