Commit 568000af authored by Jérome Perrin's avatar Jérome Perrin

added getTotalPrice & getTotalQuantity


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4110 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55ff74a3
...@@ -71,6 +71,16 @@ class Order(Delivery): ...@@ -71,6 +71,16 @@ class Order(Delivery):
""" """
return 0 return 0
def getTotalPrice(self, fast=1, **kw) :
"""Returns the total price for this Order. """
kw.setdefault('portal_type', self.getPortalOrderMovementTypeList())
return Delivery.getTotalPrice(self, fast=fast, **kw)
def getTotalQuantity(self, fast=1, **kw) :
"""Returns the total quantity for this Order. """
kw.setdefault('portal_type', self.getPortalOrderMovementTypeList())
return Delivery.getTotalQuantity(self, fast=fast, **kw)
def applyToOrderRelatedMovement(self, portal_type='Simulation Movement', \ def applyToOrderRelatedMovement(self, portal_type='Simulation Movement', \
method_id = 'expand'): method_id = 'expand'):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment