From dae8e42107687ae7ead5659a237d9fe5b24664a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 6 Jul 2009 14:34:44 +0000
Subject: [PATCH] propagate parameters to getCurrentBalance, this is usefull
 for at_date or to_date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27974 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BudgetCell.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/BudgetCell.py b/product/ERP5/Document/BudgetCell.py
index 2d4aa210a1..dd36cab7a5 100644
--- a/product/ERP5/Document/BudgetCell.py
+++ b/product/ERP5/Document/BudgetCell.py
@@ -94,11 +94,11 @@ class BudgetCell(Predicate, MetaNode):
       return self.portal_simulation.getCurrentInventory(**kw)
 
     security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentBalance')
-    def getCurrentBalance(self):
+    def getCurrentBalance(self, **kw):
       """
       Returns current balance
       """
-      return self.getQuantity(0.0) + self.getCurrentInventory()
+      return self.getQuantity(0.0) + self.getCurrentInventory(**kw)
 
     security.declareProtected(Permissions.AccessContentsInformation, 'getConsumedBudget')
     def getConsumedBudget(self, src__=0):
-- 
2.30.9