From 294ae1e3409dde7f17c380d13ff4a0b6dc0892da Mon Sep 17 00:00:00 2001 From: Pushpendra Kumar Date: Mon, 11 Mar 2024 01:54:34 +0530 Subject: [PATCH] fix: system hangs while creating saving product now it's working fine Fixes: #2020 --- .../view-savings-accounting-details.component.html | 2 +- .../view-savings-accounting-details.component.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.html b/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.html index 59c8655b2..8c29e86bc 100644 --- a/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.html +++ b/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.html @@ -1,6 +1,6 @@
-
+
Type: {{ accountingRule.value }}
diff --git a/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.ts b/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.ts index 4ccbafe94..8d1e07997 100644 --- a/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.ts +++ b/src/app/shared/accounting/view-savings-accounting-details/view-savings-accounting-details.component.ts @@ -18,11 +18,17 @@ export class ViewSavingsAccountingDetailsComponent implements OnInit { } isCashOrAccrualAccounting(): boolean { - return this.accounting.isCashOrAccrualAccounting(this.accountingRule); + if (this.accountingRule) { + return this.accounting.isCashOrAccrualAccounting(this.accountingRule); + } + return false; } isAccrualAccounting(): boolean { - return this.accounting.isAccrualAccounting(this.accountingRule); + if (this.accountingRule) { + return this.accounting.isAccrualAccounting(this.accountingRule); + } + return false; } }