Commit 4338c899 authored by Sebastien Robin's avatar Sebastien Robin

add more comments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent adc45cb5
......@@ -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',
......
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