From 41b49c2c03777801c6a338492a86f017e57dc836 Mon Sep 17 00:00:00 2001 From: Jose Alberto Hernandez Date: Tue, 10 Oct 2023 18:12:12 -0600 Subject: [PATCH] Add Advanced Payment Alloc Data in Loan Product view --- .../view-loan-product/general-tab/general-tab.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/products/loan-products/view-loan-product/general-tab/general-tab.component.ts b/src/app/products/loan-products/view-loan-product/general-tab/general-tab.component.ts index 1f9987ae9..a8f624afd 100644 --- a/src/app/products/loan-products/view-loan-product/general-tab/general-tab.component.ts +++ b/src/app/products/loan-products/view-loan-product/general-tab/general-tab.component.ts @@ -16,11 +16,16 @@ export class GeneralTabComponent implements OnInit { paymentFundSourceDisplayedColumns: string[] = ['paymentTypeId', 'fundSourceAccountId']; feesPenaltyIncomeDisplayedColumns: string[] = ['chargeId', 'incomeAccountId']; - advancePaymentAllocationData: AdvancePaymentAllocationData | null = null; + advancePaymentAllocationData: AdvancePaymentAllocationData; constructor(private route: ActivatedRoute) { this.route.data.subscribe((data: { loanProduct: any }) => { this.loanProduct = data.loanProduct; + this.advancePaymentAllocationData = { + transactionTypes: this.loanProduct.advancedPaymentAllocationTransactionTypes, + allocationTypes: this.loanProduct.advancedPaymentAllocationTypes, + futureInstallmentAllocationRules: this.loanProduct.advancedPaymentAllocationFutureInstallmentAllocationRules + }; }); }