From 92f45abe607b92f6ce85aa2bc8de583158b74339 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 13 Sep 2006 16:24:08 +0000
Subject: [PATCH] at_last parameter uses latestTime so that we get all
 transaction for that day.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9892 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_accounting/ERP5Accounting_getParams.xml       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_getParams.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_getParams.xml
index 03684d2e87..71f00b2056 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_getParams.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_getParams.xml
@@ -99,17 +99,17 @@ if wants_from_date:\n
   if from_date :\n
     params[\'from_date\'] = from_date\n
 \n
-at_date = params.get(\'at_date\',\n
+at_date = selection_params.get(\'at_date\',\n
               preference.getPreferredAccountingTransactionAtDate())\n
 if at_date:\n
-  params[\'at_date\'] = at_date\n
+  params[\'at_date\'] = at_date.latestTime()\n
 \n
-section_category = params.get(\'section_category\',\n
+section_category = selection_params.get(\'section_category\',\n
                  preference.getPreferredAccountingTransactionSectionCategory())\n
 if section_category:\n
   params[\'section_category\'] = section_category\n
 \n
-simulation_state = params.get(\'simulation_state\',\n
+simulation_state = selection_params.get(\'simulation_state\',\n
              preference.getPreferredAccountingTransactionSimulationStateList())\n
 if simulation_state:\n
   params[\'simulation_state\'] = simulation_state\n
@@ -163,7 +163,7 @@ return dict(params)\n
                             <string>wants_from_date</string>
                             <string>ignore_cache</string>
                             <string>_getattr_</string>
-<string>context</string>
+                            <string>context</string>
                             <string>None</string>
                             <string>params_cache</string>
                             <string>dict</string>
-- 
2.30.9