From 0fc02ef576a23cce1f9fad3e94d68e2b18a6aa2f Mon Sep 17 00:00:00 2001 From: Sibin Sabu Date: Sat, 9 Aug 2025 12:38:06 +0530 Subject: [PATCH] fix : clear is working without window reload --- .../app/components/touch-pad-menu/touch-pad-menu.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts index dd6b0ee..00fcd3b 100755 --- a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts +++ b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts @@ -790,7 +790,9 @@ clearLocalTickets() { // Reset via shared state this.sharedStateService.setSalesTotal(0); this.sharedStateService.setReceiveTotal(0); - window.location.reload(); + // window.location.reload(); + this.selectionService.clearSelections(); + this.resetSelections(); // Optionally clear print clicks // localStorage.removeItem('printClickCount');