Index: WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py	(revision 6984)
+++ WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py	(revision 7069)
@@ -63,4 +63,22 @@
         wftool.doActionFor(student,next_transition)
 
+elif doc.category == 'acceptance':
+    if context.getStudentReviewState() in ('admitted', 'objection_raised'):
+        logger.info('%s paid acceptance fee' % (student_id))
+        current = DateTime.DateTime()
+        wf = context.portal_workflow
+        info = context.getClearanceInfo()
+        wftool.doActionFor(student,'enter_clearance_pin')
+        context.waeup_tool.changeWorkflowState(info['clear'], 'opened')
+        context.waeup_tool.changeWorkflowState(info['app'], 'closed')
+        dc = {}
+        app_doc = info['app_doc']
+        #dc['clr_ac_pin'] = pay_doc.order_id
+        dc['clr_ac_date'] = current
+        dc['entry_date'] = current
+        info['clear_doc'].edit(mapping = dc)
+        if info['penalty']:
+            logger.info('%s started late clearance' % (info['id']))
+
 logger.info('%s approves epayment for %s' % (member,student_id))
 review_state = wftool.getInfoFor(context,'review_state',None)
