Ignore:
Timestamp:
25 Mar 2021, 09:45:54 (4 years ago)
Author:
Henrik Bettermann
Message:

Add payment option (p_option) field to payment tickets and add
select box on online payment add form pages. Disable this feature
in the base package.

File:
1 edited

Legend:

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

    r15792 r16431  
    3838    DICT_NAME = 'PAYMENT_CATEGORIES'
    3939
     40class PaymentOptionSource(ContextualDictSourceFactoryBase):
     41    """A payment option source delivers all options of a payment.
     42
     43    """
     44    #: name of dict to deliver from kofa utils.
     45    DICT_NAME = 'PAYMENT_OPTIONS'
     46
    4047class CombiPaymentCategorySource(ContextualDictSourceFactoryBase):
    4148    """A payment category source delivers all categories of payments.
     
    6168        source = PaymentCategorySource(),
    6269        required = True,
     70        )
     71
     72    p_option = schema.Choice(
     73        title = _(u'Payment Option'),
     74        source = PaymentOptionSource(),
     75        required = False,
    6376        )
    6477
Note: See TracChangeset for help on using the changeset viewer.