From 0ca04a6f709b69ae0f4faa917649120741f5e386 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Fri, 14 Apr 2006 20:41:39 +0000 Subject: [PATCH] Compare on date to exlude time inconsistencies (same purpose of a previous removed commit but cleaner). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6679 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../accounting_workflow/scripts/validateTransaction.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml index 987f526709..4dcacda6e2 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml @@ -137,7 +137,7 @@ else:\n valid_date = True\n for apd in openned_accounting_period_list:\n apd = apd.getObject()\n - if apd.getStartDate() <= transaction_date <= apd.getStopDate():\n + if apd.getStartDate().Date() <= transaction_date.Date() <= apd.getStopDate().Date():\n valid_date = True\n if not valid_date :\n raiseError("Date is not in an openned Accounting Period "\n @@ -157,7 +157,7 @@ else:\n valid_date = True\n for apd in openned_accounting_period_list:\n apd = apd.getObject()\n - if apd.getStartDate() <= transaction_date <= apd.getStopDate():\n + if apd.getStartDate().Date() <= transaction_date.Date() <= apd.getStopDate().Date():\n valid_date = True\n if not valid_date :\n raiseError("Date is not in an openned Accounting Period "+\n -- 2.30.9