Changeset 15555


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

Add payment category 'app_balance'.

Remove redundant doAfterApplicantPayment method.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 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'])
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r15465 r15555  
    4545        'hostel_maintenance': 'Hostel Accommodation Fee',
    4646        'application': 'Application Fee',
     47        'app_balance': 'Application Fee Balance',
    4748        'bed_allocation': 'Bed Allocation Fee',
    4849        'transfer': 'Transfer Fee',
Note: See TracChangeset for help on using the changeset viewer.