Skip to content

Commit

Permalink
Feature Request: Report (Invoice) -> Group by Date (Quarterly #569
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Oct 30, 2023
1 parent d3ec7a6 commit 88b8ea7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ui/reports/reports_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,9 @@ class ReportResult {
customStartDate = group;
if (reportState.subgroup == kReportGroupDay) {
customEndDate = convertDateTimeToSqlDate(date);
} else if (reportState.subgroup == kReportGroupQuarter) {
customEndDate =
convertDateTimeToSqlDate(addDays(addMonths(date!, 3), -1));
} else if (reportState.subgroup == kReportGroupMonth) {
customEndDate =
convertDateTimeToSqlDate(addDays(addMonths(date!, 1), -1));
Expand Down

0 comments on commit 88b8ea7

Please sign in to comment.