From 4338c899b0db8e198642b9c065457f2ff0bec7bb Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 19 Sep 2006 20:03:41 +0000 Subject: [PATCH] add more comments git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10189 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Delivery.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index c2b873942a..c4966d4778 100644 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -120,6 +120,9 @@ class Delivery(XMLObject, ImmobilisationDelivery): if the `fast` argument is set to a true value, then it use SQLCatalog to compute the price, otherwise it sums the total price of objects one by one. + + So if the order is not in the catalog, getTotalPrice(fast=1) + will return 0, this is not a bug. """ if not fast : kw.setdefault( 'portal_type', @@ -140,6 +143,9 @@ class Delivery(XMLObject, ImmobilisationDelivery): if the `fast` argument is set to a true value, then it use SQLCatalog to compute the quantity, otherwise it sums the total quantity of objects one by one. + + So if the order is not in the catalog, getTotalQuantity(fast=1) + will return 0, this is not a bug. """ if not fast : kw.setdefault('portal_type', -- 2.30.9