Ignore:
Timestamp:
12 May 2012, 16:27:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Managers do not 'pay' fees for applicants and students, they approve payments made.

Add respective transitions.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r8428 r8434  
    730730        transition.
    731731        """
    732         allowed_transitions = self.wf_info.getManualTransitions()
     732        allowed_transitions = [t for t in self.wf_info.getManualTransitions()
     733            if not t[0] == 'pay']
    733734        return [dict(name='', title=_('No transition'))] +[
    734735            dict(name=x, title=y) for x, y in allowed_transitions]
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r8431 r8434  
    4545        wf_info = IWorkflowInfo(self.__parent__)
    4646        try:
    47             wf_info.fireTransition('pay')
     47            wf_info.fireTransition('approve')
    4848        except InvalidTransitionError:
    4949            msg = log = 'Error: %s' % sys.exc_info()[1]
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py

    r8373 r8434  
    6565        transition_id = 'pay',
    6666        title = _('Pay application fee'),
    67         msg = _('Fee paid'),
     67        msg = _('Payment made'),
     68        source = STARTED,
     69        destination = PAID),
     70
     71    Transition(
     72        transition_id = 'approve',
     73        title = _('Approve payment'),
     74        msg = _('Payment approved'),
    6875        source = STARTED,
    6976        destination = PAID),
Note: See TracChangeset for help on using the changeset viewer.