From edbce1e13dc67ed3c1998719e1d441cfebc02b39 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 8 Jun 2004 17:46:47 +0000
Subject: [PATCH] Round a price value in getGroupCriterion.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@975 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/InvoiceCell.py | 2 +-
 product/ERP5/Document/InvoiceLine.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/InvoiceCell.py b/product/ERP5/Document/InvoiceCell.py
index d908ed1e16..f3a1dbfd1d 100755
--- a/product/ERP5/Document/InvoiceCell.py
+++ b/product/ERP5/Document/InvoiceCell.py
@@ -154,4 +154,4 @@ Une ligne tarifaire."""
       """
         Return the criterion for grouping. This should be overriden by each class.
       """
-      return self.getPrice()
+      return int(round(self.getPrice() * 100))
diff --git a/product/ERP5/Document/InvoiceLine.py b/product/ERP5/Document/InvoiceLine.py
index 5cd10d2d09..f397921fbd 100755
--- a/product/ERP5/Document/InvoiceLine.py
+++ b/product/ERP5/Document/InvoiceLine.py
@@ -164,4 +164,4 @@ Une ligne tarifaire."""
       """
         Return the criterion for grouping. This should be overriden by each class.
       """
-      return self.getPrice()
+      return int(round(self.getPrice() * 100))
-- 
2.30.9