From 0f337f5710d923081e14227f8e99f8d7826e48f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 21 Jul 2010 15:09:02 +0000
Subject: [PATCH] display the kw used in src__=1

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37224 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml   | 2 +-
 .../portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml    | 2 +-
 bt5/erp5_budget/bt/revision                                     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml
index fe3640ed9c..8ffdd825eb 100644
--- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml
+++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getConsumedBudget.xml
@@ -66,7 +66,7 @@ if at_date:\n
 \n
  # XXX use getBudgetConsumptionMethod ?\n
 if src__:\n
-  return context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw)\n
+  return \'-- %s\\n%s\' % (kw, context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw))\n
 return (context.portal_simulation.getCurrentInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n
 </string> </value>
         </item>
diff --git a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml
index 3fa7703a89..3f5cf975e3 100644
--- a/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml
+++ b/bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetCell_getEngagedBudget.xml
@@ -70,7 +70,7 @@ kw.setdefault(\'explanation_simulation_state\', context.getPortalReservedInvento
 \n
 # XXX use getBudgetConsumptionMethod ?\n
 if src__:\n
-  return context.portal_simulation.getInventoryAssetPrice(src__=src__, **kw)\n
+  return \'-- %s\\n%s\' % (kw, context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw))\n
 return (context.portal_simulation.getInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n
 </string> </value>
         </item>
diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision
index e6d11f621d..6eac4a65cd 100644
--- a/bt5/erp5_budget/bt/revision
+++ b/bt5/erp5_budget/bt/revision
@@ -1 +1 @@
-291
\ No newline at end of file
+292
\ No newline at end of file
-- 
2.30.9