Ignore:
Timestamp:
11 Nov 2011, 06:12:45 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable payment approval by officers also for acceptance fee payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py

    r5594 r7069  
    6363        wftool.doActionFor(student,next_transition)
    6464
     65elif doc.category == 'acceptance':
     66    if context.getStudentReviewState() in ('admitted', 'objection_raised'):
     67        logger.info('%s paid acceptance fee' % (student_id))
     68        current = DateTime.DateTime()
     69        wf = context.portal_workflow
     70        info = context.getClearanceInfo()
     71        wftool.doActionFor(student,'enter_clearance_pin')
     72        context.waeup_tool.changeWorkflowState(info['clear'], 'opened')
     73        context.waeup_tool.changeWorkflowState(info['app'], 'closed')
     74        dc = {}
     75        app_doc = info['app_doc']
     76        #dc['clr_ac_pin'] = pay_doc.order_id
     77        dc['clr_ac_date'] = current
     78        dc['entry_date'] = current
     79        info['clear_doc'].edit(mapping = dc)
     80        if info['penalty']:
     81            logger.info('%s started late clearance' % (info['id']))
     82
    6583logger.info('%s approves epayment for %s' % (member,student_id))
    6684review_state = wftool.getInfoFor(context,'review_state',None)
Note: See TracChangeset for help on using the changeset viewer.