From c43a8527f1c2785348cb54a293a27705baffcab4 Mon Sep 17 00:00:00 2001 From: Deploy Date: Wed, 26 Aug 2026 22:22:56 +0200 Subject: [PATCH] fix(pos-selfpay): direct payment + confirm from modal, no partial payments --- project/apps/pos/src/app/(terminal)/page.tsx | 27 +++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/project/apps/pos/src/app/(terminal)/page.tsx b/project/apps/pos/src/app/(terminal)/page.tsx index b5bafb6..61a64fd 100644 --- a/project/apps/pos/src/app/(terminal)/page.tsx +++ b/project/apps/pos/src/app/(terminal)/page.tsx @@ -793,6 +793,7 @@ export default function RegisterPage() { setShowClearConfirm(false); setSelfpayPaymentReady(false); setSelfpayEmail(''); + setShowSelfpayPaymentMethods(false); }; const searchCustomers = async (query: string) => { @@ -1674,17 +1675,8 @@ export default function RegisterPage() { ))} )} - {/* POS-SELFPAY-FLOW: confirm button after payment added in selfpay */} - {isSelfpayMode && selfpayPaymentReady && !paymentMethod && !showSelfpayPaymentMethods && ( - - )} + {/* POS-SELFPAY-FLOW: confirm button no longer needed — direct flow */} + {/* (Removed: payment directly triggers confirmSale from the modal) */}
{!isSelfpayMode && (