- Timestamp:
- 28 Dec 2022, 09:57:26 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/payments/interfaces.py
r17242 r17246 18 18 from zope.interface import Attribute 19 19 from zope import schema 20 from waeup.kofa.interfaces import SimpleKofaVocabulary 20 from waeup.kofa.interfaces import ( 21 SimpleKofaVocabulary, ContextualDictSourceFactoryBase) 21 22 from waeup.kofa.payments.interfaces import IPayment 22 23 from kofacustom.nigeria.interfaces import MessageFactory as _ 24 25 class CurrencySymbolSource(ContextualDictSourceFactoryBase): 26 """A payment category source delivers all categories of payments. 27 28 """ 29 DICT_NAME = 'CURRENCY_DICT' 23 30 24 31 class INigeriaOnlinePayment(IPayment): … … 56 63 57 64 # Only defined in kofacustom.nigeria package 65 66 p_currency = schema.Choice( 67 title = _(u'Currency'), 68 source = CurrencySymbolSource(), 69 required = False, 70 default = 'NGN', 71 ) 58 72 59 73 r_pay_reference = schema.TextLine( … … 125 139 INigeriaOnlinePayment['net_amt'].order = INigeriaOnlinePayment[ 126 140 'amount_auth'].order 141 INigeriaOnlinePayment['p_currency'].order = INigeriaOnlinePayment[ 142 'amount_auth'].order
Note: See TracChangeset for help on using the changeset viewer.