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
@@ -58,7 +58,7 @@
|
||||
<ng-template matStepLabel>REPAYMENT SCHEDULE</ng-template>
|
||||
|
||||
<mifosx-loans-account-schedule-step #loanAccountSchedule [loansAccountTemplate]="loansAccountTemplate"
|
||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount">
|
||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" [currencyCode]="currencyCode">
|
||||
</mifosx-loans-account-schedule-step>
|
||||
|
||||
</mat-step>
|
||||
|
||||
@@ -41,6 +41,8 @@ export class CreateLoansAccountComponent implements OnInit {
|
||||
/** Principal Amount */
|
||||
principal: any;
|
||||
datatables: any = [];
|
||||
/** Currency Code */
|
||||
currencyCode: string;
|
||||
|
||||
/**
|
||||
* Sets loans account create form.
|
||||
@@ -70,6 +72,7 @@ export class CreateLoansAccountComponent implements OnInit {
|
||||
*/
|
||||
setTemplate($event: any) {
|
||||
this.loansAccountProductTemplate = $event;
|
||||
this.currencyCode = this.loansAccountProductTemplate.currency.code;
|
||||
const clientId = this.loansAccountTemplate.clientId;
|
||||
this.clientService.getCollateralTemplate(clientId).subscribe((response: any) => {
|
||||
this.collateralOptions = response;
|
||||
|
||||
Reference in New Issue
Block a user