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 + }; }); }