From 8075243723b0714c9db0a4fc2121bbe996fae014 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 8 May 2006 12:23:22 +0000
Subject: [PATCH] Always return a float in getDeliveryQuantity()

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7106 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/SimulationMovement.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py
index cfcc3c9ad4..4460026d6c 100644
--- a/product/ERP5/Document/SimulationMovement.py
+++ b/product/ERP5/Document/SimulationMovement.py
@@ -417,7 +417,7 @@ class SimulationMovement(Movement):
     """
       Returns the quantity of related delivery(s)
     """
-    quantity = None
+    quantity = 0.0
     delivery_movement = self.getDeliveryValue()
     if delivery_movement is not None:
       quantity = delivery_movement.getQuantity()
-- 
2.30.9