Feature Request: Report (Invoice) -> Group by Date (Quarterly #569

This commit is contained in:
Hillel Coren 2023-10-30 23:24:55 +02:00
parent d3ec7a6769
commit 88b8ea7bac
1 changed files with 3 additions and 0 deletions

View File

@ -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));