add shipping info fields to order item interface
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3392 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
971cdfb80a
commit
22741de8b8
1 changed files with 8 additions and 0 deletions
|
@ -335,6 +335,8 @@ class IOrder(Interface):
|
||||||
netValues = Attribute(u'A collection of net total values (IValue objects)'
|
netValues = Attribute(u'A collection of net total values (IValue objects)'
|
||||||
u'of the order.')
|
u'of the order.')
|
||||||
total = Attribute(u'The total gross value (Decimal) of the order.')
|
total = Attribute(u'The total gross value (Decimal) of the order.')
|
||||||
|
orderDate = Attribute(u'The day the order was issued.')
|
||||||
|
orderType = Attribute(u'Some string used for identifying the type of the order.')
|
||||||
|
|
||||||
|
|
||||||
class IOrderItem(ITrack):
|
class IOrderItem(ITrack):
|
||||||
|
@ -348,6 +350,8 @@ class IOrderItem(ITrack):
|
||||||
required=True)
|
required=True)
|
||||||
|
|
||||||
product = Attribute(u'The product represented by this order item.')
|
product = Attribute(u'The product represented by this order item.')
|
||||||
|
productTitle = Attribute(u'Optional short description, especially '
|
||||||
|
u'useful for pseudo products.')
|
||||||
party = Attribute(u'The party (person, customer, session, ...) '
|
party = Attribute(u'The party (person, customer, session, ...) '
|
||||||
u'that is ordering the product.')
|
u'that is ordering the product.')
|
||||||
shop = Attribute(u'The shop from which the product is ordered.')
|
shop = Attribute(u'The shop from which the product is ordered.')
|
||||||
|
@ -355,6 +359,10 @@ class IOrderItem(ITrack):
|
||||||
unitPrice = Attribute(u'The basic unit price for one of the product '
|
unitPrice = Attribute(u'The basic unit price for one of the product '
|
||||||
u'items ordered.')
|
u'items ordered.')
|
||||||
fullPrice = Attribute(u'The full price for the quantity ordered.')
|
fullPrice = Attribute(u'The full price for the quantity ordered.')
|
||||||
|
quantityShipped = Attribute(u'The total quantity that has been shipped '
|
||||||
|
u'already.')
|
||||||
|
shippingInfo = Attribute(u'A list of mappings, with fields like: '
|
||||||
|
u'shippingId, shippingDate, quantity, packageId')
|
||||||
|
|
||||||
def remove():
|
def remove():
|
||||||
""" Remove the order item from the order or cart.
|
""" Remove the order item from the order or cart.
|
||||||
|
|
Loading…
Add table
Reference in a new issue