| {{ 'labels.inputs.Name' | translate }} |
@@ -821,7 +817,7 @@
-
+
| {{ 'labels.inputs.Name' | translate }} |
diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-accounting-step/loan-product-accounting-step.component.ts b/src/app/products/loan-products/loan-product-stepper/loan-product-accounting-step/loan-product-accounting-step.component.ts
index a28d50813..5668a4ce8 100644
--- a/src/app/products/loan-products/loan-product-stepper/loan-product-accounting-step/loan-product-accounting-step.component.ts
+++ b/src/app/products/loan-products/loan-product-stepper/loan-product-accounting-step/loan-product-accounting-step.component.ts
@@ -148,7 +148,7 @@ export class LoanProductAccountingStepComponent implements OnInit, OnChanges {
this.loanProductAccountingForm.patchValue({
enableAccrualActivityPosting: this.loanProductsTemplate.enableAccrualActivityPosting
});
- if (this.capitalizedIncome.enableIncomeCapitalization) {
+ if (this.capitalizedIncome && this.capitalizedIncome.enableIncomeCapitalization) {
this.loanProductAccountingForm.patchValue({
deferredIncomeLiabilityAccountId: accountingMappings.deferredIncomeLiabilityAccount.id,
incomeFromCapitalizationAccountId: accountingMappings.incomeFromCapitalizationAccount.id
@@ -165,7 +165,7 @@ export class LoanProductAccountingStepComponent implements OnInit, OnChanges {
incomeFromPenaltyAccountId: accountingMappings.incomeFromPenaltyAccount.id,
incomeFromRecoveryAccountId: accountingMappings.incomeFromRecoveryAccount.id,
writeOffAccountId: accountingMappings.writeOffAccount.id,
- goodwillCreditAccountId: accountingMappings.goodwillCreditAccount.id,
+ goodwillCreditAccountId: accountingMappings.goodwillCreditAccount?.id || null,
overpaymentLiabilityAccountId: accountingMappings.overpaymentLiabilityAccount.id,
chargeOffFraudExpenseAccountId: accountingMappings.chargeOffFraudExpenseAccount
? accountingMappings.chargeOffFraudExpenseAccount.id
@@ -591,7 +591,7 @@ export class LoanProductAccountingStepComponent implements OnInit, OnChanges {
setCapitalizedIncomeControls() {
if (this.isAccountingAccrualBased) {
- if (this.capitalizedIncome.enableIncomeCapitalization) {
+ if (this.capitalizedIncome && this.capitalizedIncome.enableIncomeCapitalization) {
this.loanProductAccountingForm.addControl(
'deferredIncomeLiabilityAccountId',
new UntypedFormControl('', Validators.required)
| |