|
@ -474,16 +474,18 @@ export class PortfolioService { |
|
|
new Big(currentPosition.marketPrice).mul(currentPosition.quantity) |
|
|
new Big(currentPosition.marketPrice).mul(currentPosition.quantity) |
|
|
); |
|
|
); |
|
|
if (currentPosition.grossPerformance) { |
|
|
if (currentPosition.grossPerformance) { |
|
|
hasErrors = true; |
|
|
|
|
|
grossPerformance = grossPerformance.plus( |
|
|
grossPerformance = grossPerformance.plus( |
|
|
currentPosition.grossPerformance |
|
|
currentPosition.grossPerformance |
|
|
); |
|
|
); |
|
|
|
|
|
} else { |
|
|
|
|
|
hasErrors = true; |
|
|
} |
|
|
} |
|
|
if (currentPosition.grossPerformancePercentage) { |
|
|
if (currentPosition.grossPerformancePercentage) { |
|
|
hasErrors = true; |
|
|
|
|
|
grossPerformancePercentage = grossPerformancePercentage.mul( |
|
|
grossPerformancePercentage = grossPerformancePercentage.mul( |
|
|
currentPosition.grossPerformancePercentage.plus(1) |
|
|
currentPosition.grossPerformancePercentage.plus(1) |
|
|
); |
|
|
); |
|
|
|
|
|
} else { |
|
|
|
|
|
hasErrors = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|