Merge pull request #1505 from ramvr1256/collateral-fix
fix: collateral fixes
This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
<ng-template matStepLabel>TERMS</ng-template>
|
<ng-template matStepLabel>TERMS</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-terms-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
<mifosx-loans-account-terms-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
||||||
[loansAccountTemplate] = "loansAccountTemplate" [multiDisburseLoan] = "multiDisburseLoan">
|
[loansAccountTemplate] = "loansAccountTemplate" [multiDisburseLoan] = "multiDisburseLoan" [collateralOptions]="collateralOptions"
|
||||||
|
[loansAccountFormValid]="loansAccountFormValid" [loanPrincipal]="loanPrincipal">
|
||||||
</mifosx-loans-account-terms-step>
|
</mifosx-loans-account-terms-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
@@ -46,8 +47,8 @@
|
|||||||
<ng-template matStepLabel>CHARGES</ng-template>
|
<ng-template matStepLabel>CHARGES</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-charges-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
<mifosx-loans-account-charges-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
||||||
[loansAccountTemplate]="loansAccountTemplate" [collateralOptions]="collateralOptions"
|
[loansAccountTemplate]="loansAccountTemplate"
|
||||||
[loansAccountFormValid]="loansAccountFormValid" [loanPrincipal]="loanPrincipal">
|
[loansAccountFormValid]="loansAccountFormValid">
|
||||||
</mifosx-loans-account-charges-step>
|
</mifosx-loans-account-charges-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ export class CreateLoansAccountComponent implements OnInit {
|
|||||||
...this.loansAccountDetailsStep.loansAccountDetails,
|
...this.loansAccountDetailsStep.loansAccountDetails,
|
||||||
...this.loansAccountTermsStep.loansAccountTerms,
|
...this.loansAccountTermsStep.loansAccountTerms,
|
||||||
...this.loansAccountChargesStep.loansAccountCharges,
|
...this.loansAccountChargesStep.loansAccountCharges,
|
||||||
|
...this.loansAccountTermsStep.loanCollateral
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<ng-template matStepLabel>TERMS</ng-template>
|
<ng-template matStepLabel>TERMS</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-terms-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
<mifosx-loans-account-terms-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
||||||
[loansAccountTemplate]="loansAccountAndTemplate">
|
[loansAccountTemplate]="loansAccountAndTemplate" [collateralOptions]="collateralOptions">
|
||||||
</mifosx-loans-account-terms-step>
|
</mifosx-loans-account-terms-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<ng-template matStepLabel>CHARGES</ng-template>
|
<ng-template matStepLabel>CHARGES</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-charges-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
<mifosx-loans-account-charges-step [loansAccountProductTemplate]="loansAccountProductTemplate"
|
||||||
[loansAccountTemplate]="loansAccountAndTemplate" [collateralOptions]="collateralOptions"
|
[loansAccountTemplate]="loansAccountAndTemplate"
|
||||||
[loansAccountFormValid]="loansAccountFormValidAndNotPristine">
|
[loansAccountFormValid]="loansAccountFormValidAndNotPristine">
|
||||||
</mifosx-loans-account-charges-step>
|
</mifosx-loans-account-charges-step>
|
||||||
|
|
||||||
|
|||||||
-51
@@ -116,57 +116,6 @@
|
|||||||
<tr mat-row *matRowDef="let row; columns: overdueChargesDisplayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: overdueChargesDisplayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<mat-divider fxFlex="98%"></mat-divider>
|
|
||||||
|
|
||||||
<div fxFlex="50%">
|
|
||||||
<div fxLayout="column" fxFlex="50%" class="tableName">
|
|
||||||
<h4 fxFlex="98%" class="mat-h4">Collaterals Data</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div fxLayout="column" fxFlex="50%">
|
|
||||||
<div fxLayout="row" fxLayoutAlign="flex-end">
|
|
||||||
<button mat-raised-button color="primary" (click)="addCollateral()">
|
|
||||||
<fa-icon icon="plus"></fa-icon> Add
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table mat-table class="mat-elevation-z1" [dataSource]="collateralDataSource">
|
|
||||||
|
|
||||||
<ng-container matColumnDef="type">
|
|
||||||
<th mat-header-cell *matHeaderCellDef> Name </th>
|
|
||||||
<td mat-cell *matCellDef="let ele"> {{ ele.type.name }} </td>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container matColumnDef="value">
|
|
||||||
<th mat-header-cell *matHeaderCellDef> Quantity </th>
|
|
||||||
<td mat-cell *matCellDef="let ele"> {{ ele.value }} </td>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container matColumnDef="totalValue">
|
|
||||||
<th mat-header-cell *matHeaderCellDef> Total Value </th>
|
|
||||||
<td mat-cell *matCellDef="let ele"> {{ ele.type.basePrice*ele.value }} </td>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container matColumnDef="totalCollateralValue">
|
|
||||||
<th mat-header-cell *matHeaderCellDef> Total Collateral Value </th>
|
|
||||||
<td mat-cell *matCellDef="let ele"> {{ ele.type.pctToBase*ele.type.basePrice*ele.value/100 }} </td>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<ng-container matColumnDef="action">
|
|
||||||
<th mat-header-cell *matHeaderCellDef> Actions </th>
|
|
||||||
<td mat-cell *matCellDef="let ele; let collateralIndex = index">
|
|
||||||
<button mat-icon-button color="warn" (click)="deleteCollateral(collateralIndex)">
|
|
||||||
<fa-icon icon="trash"></fa-icon>
|
|
||||||
</button>
|
|
||||||
</td>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<tr mat-header-row *matHeaderRowDef="loanCollateralDisplayedColumns"></tr>
|
|
||||||
<tr mat-row *matRowDef="let row; columns: loanCollateralDisplayedColumns;"></tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row" class="margin-t" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
|
<div fxLayout="row" class="margin-t" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
|
||||||
|
|||||||
-57
@@ -31,10 +31,6 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
|
|||||||
@Input() loansAccountTemplate: any;
|
@Input() loansAccountTemplate: any;
|
||||||
// @Input() loansAccountFormValid: LoansAccountFormValid
|
// @Input() loansAccountFormValid: LoansAccountFormValid
|
||||||
@Input() loansAccountFormValid: boolean;
|
@Input() loansAccountFormValid: boolean;
|
||||||
// @Input collateralOptions: Collateral Options
|
|
||||||
@Input() collateralOptions: any;
|
|
||||||
// @Input loanPrincipal: Loan Principle
|
|
||||||
@Input() loanPrincipal: any;
|
|
||||||
|
|
||||||
/** Charges Data */
|
/** Charges Data */
|
||||||
chargeData: any;
|
chargeData: any;
|
||||||
@@ -48,8 +44,6 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
|
|||||||
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date', 'action'];
|
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date', 'action'];
|
||||||
/** Columns to be displayed in overdue charges table. */
|
/** Columns to be displayed in overdue charges table. */
|
||||||
overdueChargesDisplayedColumns: string[] = ['name', 'type', 'amount', 'collectedon'];
|
overdueChargesDisplayedColumns: string[] = ['name', 'type', 'amount', 'collectedon'];
|
||||||
/** Columns to be displayed in collateral table. */
|
|
||||||
loanCollateralDisplayedColumns: string[] = ['type', 'value', 'totalValue', 'totalCollateralValue', 'action'];
|
|
||||||
/** Component is pristine if there has been no changes by user interaction */
|
/** Component is pristine if there has been no changes by user interaction */
|
||||||
pristine = true;
|
pristine = true;
|
||||||
/** Check if value of collateral added is more than principal amount */
|
/** Check if value of collateral added is more than principal amount */
|
||||||
@@ -213,56 +207,6 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a Collateral to the loan
|
|
||||||
*/
|
|
||||||
addCollateral() {
|
|
||||||
const addCollateralDialogRef = this.dialog.open(LoansAccountAddCollateralDialogComponent, {
|
|
||||||
data: { collateralOptions: this.collateralOptions }
|
|
||||||
});
|
|
||||||
console.log(this.collateralOptions);
|
|
||||||
addCollateralDialogRef.afterClosed().subscribe((response: any) => {
|
|
||||||
console.log(this.loanPrincipal);
|
|
||||||
if (response.data) {
|
|
||||||
const collateralData = {
|
|
||||||
type: response.data.value.collateral,
|
|
||||||
value: response.data.value.quantity,
|
|
||||||
};
|
|
||||||
|
|
||||||
this.totalCollateralValue += collateralData.type.pctToBase * collateralData.type.basePrice * collateralData.value / 100;
|
|
||||||
this.collateralDataSource = this.collateralDataSource.concat(collateralData);
|
|
||||||
this.collateralOptions = this.collateralOptions.filter((user: any) => user.collateralId !== response.data.value.collateral.collateralId);
|
|
||||||
if (this.loanPrincipal < this.totalCollateralValue) {
|
|
||||||
this.isCollateralSufficient = true;
|
|
||||||
} else {
|
|
||||||
this.isCollateralSufficient = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Delete a added collateral from loan
|
|
||||||
* @param id ID od the collateral to be deleted
|
|
||||||
*/
|
|
||||||
deleteCollateral(id: any) {
|
|
||||||
const deleteCollateralDialogRef = this.dialog.open(DeleteDialogComponent, {
|
|
||||||
data: { deleteContext: `collateral` }
|
|
||||||
});
|
|
||||||
deleteCollateralDialogRef.afterClosed().subscribe((response: any) => {
|
|
||||||
if (response.delete) {
|
|
||||||
const removed: any = this.collateralDataSource.splice(id, 1);
|
|
||||||
this.collateralOptions = this.collateralOptions.concat(removed[0].type);
|
|
||||||
this.totalCollateralValue -= removed[0].type.pctToBase * removed[0].type.basePrice * removed[0].value / 100;
|
|
||||||
this.collateralDataSource = this.collateralDataSource.concat([]);
|
|
||||||
this.pristine = false;
|
|
||||||
if (this.loanPrincipal < this.totalCollateralValue) {
|
|
||||||
this.isCollateralSufficient = true;
|
|
||||||
} else {
|
|
||||||
this.isCollateralSufficient = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns Loans Account Charges and Collateral Form
|
* Returns Loans Account Charges and Collateral Form
|
||||||
@@ -270,7 +214,6 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
|
|||||||
get loansAccountCharges() {
|
get loansAccountCharges() {
|
||||||
return {
|
return {
|
||||||
charges: this.chargesDataSource,
|
charges: this.chargesDataSource,
|
||||||
collateral: this.collateralDataSource
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+50
@@ -393,6 +393,56 @@
|
|||||||
<span fxFlex="60%">{{ loansAccountProductTemplate?.interestRecalculationData.recalculationCompoundingFrequencyInterval}}</span>
|
<span fxFlex="60%">{{ loansAccountProductTemplate?.interestRecalculationData.recalculationCompoundingFrequencyInterval}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<mat-divider fxFlex="98%"></mat-divider>
|
||||||
|
|
||||||
|
<div fxFlex="50%">
|
||||||
|
<div fxLayout="column" fxFlex="50%" class="tableName">
|
||||||
|
<h4 fxFlex="98%" class="mat-h4">Collaterals Data</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div fxLayout="column" fxFlex="50%">
|
||||||
|
<div fxLayout="row" fxLayoutAlign="flex-end">
|
||||||
|
<button mat-raised-button color="primary" (click)="addCollateral()">
|
||||||
|
<fa-icon icon="plus"></fa-icon> Add
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<table mat-table class="mat-elevation-z1" [dataSource]="collateralDataSource">
|
||||||
|
|
||||||
|
<ng-container matColumnDef="type">
|
||||||
|
<th mat-header-cell *matHeaderCellDef> Name </th>
|
||||||
|
<td mat-cell *matCellDef="let ele"> {{ ele.type.name }} </td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="value">
|
||||||
|
<th mat-header-cell *matHeaderCellDef> Quantity </th>
|
||||||
|
<td mat-cell *matCellDef="let ele"> {{ ele.value }} </td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="totalValue">
|
||||||
|
<th mat-header-cell *matHeaderCellDef> Total Value </th>
|
||||||
|
<td mat-cell *matCellDef="let ele"> {{ ele.type.basePrice*ele.value }} </td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="totalCollateralValue">
|
||||||
|
<th mat-header-cell *matHeaderCellDef> Total Collateral Value </th>
|
||||||
|
<td mat-cell *matCellDef="let ele"> {{ ele.type.pctToBase*ele.type.basePrice*ele.value/100 }} </td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="action">
|
||||||
|
<th mat-header-cell *matHeaderCellDef> Actions </th>
|
||||||
|
<td mat-cell *matCellDef="let ele; let collateralIndex = index">
|
||||||
|
<button mat-icon-button color="warn" (click)="deleteCollateral(collateralIndex)">
|
||||||
|
<fa-icon icon="trash"></fa-icon>
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<tr mat-header-row *matHeaderRowDef="loanCollateralDisplayedColumns"></tr>
|
||||||
|
<tr mat-row *matRowDef="let row; columns: loanCollateralDisplayedColumns;"></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" class="margin-t" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
|
<div fxLayout="row" class="margin-t" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="2%">
|
||||||
<button mat-raised-button matStepperPrevious>
|
<button mat-raised-button matStepperPrevious>
|
||||||
|
|||||||
+78
-1
@@ -1,7 +1,10 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
||||||
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
import { LoansAccountAddCollateralDialogComponent } from 'app/loans/custom-dialog/loans-account-add-collateral-dialog/loans-account-add-collateral-dialog.component';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Loans Account Terms Step
|
* Create Loans Account Terms Step
|
||||||
@@ -19,6 +22,12 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
@Input() loansAccountTemplate: any;
|
@Input() loansAccountTemplate: any;
|
||||||
/** Is Multi Disburse Loan */
|
/** Is Multi Disburse Loan */
|
||||||
@Input() multiDisburseLoan: any;
|
@Input() multiDisburseLoan: any;
|
||||||
|
// @Input() loansAccountFormValid: LoansAccountFormValid
|
||||||
|
@Input() loansAccountFormValid: boolean;
|
||||||
|
// @Input collateralOptions: Collateral Options
|
||||||
|
@Input() collateralOptions: any;
|
||||||
|
// @Input loanPrincipal: Loan Principle
|
||||||
|
@Input() loanPrincipal: any;
|
||||||
|
|
||||||
/** Minimum date allowed. */
|
/** Minimum date allowed. */
|
||||||
minDate = new Date(2000, 0, 1);
|
minDate = new Date(2000, 0, 1);
|
||||||
@@ -43,13 +52,25 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
/** Client Active Loan Data */
|
/** Client Active Loan Data */
|
||||||
clientActiveLoanData: any;
|
clientActiveLoanData: any;
|
||||||
|
|
||||||
|
/** Check if value of collateral added is more than principal amount */
|
||||||
|
isCollateralSufficient = false;
|
||||||
|
/** Total value of all collateral added to a loan */
|
||||||
|
totalCollateralValue: any = 0;
|
||||||
|
/** Collateral Data Source */
|
||||||
|
collateralDataSource: {}[] = [];
|
||||||
|
/** Columns to be displayed in collateral table. */
|
||||||
|
loanCollateralDisplayedColumns: string[] = ['type', 'value', 'totalValue', 'totalCollateralValue', 'action'];
|
||||||
|
/** Component is pristine if there has been no changes by user interaction */
|
||||||
|
pristine = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Loans Account Terms Form
|
* Create Loans Account Terms Form
|
||||||
* @param formBuilder FormBuilder
|
* @param formBuilder FormBuilder
|
||||||
* @param {SettingsService} settingsService SettingsService
|
* @param {SettingsService} settingsService SettingsService
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: FormBuilder,
|
||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService,
|
||||||
|
public dialog: MatDialog) {
|
||||||
this.createloansAccountTermsForm();
|
this.createloansAccountTermsForm();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -189,6 +210,56 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
disbursementDataFormArray.removeAt(index);
|
disbursementDataFormArray.removeAt(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a Collateral to the loan
|
||||||
|
*/
|
||||||
|
addCollateral() {
|
||||||
|
const addCollateralDialogRef = this.dialog.open(LoansAccountAddCollateralDialogComponent, {
|
||||||
|
data: { collateralOptions: this.collateralOptions }
|
||||||
|
});
|
||||||
|
console.log(this.collateralOptions);
|
||||||
|
addCollateralDialogRef.afterClosed().subscribe((response: any) => {
|
||||||
|
console.log(this.loanPrincipal);
|
||||||
|
if (response.data) {
|
||||||
|
const collateralData = {
|
||||||
|
type: response.data.value.collateral,
|
||||||
|
value: response.data.value.quantity,
|
||||||
|
};
|
||||||
|
this.totalCollateralValue += collateralData.type.pctToBase * collateralData.type.basePrice * collateralData.value / 100;
|
||||||
|
this.collateralDataSource = this.collateralDataSource.concat(collateralData);
|
||||||
|
this.collateralOptions = this.collateralOptions.filter((user: any) => user.collateralId !== response.data.value.collateral.collateralId);
|
||||||
|
if (this.loanPrincipal < this.totalCollateralValue) {
|
||||||
|
this.isCollateralSufficient = true;
|
||||||
|
} else {
|
||||||
|
this.isCollateralSufficient = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Delete a added collateral from loan
|
||||||
|
* @param id ID od the collateral to be deleted
|
||||||
|
*/
|
||||||
|
deleteCollateral(id: any) {
|
||||||
|
const deleteCollateralDialogRef = this.dialog.open(DeleteDialogComponent, {
|
||||||
|
data: { deleteContext: `collateral` }
|
||||||
|
});
|
||||||
|
deleteCollateralDialogRef.afterClosed().subscribe((response: any) => {
|
||||||
|
if (response.delete) {
|
||||||
|
const removed: any = this.collateralDataSource.splice(id, 1);
|
||||||
|
this.collateralOptions = this.collateralOptions.concat(removed[0].type);
|
||||||
|
this.totalCollateralValue -= removed[0].type.pctToBase * removed[0].type.basePrice * removed[0].value / 100;
|
||||||
|
this.collateralDataSource = this.collateralDataSource.concat([]);
|
||||||
|
this.pristine = false;
|
||||||
|
if (this.loanPrincipal < this.totalCollateralValue) {
|
||||||
|
this.isCollateralSufficient = true;
|
||||||
|
} else {
|
||||||
|
this.isCollateralSufficient = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets all select dropdown options.
|
* Sets all select dropdown options.
|
||||||
*/
|
*/
|
||||||
@@ -210,4 +281,10 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
return this.loansAccountTermsForm.value;
|
return this.loansAccountTermsForm.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get loanCollateral() {
|
||||||
|
return {
|
||||||
|
collateral: this.collateralDataSource
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user