feat(pos): default the pay sheet to Card
CI/CD / CI · API (dotnet build + test) (push) Successful in 40s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 31s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m6s
CI/CD / CI · Admin Web (tsc) (push) Successful in 37s
CI/CD / CI · Website (tsc) (push) Successful in 44s
CI/CD / CI · Koja (tsc) (push) Successful in 48s
CI/CD / Deploy · all services (push) Successful in 2m42s

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 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 05:38:13 +03:30
parent bf0ca68fa6
commit 7c35984096
@@ -688,10 +688,10 @@ function Pos2PaySheet({
onClose: () => void; onClose: () => void;
onConfirm: (payments: Payment[], loyaltyRedeem: number) => 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 [recv, setRecv] = useState("");
const [splitN, setSplitN] = useState(2); const [splitN, setSplitN] = useState(2);
const [splitMethods, setSplitMethods] = useState<Method[]>(["Cash", "Cash"]); const [splitMethods, setSplitMethods] = useState<Method[]>(["Card", "Card"]);
const [useLoyalty, setUseLoyalty] = useState(false); const [useLoyalty, setUseLoyalty] = useState(false);
useEffect(() => { useEffect(() => {