From 1d3b9ac982941243f99fb1ab4f295e5c9368b482 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Tue, 11 Mar 2008 13:49:55 +0000 Subject: [PATCH] priced_quantity should be defined on supplies, not the resource git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19792 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Resource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py index 376fd977d2..d8355c3331 100644 --- a/product/ERP5/Document/Resource.py +++ b/product/ERP5/Document/Resource.py @@ -593,6 +593,7 @@ class Resource(XMLMatrix, Variated): 'exclusive_discount_ratio': None, 'variable_additional_price': [], 'non_discountable_additional_price': [], + 'priced_quantity': None, } if mapped_value is None: return price_parameter_dict @@ -722,7 +723,7 @@ class Resource(XMLMatrix, Variated): unit_base_price = unit_base_price * sum_surcharge_ratio # Divide by the priced quantity if unit_base_price is not None: - priced_quantity = self.getPricedQuantity() + priced_quantity = price_parameter_dict['priced_quantity'] unit_base_price = unit_base_price / priced_quantity # Return result if unit_base_price is not None: -- 2.30.9