Skip to content

Commit

Permalink
include last month in computation for financial extract
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Apr 28, 2021
1 parent 1bce469 commit ac5bf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/views.py
Expand Up @@ -266,7 +266,7 @@ def createMissionRow(mission, start_date, end_date):
missionRow.append(mission.analytic_code.description if mission.analytic_code else "")
missionRow.append(mission.billing_mode or "")
missionRow.append(mission.price or 0)
missionRow.extend(mission.done_work_period(None, end_date))
missionRow.extend(mission.done_work_period(None, nextMonth(end_date)))
last_timesheet = Timesheet.objects.filter(mission=mission).aggregate(Max("working_date"))["working_date__max"]
missionRow.append(last_timesheet.isoformat() if last_timesheet else "")
return missionRow
Expand Down

0 comments on commit ac5bf93

Please sign in to comment.