Skip to content

Commit

Permalink
Avoid the final report in the current progress reports grid (#1617)
Browse files Browse the repository at this point in the history
Avoid final reports for projects that end at the end of the quarter.
Their start date is also their the end date. When that's also the end of the quarter they are also matched here.
So this ensures there is at least one day in between.
  • Loading branch information
CarsonF authored Nov 4, 2024
1 parent 8876771 commit cd2336c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ export const ProgressReportsGrid = ({
filter: {
start: {
afterInclusive: quarter.startOf('quarter'),
// Avoid final reports for projects that end at the end of the quarter.
// Their start date is the end date.
// So this ensures there is at least one day in between.
before: quarter.startOf('quarter').plus({ day: 1 }),
},
end: {
beforeInclusive: quarter.endOf('quarter'),
Expand Down

0 comments on commit cd2336c

Please sign in to comment.