Commit 08f62d2c authored by Jérome Perrin's avatar Jérome Perrin

use SQLCatalog by default for Total Price / Quantity calculation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 568000af
......@@ -118,7 +118,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
"""
return self.aq_parent.isAccountable() and (not self.hasCellContent())
def _getTotalPrice(self, context, fast=0):
def _getTotalPrice(self, context, fast=1):
""" Returns the total price for this line or the cells it contains. """
base_id = 'movement'
if not self.hasCellContent(base_id=base_id):
......@@ -135,7 +135,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
security.declareProtected( Permissions.AccessContentsInformation,
'getTotalQuantity')
def getTotalQuantity(self, fast=0):
def getTotalQuantity(self, fast=1):
"""
Returns the quantity if no cell or the total quantity if cells
"""
......
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