fix: system hangs while creating saving product

now it's working fine
Fixes: #2020
This commit is contained in:
Pushpendra Kumar
2024-03-10 14:36:34 -06:00
committed by Jose Alberto Hernandez
parent 85739e213d
commit 294ae1e340
2 changed files with 9 additions and 3 deletions
@@ -1,6 +1,6 @@
<div fxLayout="row wrap" fxLayout.lt-md="column">
<div fxFlexFill fxLayout="row wrap" fxLayout.lt-md="column">
<div fxFlexFill *ngIf="accountingRule" fxLayout="row wrap" fxLayout.lt-md="column">
<span fxFlex="40%">Type:</span>
<span fxFlex="60%">{{ accountingRule.value }}</span>
</div>
@@ -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;
}
}