2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

fix: adjust 'this month' cash flow option to start from current month

This commit is contained in:
AbleKSaju 2024-10-09 12:07:06 +05:30
parent 20a4a8c727
commit 3b2bf08265

View File

@ -29,7 +29,7 @@ export function getDatesAndPeriodList(period: PeriodKey): {
} else if (period === 'This Quarter') {
fromDate = toDate.minus({ months: 3 });
} else if (period === 'This Month') {
fromDate = toDate.minus({ months: 1 });
fromDate = toDate.startOf('month');
} else {
fromDate = toDate.minus({ days: 1 });
}