Commit 0ca04a6f authored by Kevin Deldycke's avatar Kevin Deldycke

Compare on date to exlude time inconsistencies (same purpose of a previous...

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
parent 629480cf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment