From 08bae243a4a1fdfcb52b6041c3740f1eb5bec49e Mon Sep 17 00:00:00 2001 From: chattie Date: Mon, 24 Aug 2026 07:55:23 +0200 Subject: [PATCH] =?UTF-8?q?fix(POS-FIX-9):=20botones=20dialogo=20merge=20h?= =?UTF-8?q?abilitados=20=E2=80=94=20recoveringSaleId=20no=20se=20setea=20a?= =?UTF-8?q?l=20abrir=20dialogo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/apps/pos/src/app/(terminal)/page.tsx | 14 ++++++++++---- work/artifacts/POS-FIX-9/implementer.md | 6 ++++++ work/runtime-status.json | 17 ++++++++++++----- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/project/apps/pos/src/app/(terminal)/page.tsx b/project/apps/pos/src/app/(terminal)/page.tsx index 647fc4c..bb7b344 100644 --- a/project/apps/pos/src/app/(terminal)/page.tsx +++ b/project/apps/pos/src/app/(terminal)/page.tsx @@ -566,8 +566,9 @@ export default function RegisterPage() { const recoverSale = async (sale: PosPendingSale) => { // POS-FIX-9: if cart has items, show merge dialog instead of auto-merge if (cart.length > 0) { - setRecoveringSaleId(sale.id); + // Don't set recoveringSaleId here — buttons in the dialog would be disabled setMergePendingSale(sale); + setError(''); return; } await doRecoverSale(sale); @@ -1532,7 +1533,10 @@ export default function RegisterPage() {