Fix Loan Product summary in preview view to show loan schedule type value (#1920)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-12-05 20:29:27 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent dd7faffad7
commit 3a53236516
@@ -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);
}
}
}