mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
fix the data of last quarter not displayed when there is only one month in the last quarter in trend analysis
This commit is contained in:
+1
-1
@@ -528,7 +528,7 @@ export function getAllQuartersStartAndEndUnixTimes(startYearMonth: Year0BasedMon
|
|||||||
return allYearQuarterTimes;
|
return allYearQuarterTimes;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let year = range.startYearMonth.year, month0base = range.startYearMonth.month0base; year < range.endYearMonth.year || (year === range.endYearMonth.year && ((month0base / 3) <= (range.endYearMonth.month0base / 3))); ) {
|
for (let year = range.startYearMonth.year, month0base = range.startYearMonth.month0base; year < range.endYearMonth.year || (year === range.endYearMonth.year && (Math.floor(month0base / 3) <= Math.floor(range.endYearMonth.month0base / 3))); ) {
|
||||||
const yearQuarter: YearQuarter = {
|
const yearQuarter: YearQuarter = {
|
||||||
year: year,
|
year: year,
|
||||||
quarter: Math.floor((month0base / 3)) + 1
|
quarter: Math.floor((month0base / 3)) + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user