Remove the field recalculationCompountFrequenceyDate from loan product request

This commit is contained in:
Jose Alberto Hernandez
2022-07-18 21:59:54 -05:00
parent 4a40b5eca7
commit 2ee81f2f90
8 changed files with 4 additions and 44 deletions
@@ -28,7 +28,9 @@ export class LoanProductChargesStepComponent implements OnInit {
ngOnInit() {
this.chargeData = this.loanProductsTemplate.chargeOptions;
this.overdueChargeData = this.loanProductsTemplate.penaltyOptions.filter((penalty: any) => penalty.chargeTimeType.code === 'chargeTimeType.overdueInstallment');
this.overdueChargeData = this.loanProductsTemplate.penaltyOptions ?
this.loanProductsTemplate.penaltyOptions.filter((penalty: any) => penalty.chargeTimeType.code === 'chargeTimeType.overdueInstallment') :
[];
this.chargesDataSource = this.loanProductsTemplate.charges || [];
this.pristine = true;
@@ -387,10 +387,6 @@
<div fxFlexFill *ngIf="loanProduct.recalculationCompoundingFrequencyType !== 1" fxLayout="row wrap" fxLayout.lt-md="column">
<span fxFlex="40%">Frequency Interval for compounding:</span>
<span fxFlex="60%">{{ loanProduct.recalculationCompoundingFrequencyInterval }}</span>
<div fxFlexFill *ngIf="loanProduct.recalculationCompoundingFrequencyDate">
<span fxFlex="40%">Compounding Frequency Date:</span>
<span fxFlex="60%">{{ loanProduct.recalculationCompoundingFrequencyDate }}</span>
</div>
</div>
</div>
<div fxFlexFill fxLayout="row wrap" fxLayout.lt-md="column">
@@ -400,10 +400,6 @@
<div fxFlexFill *ngIf="loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id !== 1" fxLayout="row wrap" fxLayout.lt-md="column">
<span fxFlex="40%">Frequency Interval for compounding:</span>
<span fxFlex="60%">{{ loanProduct.interestRecalculationData.recalculationCompoundingFrequencyInterval }}</span>
<div fxFlexFill *ngIf="loanProduct.recalculationCompoundingFrequencyDate">
<span fxFlex="40%">Compounding Frequency Date:</span>
<span fxFlex="60%">{{ loanProduct.interestRecalculationData.recalculationCompoundingFrequencyDate }}</span>
</div>
</div>
</div>
<div fxFlexFill fxLayout="row wrap" fxLayout.lt-md="column">