From 3a53236516ec8d5439566c32604117a36e28d1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alberto=20Hern=C3=A1ndez?= <44206706+josehernandezfintecheandomx@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:29:27 -0600 Subject: [PATCH] Fix Loan Product summary in preview view to show loan schedule type value (#1920) Co-authored-by: Jose Alberto Hernandez --- .../loan-product-summary.component.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.ts b/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.ts index a181d2a66..f7999f74e 100644 --- a/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.ts +++ b/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.ts @@ -166,17 +166,16 @@ export class LoanProductSummaryComponent implements OnInit, OnChanges { this.loanProductsTemplate.transactionProcessingStrategyOptions); this.loanProduct.transactionProcessingStrategyName = codeValue.name; - if (this.isAdvancedPaymentAllocation) { + if (!this.loanProduct.loanScheduleType || !this.loanProduct.loanScheduleType.value) { + this.loanProduct.loanScheduleType = this.optionDataLookUpByCode(this.loanProduct.loanScheduleType, + this.loanProductsTemplate.loanScheduleTypeOptions); + } + if (this.isAdvancedPaymentAllocation) { if (!this.loanProduct.loanScheduleProcessingType || !this.loanProduct.loanScheduleProcessingType.value) { this.loanProduct.loanScheduleProcessingType = this.optionDataLookUpByCode(this.loanProduct.loanScheduleProcessingType, this.loanProductsTemplate.loanScheduleProcessingTypeOptions); } - - if (!this.loanProduct.loanScheduleType || !this.loanProduct.loanScheduleType.value) { - this.loanProduct.loanScheduleType = this.optionDataLookUpByCode(this.loanProduct.loanScheduleType, - this.loanProductsTemplate.loanScheduleTypeOptions); - } } }