minor lint fixes

This commit is contained in:
Ramveer
2022-06-08 08:56:08 +02:00
committed by Arnold Gálovics
parent c279b96db7
commit 0644fcdfd7
2 changed files with 8 additions and 9 deletions
@@ -68,11 +68,10 @@ export class CreateLoansAccountComponent implements OnInit {
this.collateralOptions = response.loanCollateralOptions; this.collateralOptions = response.loanCollateralOptions;
}); });
const clientId = this.loansAccountTemplate.clientId; const clientId = this.loansAccountTemplate.clientId;
const productId= this.loansAccountProductTemplate.loanProductId const productId = this.loansAccountProductTemplate.loanProductId;
this.loansService.getLoansAccountTemplateResource(clientId, productId).subscribe((response: any) => { this.loansService.getLoansAccountTemplateResource(clientId, productId).subscribe((response: any) => {
this.multiDisburseLoan = response.multiDisburseLoan; this.multiDisburseLoan = response.multiDisburseLoan;
}); });
} }
/** Get Loans Account Details Form Data */ /** Get Loans Account Details Form Data */
@@ -122,7 +121,7 @@ export class CreateLoansAccountComponent implements OnInit {
value: collateralEle.value, value: collateralEle.value,
description: collateralEle.description description: collateralEle.description
})), })),
disbursementData:this.loansAccount.disbursementData.map((item: any) => ({ disbursementData: this.loansAccount.disbursementData.map((item: any) => ({
expectedDisbursementDate: this.dateUtils.formatDate(item.expectedDisbursementDate, dateFormat), expectedDisbursementDate: this.dateUtils.formatDate(item.expectedDisbursementDate, dateFormat),
principal: item.principal principal: item.principal
})), })),
@@ -17,7 +17,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
@Input() loansAccountProductTemplate: any; @Input() loansAccountProductTemplate: any;
/** Loans Account Template */ /** Loans Account Template */
@Input() loansAccountTemplate: any; @Input() loansAccountTemplate: any;
/**Is Multi Disburse Loan */ /** Is Multi Disburse Loan */
@Input() multiDisburseLoan: any; @Input() multiDisburseLoan: any;
/** Minimum date allowed. */ /** Minimum date allowed. */
@@ -171,13 +171,13 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
}); });
} }
/** /**
* Gets the Disbursement Data form array. * Gets the Disbursement Data form array.
* @returns {FormArray} Disbursement Data form array. * @returns {FormArray} Disbursement Data form array.
*/ */
get disbursementData(): FormArray { get disbursementData(): FormArray {
return this.loansAccountTermsForm.get('disbursementData') as FormArray; return this.loansAccountTermsForm.get('disbursementData') as FormArray;
} }
/** /**
* Adds the Disbursement Data entry form to given Disbursement Data entry form array. * Adds the Disbursement Data entry form to given Disbursement Data entry form array.