Commit 06fe8a95 authored by Jérome Perrin's avatar Jérome Perrin

Fix getting the accounting period start date when the date passed is at a period boundary

parent c908095b
...@@ -73,7 +73,7 @@ def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n ...@@ -73,7 +73,7 @@ def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n
\'started\', \'stopped\',\n \'started\', \'stopped\',\n
\'closing\', \'delivered\'):\n \'closing\', \'delivered\'):\n
continue\n continue\n
if ap.getStartDate() <= date <= ap.getStopDate():\n if ap.getStartDate().earliestTime() <= date <= ap.getStopDate().latestTime():\n
period_start_date = ap.getStartDate().earliestTime()\n period_start_date = ap.getStartDate().earliestTime()\n
if period_start_date:\n if period_start_date:\n
break\n break\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