diff --git a/overlord/src/app/core/nav-bar/nav-bar.component.html b/overlord/src/app/core/nav-bar/nav-bar.component.html index d12283ad..a3ae598c 100644 --- a/overlord/src/app/core/nav-bar/nav-bar.component.html +++ b/overlord/src/app/core/nav-bar/nav-bar.component.html @@ -3,11 +3,11 @@ >{{ title }} - Journal + Journal - F7 Purchase Purchase Return - Payment - Receipt + Payment - F5 + Receipt - F6 Issue diff --git a/overlord/src/app/receipt/receipt.component.ts b/overlord/src/app/receipt/receipt.component.ts index 09908171..4351160e 100644 --- a/overlord/src/app/receipt/receipt.component.ts +++ b/overlord/src/app/receipt/receipt.component.ts @@ -160,7 +160,7 @@ export class ReceiptComponent implements OnInit, AfterViewInit { receiptAccounts: Account[] = []; receiptJournal: Journal = new Journal(); voucher: Voucher = new Voucher(); - account: Account | null = null; + account: Account | null; accBal: AccountBalance | null = null; displayedColumns = ['account', 'amount', 'action']; @@ -169,6 +169,7 @@ export class ReceiptComponent implements OnInit, AfterViewInit { tags: Observable; constructor() { + this.account = null; this.form = new FormGroup({ date: new FormControl(moment(new Date()), { nonNullable: true }), receiptAccount: new FormControl('', { nonNullable: true }), @@ -207,6 +208,7 @@ export class ReceiptComponent implements OnInit, AfterViewInit { this.router.navigate([], { relativeTo: this.route, queryParams: { a: x }, + replaceUrl: true, queryParamsHandling: 'merge', }), );