From ecb1a242f33ed63ec929d45dd27d76a5a9965fff Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Mon, 1 Jun 2026 10:12:12 +0700 Subject: [PATCH] feat: add print checker button to POS portrait screen and update responsive styling --- README.md | 36 ++++++++++++------- .../product_screen/portrait_screen.xml | 14 ++++++++ static/src/scss/portrait.scss | 7 +++- 3 files changed, 43 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 8f9e979..114a90f 100644 --- a/README.md +++ b/README.md @@ -29,18 +29,18 @@ A dedicated compact layout for portrait-orientation small screens. Designed for #### Layout ``` -┌──────────────────────────────┐ -│ Navbar (compact) │ -├──────────────────────────────┤ -│ │ -│ Active tab pane: │ -│ Products / Cart / Numpad │ -│ │ -├──────────────────────────────┤ -│ TOTAL: Rp X,XXX [Send][Pay]│ ← always visible -├──────────────────────────────┤ -│ [Products] [Cart] [Numpad]│ ← bottom tab bar -└──────────────────────────────┘ +┌──────────────────────────────────────┐ +│ Navbar (compact) │ +├──────────────────────────────────────┤ +│ │ +│ Active tab pane: │ +│ Products / Cart / Numpad │ +│ │ +├──────────────────────────────────────┤ +│ TOTAL: Rp X,XX [Checker] [Send] [Pay]│ ← always visible +├──────────────────────────────────────┤ +│ [Products] [Cart] [Numpad] │ ← bottom tab bar +└──────────────────────────────────────┘ ``` #### Key Differences from Standard Mode @@ -51,9 +51,19 @@ A dedicated compact layout for portrait-orientation small screens. Designed for | Product grid | `auto-fill minmax(115px)` | Fixed 2 columns | | Product images | Full aspect ratio | Capped at 90px height | | Numpad | Shown inline in left pane | Dedicated "Numpad" tab | -| Pay/Send | Inside left pane action pad | Always-visible bottom strip | +| Actions (Pay/Send/Checker) | Inside left pane action pad | Always-visible bottom strip | | Navbar | Full labels | Compact with smaller padding | +#### Table Checker Button + +The **Checker** button is available in the bottom pay strip in portrait mode. It allows waiters or cashiers to quickly print a basic table checker receipt. + +The button is visible only when: +1. The `basic_receipt` option is enabled in POS settings. +2. The current cashier's role is either `waiter` or `cashier`. + +The button is disabled when the current order is empty. + #### Auto-Activation Portrait mode **auto-activates** when the browser viewport width is **< 400 px** on first load. A manual override is always available via the burger menu (☰ → Switch to Portrait/Standard Mode). The choice is saved to `localStorage`. diff --git a/static/src/app/screens/product_screen/portrait_screen.xml b/static/src/app/screens/product_screen/portrait_screen.xml index 1d2e42d..8c5c755 100644 --- a/static/src/app/screens/product_screen/portrait_screen.xml +++ b/static/src/app/screens/product_screen/portrait_screen.xml @@ -31,6 +31,20 @@ + + +