Ignore:
Timestamp:
19 Aug 2019, 19:37:55 (5 years ago)
Author:
Henrik Bettermann
Message:

Add payment category 'app_balance'.

Remove redundant doAfterApplicantPayment method.

File:
1 edited

Legend:

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

    r15492 r15555  
    4646        return
    4747
    48     def doAfterApplicantPayment(self):
    49         """Process applicant after payment was made.
    50         """
    51         if not (self.__parent__.special and self.__parent__.state == PAID):
    52             wf_info = IWorkflowInfo(self.__parent__)
    53             try:
    54                 wf_info.fireTransition('pay')
    55             except InvalidTransitionError:
    56                 msg = log = 'Error: %s' % sys.exc_info()[1]
    57                 return 'danger', msg, log
    58         log = 'successful payment: %s' % self.p_id
    59         msg = _('Payment successfully completed. Kindly submit application for processing.')
    60         flashtype = 'success'
    61         return flashtype, msg, log
    62 
    6348CustomApplicantOnlinePayment = attrs_to_fields(
    6449    CustomApplicantOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.