Use of account currency display symbol (#1724)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
9a4e4a0f8f
commit
6af25660d9
@@ -57,7 +57,8 @@
|
||||
<ng-template matStepLabel>REPAYMENT SCHEDULE</ng-template>
|
||||
|
||||
<mifosx-loans-account-schedule-step [loansAccountTemplate]="loansAccountAndTemplate"
|
||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount">
|
||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount"
|
||||
[currencyCode]="currencyCode">
|
||||
</mifosx-loans-account-schedule-step>
|
||||
|
||||
</mat-step>
|
||||
|
||||
@@ -30,6 +30,8 @@ export class EditLoansAccountComponent implements OnInit {
|
||||
collateralOptions: any;
|
||||
/** Loan Id */
|
||||
loanId: any;
|
||||
/** Currency Code */
|
||||
currencyCode: string;
|
||||
|
||||
/**
|
||||
* Sets loans account edit form.
|
||||
@@ -60,6 +62,7 @@ export class EditLoansAccountComponent implements OnInit {
|
||||
*/
|
||||
setTemplate($event: any) {
|
||||
this.loansAccountProductTemplate = $event;
|
||||
this.currencyCode = this.loansAccountProductTemplate.currency.code;
|
||||
if (this.loansAccountProductTemplate.loanProductId) {
|
||||
this.loansService.getLoansCollateralTemplateResource(this.loansAccountProductTemplate.loanProductId).subscribe((response: any) => {
|
||||
this.collateralOptions = response.loanCollateralOptions;
|
||||
|
||||
Reference in New Issue
Block a user