From 389d29d548f9e521a3311fe65952f0acc4bd55b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 6 Jul 2010 15:19:15 +0000 Subject: [PATCH] return quantity even if 0 git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@36902 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/TradeModelLine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/TradeModelLine.py b/product/ERP5/Document/TradeModelLine.py index 0123fa00c0..03207428fe 100644 --- a/product/ERP5/Document/TradeModelLine.py +++ b/product/ERP5/Document/TradeModelLine.py @@ -83,8 +83,8 @@ class TradeModelLine(MappedValue, XMLMatrix, Amount, AmountGeneratorMixin): result = self._baseGetMappedValuePropertyList() if result: return result - if self._baseGetQuantity(): # If quantity is defined, then tax works as transformed resource - return ('quantity', 'price', ) + if self._baseGetQuantity() is not None: # If quantity is defined, then tax works as transformed resource + return ('quantity', 'price', 'step') # Else tax provides only a ratio on amount return ('price', 'efficiency') -- 2.30.9