Browse Source

Implement ROI portfolio calculator

pull/7993/head
Thomas Kaul 2 weeks ago
parent
commit
9e5324203e
  1. 15
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
  2. 15
      apps/client/src/app/pages/portfolio/analysis/analysis-page.html

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

@ -149,27 +149,24 @@
<div class="d-flex py-1"> <div class="d-flex py-1">
<div class="flex-grow-1 indent-1 text-truncate"> <div class="flex-grow-1 indent-1 text-truncate">
<ng-container i18n>Net Performance</ng-container> <ng-container i18n>Net Performance</ng-container>
@if ( @switch (user?.settings?.performanceCalculationType) {
user?.settings?.performanceCalculationType === @case (PerformanceCalculationType.ROAI) {
PerformanceCalculationType.ROAI
) {
<abbr <abbr
class="d-none d-sm-inline-block initialism ms-2 text-body-secondary" class="d-none d-sm-inline-block initialism ms-2 text-body-secondary"
i18n-title i18n-title
title="Return on Average Investment (total return with dividends)" title="Return on Average Investment (total return with dividends)"
>(ROAI)</abbr >(ROAI)</abbr
> >
} @else if ( }
user?.settings?.performanceCalculationType === @case (PerformanceCalculationType.ROI) {
PerformanceCalculationType.ROI
) {
<abbr <abbr
class="d-none d-sm-inline-block initialism ml-2 text-muted" class="d-none d-sm-inline-block initialism ms-2 text-body-secondary"
i18n-title i18n-title
title="Return on Investment (total return with dividends)" title="Return on Investment (total return with dividends)"
>(ROI)</abbr >(ROI)</abbr
> >
} }
}
</div> </div>
<div class="flex-column flex-wrap justify-content-end"> <div class="flex-column flex-wrap justify-content-end">
<gf-value <gf-value

15
apps/client/src/app/pages/portfolio/analysis/analysis-page.html

@ -254,27 +254,24 @@
<div class="d-flex ms-3 py-1"> <div class="d-flex ms-3 py-1">
<div class="flex-grow-1 me-2 text-truncate"> <div class="flex-grow-1 me-2 text-truncate">
<ng-container i18n>Net Performance</ng-container> <ng-container i18n>Net Performance</ng-container>
@if ( @switch (user?.settings?.performanceCalculationType) {
user?.settings?.performanceCalculationType === @case (PerformanceCalculationType.ROAI) {
PerformanceCalculationType.ROAI
) {
<abbr <abbr
class="d-none d-sm-inline-block initialism ms-2 text-body-secondary" class="d-none d-sm-inline-block initialism ms-2 text-body-secondary"
i18n-title i18n-title
title="Return on Average Investment (total return with dividends)" title="Return on Average Investment (total return with dividends)"
>(ROAI)</abbr >(ROAI)</abbr
> >
} @else if ( }
user?.settings?.performanceCalculationType === @case (PerformanceCalculationType.ROI) {
PerformanceCalculationType.ROI
) {
<abbr <abbr
class="d-none d-sm-inline-block initialism ml-2 text-muted" class="d-none d-sm-inline-block initialism ms-2 text-body-secondary"
i18n-title i18n-title
title="Return on Investment (total return with dividends)" title="Return on Investment (total return with dividends)"
>(ROI)</abbr >(ROI)</abbr
> >
} }
}
</div> </div>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value

Loading…
Cancel
Save