Ignore:
Timestamp:
20 May 2012, 05:46:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Add new workflow transitions for postgraduate students. Take care for correct payment. Since pg students bypass course registration, we need new names and titles for session activation button and page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/workflow.py

    r8434 r8471  
    106106        transition_id = 'pay_school_fee',
    107107        title = _('Pay school fee'),
    108         msg = _('School fee paid'),
     108        msg = _('Payment made'),
    109109        source = RETURNING,
     110        destination = PAID),
     111
     112    Transition(
     113        transition_id = 'pay_pg_fee',
     114        title = _('Pay postgraduate school fee'),
     115        msg = _('Payment made'),
     116        source = PAID,
    110117        destination = PAID),
    111118
     
    115122        msg = _('School fee payment approved'),
    116123        source = RETURNING,
     124        destination = PAID),
     125
     126    Transition(
     127        transition_id = 'approve_pg_fee',
     128        title = _('Approve postgraduate payment'),
     129        msg = _('School fee payment approved'),
     130        source = PAID,
    117131        destination = PAID),
    118132
     
    198212
    199213    Lock and unlock clearance form.
     214    Triger actions after school fee payment.
    200215    """
    201216
     
    212227        'pay_school_fee', 'approve_school_fee'):
    213228        getUtility(IStudentsUtils).setReturningData(obj)
     229    elif event.transition.transition_id in (
     230        'pay_pg_fee', 'approve_pg_fee'):
     231        new_session = obj['studycourse'].current_session + 1
     232        obj['studycourse'].current_session = new_session
    214233    # In some tests we don't have a students container
    215234    try:
Note: See TracChangeset for help on using the changeset viewer.