Commit 670804d7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Assume None as 0.0 in _getTargetTotalPrice.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af0baeb7
...@@ -211,7 +211,9 @@ Une ligne tarifaire.""" ...@@ -211,7 +211,9 @@ Une ligne tarifaire."""
def _getTargetTotalPrice(self, context): def _getTargetTotalPrice(self, context):
if not self.hasCellContent(): if not self.hasCellContent():
return self.getTargetQuantity() * self.getPrice(context=context) target_quantity = self.getTargetQuantity() or 0.0
price = self.getPrice(context=context) or 0.0
return target_quantity * price
else: else:
# Use MySQL # Use MySQL
aggregate = self.DeliveryLine_zGetTotal()[0] aggregate = self.DeliveryLine_zGetTotal()[0]
......
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