Fix: Ledger and product ledger on init would fail because account/product ledger was null. Fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user