Ignore:
Timestamp:
8 Feb 2019, 08:26:19 (6 years ago)
Author:
Henrik Bettermann
Message:

Customize msg string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/payment.py

    r9990 r15324  
    4141        return
    4242
     43    def doAfterApplicantPayment(self):
     44        """Process applicant after payment was made.
     45        """
     46        if not (self.__parent__.special and self.__parent__.state == PAID):
     47            wf_info = IWorkflowInfo(self.__parent__)
     48            try:
     49                wf_info.fireTransition('pay')
     50            except InvalidTransitionError:
     51                msg = log = 'Error: %s' % sys.exc_info()[1]
     52                return 'danger', msg, log
     53        log = 'successful payment: %s' % self.p_id
     54        msg = _('Payment successfully completed. Kindly submit application for processing.')
     55        flashtype = 'success'
     56        return flashtype, msg, log
     57
    4358CustomApplicantOnlinePayment = attrs_to_fields(
    4459    CustomApplicantOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.