Ignore:
Timestamp:
13 May 2019, 09:02:40 (6 years ago)
Author:
Henrik Bettermann
Message:

Extend message after successful schoolfee payment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/payments.py

    r13624 r15406  
    4747        return self.__parent__.__parent__
    4848
     49    def doAfterStudentPayment(self):
     50        """Process student after payment was made.
     51        """
     52        if self.p_current:
     53            error = self.redeemTicket()
     54            if error is not None:
     55                return 'danger', error, error
     56        log = 'successful %s payment: %s' % (self.p_category, self.p_id)
     57        msg = _('Payment successfully completed')
     58        if self.p_category in ('schoolfee',):
     59            msg += ('. Please proceed to library clearance, register your '
     60                   'courses online and proceed to your '
     61                   'level course adviser for validation.')
     62        flashtype = 'success'
     63        return flashtype, msg, log
     64
    4965CustomStudentOnlinePayment = attrs_to_fields(
    5066    CustomStudentOnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.