From 88b8ea7bacc9bc92db8c40f87e1e9d965620d087 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 30 Oct 2023 23:24:55 +0200 Subject: [PATCH] Feature Request: Report (Invoice) -> Group by Date (Quarterly #569 --- lib/ui/reports/reports_screen.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ui/reports/reports_screen.dart b/lib/ui/reports/reports_screen.dart index 5b9ced148..15877ebd8 100644 --- a/lib/ui/reports/reports_screen.dart +++ b/lib/ui/reports/reports_screen.dart @@ -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));