Fix: Ledger and product ledger on init would fail because account/product ledger was null. Fixed

This commit is contained in:
2022-07-18 23:41:09 +05:30
parent 836858deb1
commit e02cdfbe9c
10 changed files with 27 additions and 25 deletions
@@ -61,7 +61,7 @@ export class JournalDialogComponent implements OnInit {
}
accountSelected(event: MatAutocompleteSelectedEvent): void {
const account = event.option.value;
const account = event.option.value as Account;
this.account = account;
this.accountSer.balance(account.id as string, this.data.date).subscribe((v) => {
this.accBal = v;