|
@ -16,6 +16,7 @@ import { |
|
|
isBefore, |
|
|
isBefore, |
|
|
isSameMonth, |
|
|
isSameMonth, |
|
|
isSameYear, |
|
|
isSameYear, |
|
|
|
|
|
isToday, |
|
|
max, |
|
|
max, |
|
|
min, |
|
|
min, |
|
|
set |
|
|
set |
|
@ -187,7 +188,9 @@ export class PortfolioCalculator { |
|
|
day = addDays(day, step); |
|
|
day = addDays(day, step); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!isToday(last(dates))) { |
|
|
dates.push(resetHours(end)); |
|
|
dates.push(resetHours(end)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
for (const item of transactionPointsBeforeEndDate[firstIndex - 1].items) { |
|
|
for (const item of transactionPointsBeforeEndDate[firstIndex - 1].items) { |
|
|
dataGatheringItems.push({ |
|
|
dataGatheringItems.push({ |
|
|