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

FCEOkene wants to hide the bed coordinates if maintenance fee is not yet paid. Thus we need additional property attributes which return the p_item (payment tickets) and the bed_coordinates attributes (bed tickets) by default and can be easily customized to hide this information in certain cases. bed_coordinates and p_item must be omitted on forms. The new display_ attributes are displayed instead.

All packages must now be adjusted.

The 'cost-benefit ratio' of these kinds of customizations is quite bad and we should think about declining such customization requests. However, I started customization and these are the changed made in the base package.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/payments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py

    r9864 r9984  
    5555
    5656    p_item = schema.TextLine(
    57         title = _(u'Payment Item'),
     57        title = u'',
    5858        default = None,
    5959        required = False,
     60        )
     61
     62    display_item = schema.TextLine(
     63        title = _(u'Payment Item'),
     64        required = False,
     65        readonly = True,
    6066        )
    6167
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py

    r9769 r9984  
    6565        return utils.PAYMENT_CATEGORIES[self.p_category]
    6666
     67    @property
     68    def display_item(self):
     69        return self.p_item
     70
    6771class OnlinePayment(Payment):
    6872    """This is an online payment.
     
    98102        return
    99103
    100 OnlinePayment = attrs_to_fields(OnlinePayment)
     104OnlinePayment = attrs_to_fields(OnlinePayment, omit=['display_item'])
Note: See TracChangeset for help on using the changeset viewer.