Browse Source

Remove gross performance

pull/3393/head
Thomas Kaul 1 year ago
parent
commit
45cb2128f3
  1. 4
      apps/api/src/app/portfolio/portfolio.service.ts
  2. 24
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
  3. 2
      libs/common/src/lib/interfaces/portfolio-summary.interface.ts

4
apps/api/src/app/portfolio/portfolio.service.ts

@ -1596,8 +1596,6 @@ export class PortfolioService {
userId
});
console.log(performance);
const {
netPerformance,
netPerformancePercentage,
@ -1725,8 +1723,6 @@ export class PortfolioService {
.minus(emergencyFundPositionsValueInBaseCurrency)
.toNumber(),
grossPerformance: new Big(netPerformance).plus(fees).toNumber(),
grossPerformancePercentage: undefined, // TODO
grossPerformancePercentageWithCurrencyEffect: undefined, // TODO
grossPerformanceWithCurrencyEffect: new Big(
netPerformanceWithCurrencyEffect
)

24
apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html

@ -80,30 +80,6 @@
/>
</div>
</div>
<div class="flex-nowrap px-3 py-1 row">
<div class="align-items-center d-flex flex-grow-1 ml-3 text-truncate">
<ng-container i18n>Gross Performance</ng-container>
<abbr
class="initialism ml-2 text-muted"
title="Time-Weighted Rate of Return"
>(TWR)</abbr
>
</div>
<div class="flex-column flex-wrap justify-content-end">
<gf-value
class="justify-content-end"
position="end"
[colorizeSign]="true"
[isPercent]="true"
[locale]="locale"
[value]="
isLoading
? undefined
: summary?.grossPerformancePercentageWithCurrencyEffect
"
/>
</div>
</div>
<div class="flex-nowrap px-3 py-1 row">
<div class="flex-grow-1 text-truncate" i18n>Fees</div>
<div class="d-flex justify-content-end">

2
libs/common/src/lib/interfaces/portfolio-summary.interface.ts

@ -18,8 +18,6 @@ export interface PortfolioSummary extends PortfolioPerformance {
fireWealth: number;
firstOrderDate: Date;
grossPerformance: number;
grossPerformancePercentage: number;
grossPerformancePercentageWithCurrencyEffect: number;
grossPerformanceWithCurrencyEffect: number;
interest: number;
items: number;

Loading…
Cancel
Save