Ignore:
Timestamp:
13 Oct 2019, 19:15:33 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement combi payments (tests will follow).

File:
1 edited

Legend:

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

    r13012 r15664  
    3737    DICT_NAME = 'PAYMENT_CATEGORIES'
    3838
     39class CombiPaymentCategorySource(ContextualDictSourceFactoryBase):
     40    """A payment category source delivers all categories of payments.
     41
     42    """
     43    #: name of dict to deliver from kofa utils.
     44    DICT_NAME = 'COMBI_PAYMENT_CATEGORIES'
     45
    3946class IPaymentsContainer(IKofaObject):
    4047    """A container for all kind of payment objects.
     
    5966        default = None,
    6067        required = False,
     68        )
     69
     70    p_combi = schema.List(
     71        title = _(u'Combi Payment'),
     72        value_type = schema.Choice(
     73            source = CombiPaymentCategorySource(),
     74            ),
     75        required = False,
     76        defaultFactory=list,
    6177        )
    6278
Note: See TracChangeset for help on using the changeset viewer.