From 7c35984096f3eb401fa74a7cc1703b6247891805 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Thu, 4 Jun 2026 05:38:13 +0330 Subject: [PATCH] feat(pos): default the pay sheet to Card Card is now the pre-selected payment method (and split rows default to Card), matching Iran's card-dominant payments. Card already sits first in the selector. Co-Authored-By: Claude Opus 4.8 --- web/dashboard/src/components/pos2/pos2-screen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/dashboard/src/components/pos2/pos2-screen.tsx b/web/dashboard/src/components/pos2/pos2-screen.tsx index 6d8b4b2..93380e7 100644 --- a/web/dashboard/src/components/pos2/pos2-screen.tsx +++ b/web/dashboard/src/components/pos2/pos2-screen.tsx @@ -688,10 +688,10 @@ function Pos2PaySheet({ onClose: () => void; onConfirm: (payments: Payment[], loyaltyRedeem: number) => void; }) { - const [method, setMethod] = useState<"cash" | "card" | "split">("cash"); + const [method, setMethod] = useState<"cash" | "card" | "split">("card"); const [recv, setRecv] = useState(""); const [splitN, setSplitN] = useState(2); - const [splitMethods, setSplitMethods] = useState(["Cash", "Cash"]); + const [splitMethods, setSplitMethods] = useState(["Card", "Card"]); const [useLoyalty, setUseLoyalty] = useState(false); useEffect(() => {