From 630ed0b10fa868b2fb8323c536a8c9e4d7685b7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 5 Apr 2006 17:03:48 +0000
Subject: [PATCH] get dates, section and simulation states from selection (for
 reports)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6475 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Account_getAccountingTransactionList.xml         | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml
index 46b03e8a00..d431ee29f6 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml
@@ -73,10 +73,14 @@ r_ = lambda x: context.Base_getRoundValue(x, precision)\n
 \n
 # Read settings from user preference\n
 preference       = context.getPortalObject().portal_preferences\n
-simulation_state = preference.getPreferredAccountingTransactionSimulationStateList()\n
-section_category = preference.getPreferredAccountingTransactionSectionCategory()\n
-from_date        = preference.getPreferredAccountingTransactionFromDate()\n
-at_date          = preference.getPreferredAccountingTransactionAtDate()\n
+simulation_state = kw.get(\'simulation_state\', \n
+                      preference.getPreferredAccountingTransactionSimulationStateList())\n
+section_category = kw.get(\'section_category\', \n
+                      preference.getPreferredAccountingTransactionSectionCategory())\n
+from_date        = kw.get(\'from_date\',\n
+                      preference.getPreferredAccountingTransactionFromDate())\n
+at_date          = kw.get(\'at_date\',\n
+                      preference.getPreferredAccountingTransactionAtDate())\n
 \n
 # Build the common inventory dict\n
 params = {}\n
-- 
2.30.9