Changeset 12792 for main/waeup.ikoba


Ignore:
Timestamp:
19 Mar 2015, 11:26:26 (10 years ago)
Author:
Henrik Bettermann
Message:

We need to translate titles.

Define amount more precisely. We need this for the payment receipt.

File:
1 edited

Legend:

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

    r12786 r12792  
    295295    """
    296296    payment_id = schema.TextLine(
    297         title=u'Payment Identifier',
     297        title=_(u'Payment Identifier'),
    298298        default=None,
    299299        required=True,
     
    301301
    302302    title = schema.TextLine(
    303         title=u'Payment description.',
     303        title=_(u'Payment Description'),
    304304        default=u'',
    305305        required=True,
     
    307307
    308308    payer_id = schema.TextLine(
    309         title=u'Payer',
     309        title=_(u'Payer'),
    310310        default=None,
    311311        required=True,
     
    313313
    314314    payee_id = schema.TextLine(
    315         title=u'Payee',
     315        title=_(u'Payee'),
    316316        default=None,
    317317        required=False,
     
    319319
    320320    payable_id = schema.TextLine(
    321         title=u'ID of item/good being paid',
     321        title=_(u'ID of item/good being paid'),
    322322        default=None,
    323323        required=False,
     
    325325
    326326    gateway_service = schema.Choice(
    327         title=u'Payment Gateway',
     327        title=_(u'Payment Gateway'),
    328328        description=u'Payment gateway that handles this transaction.',
    329329        source=PaymentGatewayServicesSource(),
     
    340340
    341341    creation_date = schema.Datetime(
    342         title=_(u'Creation Datetime'),
     342        title=_(u'Creation Date'),
    343343        readonly=False,
    344344        required=False,
     
    346346
    347347    payment_date = schema.Datetime(
    348         title=_(u'Payment Datetime'),
     348        title=_(u'Payment Date'),
    349349        required=False,
    350350        readonly=False,
    351351        )
    352352
     353    amount = schema.Decimal(
     354        title=u'Amount',
     355        description=u'Total amount, includung any taxes, fees, etc.',
     356        required=True,
     357        default=decimal.Decimal('0.00'),
     358        )
     359
    353360    currency = schema.Choice(
    354         title=u'Currency',
     361        title=_(u'Currency'),
    355362        source=ISO_4217_CURRENCIES_VOCAB,
    356363        required=True,
     
    359366
    360367    payment_items = schema.Tuple(
    361         title=u'Tuple of IPaymentItems.',
     368        title=_(u'Tuple of IPaymentItems.'),
    362369        value_type=schema.Object(
    363370            title=u'Payment Item',
     
    369376        )
    370377
    371     amount = Attribute("Sum of amounts of items contained")
     378    #amount = Attribute("Sum of amounts of items contained")
    372379
    373380    def approve():
Note: See TracChangeset for help on using the changeset viewer.