Changeset 9989


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

Customize getPaymentItem and getBedCoordinates.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
2 edited

Legend:

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

    r9982 r9989  
    311311        return text
    312312
     313    def getBedCoordinates(self, bedticket):
     314        """Return bed coordinates.
     315
     316        Bed coordinates are invisible in FCEOkene.
     317        """
     318        return _('(see payment slip)')
     319
    313320    # FCEOkene prefix
    314321    STUDENT_ID_PREFIX = u'K'
  • 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.