diff --git a/src/app/clients/clients-view/general-tab/general-tab.component.html b/src/app/clients/clients-view/general-tab/general-tab.component.html index 0d4e9e0ee..6a8fcb0b2 100644 --- a/src/app/clients/clients-view/general-tab/general-tab.component.html +++ b/src/app/clients/clients-view/general-tab/general-tab.component.html @@ -143,15 +143,21 @@ {{ 'labels.inputs.Original Loan' | translate }} - {{ element.originalLoan }} + + {{ element.originalLoan | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Loan Balance' | translate }} - {{ element.loanBalance | formatNumber }} + + {{ element.loanBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Amount Paid' | translate }} - {{ element.amountPaid | formatNumber }} + + {{ element.amountPaid | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Type' | translate }} @@ -264,11 +270,15 @@ {{ 'labels.inputs.Loan Balance' | translate }} - {{ element.loanBalance | formatNumber }} + + {{ element.loanBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Amount Paid' | translate }} - {{ element.accountBalance | formatNumber }} + + {{ element.accountBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Type' | translate }} @@ -332,7 +342,9 @@ {{ 'labels.inputs.Balance' | translate }} - {{ element.accountBalance | formatNumber }} + + {{ element.accountBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Actions' | translate }} @@ -465,7 +477,9 @@ {{ 'labels.inputs.Balance' | translate }} - {{ element.accountBalance | formatNumber }} + + {{ element.accountBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Actions' | translate }} @@ -579,7 +593,9 @@ {{ 'labels.inputs.Balance' | translate }} - {{ element.accountBalance | formatNumber }} + + {{ element.accountBalance | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' }} + {{ 'labels.inputs.Actions' | translate }} @@ -815,7 +831,9 @@ {{ 'labels.inputs.Total Value' | translate }} - {{ element.basePrice * element.quantity | formatNumber }} + {{ + element.basePrice * element.quantity | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' + }} @@ -824,7 +842,10 @@ {{ 'labels.inputs.Total Collateral Value' | translate }} - {{ (element.pctToBase * element.basePrice * element.quantity) / 100 | formatNumber }} + {{ + (element.pctToBase * element.basePrice * element.quantity) / 100 + | currency: element.currency?.code || 'USD' : 'symbol-narrow' : '1.2-2' + }} diff --git a/src/app/clients/clients-view/general-tab/general-tab.component.ts b/src/app/clients/clients-view/general-tab/general-tab.component.ts index ee85021a9..c85c11693 100644 --- a/src/app/clients/clients-view/general-tab/general-tab.component.ts +++ b/src/app/clients/clients-view/general-tab/general-tab.component.ts @@ -24,6 +24,7 @@ import { StatusLookupPipe } from '../../../pipes/status-lookup.pipe'; import { AccountsFilterPipe } from '../../../pipes/accounts-filter.pipe'; import { DateFormatPipe } from '../../../pipes/date-format.pipe'; import { FormatNumberPipe } from '../../../pipes/format-number.pipe'; +import { CurrencyPipe } from '@angular/common'; import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module'; /** @@ -52,7 +53,8 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module'; StatusLookupPipe, AccountsFilterPipe, DateFormatPipe, - FormatNumberPipe + FormatNumberPipe, + CurrencyPipe ] }) export class GeneralTabComponent {