Ignore:
Timestamp:
24 Feb 2013, 17:41:41 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize getPaymentItem and getBedCoordinates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py

    r9461 r9989  
    1919"""
    2020from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
     21from waeup.fceokene.interfaces import MessageFactory as _
    2122
    2223class CustomKofaUtils(NigeriaKofaUtils):
     
    3435        'bec': 'Bachelor of Education Certificate Programmes',
    3536        }
     37
     38    def getPaymentItem(self, payment):
     39        """Return payment item.
     40
     41        Bed coordinates are only visible after payment.
     42        """
     43        if 'maintenance' in payment.p_category and payment.p_state != 'paid':
     44            return _('(visible after successful payment)')
     45        return payment.p_item
Note: See TracChangeset for help on using the changeset viewer.