Changeset 9297 for main


Ignore:
Timestamp:
5 Oct 2012, 11:24:30 (12 years ago)
Author:
Henrik Bettermann
Message:

Set payment ticket attributes properly.

Mrrr, even the test was expecting the wrong p_session and p_level.

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

    r9190 r9297  
    204204        IWorkflowState(self.student).setState('returning')
    205205        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    206         self.assertEqual(payment.p_level, 100)
    207         self.assertEqual(payment.p_session, 2004)
     206        self.assertEqual(payment.p_level, 200)
     207        self.assertEqual(payment.p_session, 2005)
    208208        self.assertEqual(payment.amount_auth, 11545.0)
    209209        self.assertEqual(payment.p_item, u'CERT1')
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r9207 r9297  
    201201                    else:
    202202                        amount = 17400
     203            if student.state == RETURNING:
     204                p_session, p_level = self.getReturningData(student)
    203205
    204206        if amount in (0.0, None):
Note: See TracChangeset for help on using the changeset viewer.