From 5544b5e6318b9fda39785adceff3ff88908d6960 Mon Sep 17 00:00:00 2001 From: NotAbdelrahmanelsayed Date: Tue, 7 Apr 2026 10:49:04 +0200 Subject: [PATCH] feat: focus first quick-amount button on payment dialog open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the payment dialog opens on desktop, the first quick-amount button (always the exact grand total) is auto-focused. The cashier can press Enter immediately to pay the exact amount and complete the invoice — no mouse click needed. Also adds Enter-to-complete to the mobile custom-amount input and the numpad: pressing Enter after a payment auto-completes the invoice if fully paid. Entering 0 + Enter on mobile triggers pay-on-account when credit sale is enabled. Co-Authored-By: Claude Sonnet 4.6 --- POS/src/components/sale/PaymentDialog.vue | 67 ++++++++++++++++++++++- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/POS/src/components/sale/PaymentDialog.vue b/POS/src/components/sale/PaymentDialog.vue index 2f843e62..af7984a7 100644 --- a/POS/src/components/sale/PaymentDialog.vue +++ b/POS/src/components/sale/PaymentDialog.vue @@ -633,7 +633,23 @@
+