|
|
@ -411,6 +411,7 @@ export abstract class PortfolioCalculator { |
|
|
averagePrice: item.averagePrice, |
|
|
averagePrice: item.averagePrice, |
|
|
currency: item.currency, |
|
|
currency: item.currency, |
|
|
dataSource: item.dataSource, |
|
|
dataSource: item.dataSource, |
|
|
|
|
|
dateOfFirstActivity: item.dateOfFirstActivity, |
|
|
dividend: totalDividend, |
|
|
dividend: totalDividend, |
|
|
dividendInBaseCurrency: totalDividendInBaseCurrency, |
|
|
dividendInBaseCurrency: totalDividendInBaseCurrency, |
|
|
fee: item.fee, |
|
|
fee: item.fee, |
|
|
@ -998,6 +999,7 @@ export abstract class PortfolioCalculator { |
|
|
averagePrice: newQuantity.eq(0) |
|
|
averagePrice: newQuantity.eq(0) |
|
|
? new Big(0) |
|
|
? new Big(0) |
|
|
: investment.div(newQuantity).abs(), |
|
|
: investment.div(newQuantity).abs(), |
|
|
|
|
|
dateOfFirstActivity: oldAccumulatedSymbol.dateOfFirstActivity, |
|
|
dividend: new Big(0), |
|
|
dividend: new Big(0), |
|
|
fee: oldAccumulatedSymbol.fee.plus(fee), |
|
|
fee: oldAccumulatedSymbol.fee.plus(fee), |
|
|
feeInBaseCurrency: |
|
|
feeInBaseCurrency: |
|
|
@ -1020,6 +1022,7 @@ export abstract class PortfolioCalculator { |
|
|
tags, |
|
|
tags, |
|
|
activitiesCount: 1, |
|
|
activitiesCount: 1, |
|
|
averagePrice: unitPrice, |
|
|
averagePrice: unitPrice, |
|
|
|
|
|
dateOfFirstActivity: date, |
|
|
dividend: new Big(0), |
|
|
dividend: new Big(0), |
|
|
firstBuyDate: date, |
|
|
firstBuyDate: date, |
|
|
includeInHoldings: INVESTMENT_ACTIVITY_TYPES.includes(type), |
|
|
includeInHoldings: INVESTMENT_ACTIVITY_TYPES.includes(type), |
|
|
|