Add Advanced Payment Alloc Data in Loan Product view

This commit is contained in:
Jose Alberto Hernandez
2023-10-11 08:17:53 +02:00
committed by Arnold Gálovics
parent 61f3ec24e9
commit 41b49c2c03
@@ -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
};
});
}