From 030b66c697e4a68ba7f279b280d61ff4498052ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 30 Nov 2026 15:03:02 -0300 Subject: [PATCH] feat: the customer picks Agrupado or Misturado and sees free copies that fit the same metres (Rodada 5, C1, C2) C2: encaixar takes an optional mode ('linhas', 'forma'; the Montar keeps the automatic one); the buy box shows both billed lengths and the difference in cm and R$ when they differ, marking the packing on screen. C1: up to 5 arts are tried with up to 30 more copies, by binary search with the packing in use, and up to 3 '+k file' buttons add the copies that keep the billed metres. Both run after the order check, never before it. Co-Authored-By: Claude Opus 5.5 --- web/index.html | 2 + web/packing.js | 9 ++-- web/site-compra.js | 58 ++++++++++++++++++++++ web/site-config.js | 1 + web/site-packing.js | 115 ++++++++++++++++++++++++++++++++++++++++---- web/site-pdf.js | 1 + web/site-v2.css | 16 ++++++ 7 files changed, 189 insertions(+), 13 deletions(-) diff --git a/web/index.html b/web/index.html index d30edcd..ee72f01 100644 --- a/web/index.html +++ b/web/index.html @@ -948,7 +948,9 @@ h2 em{font-style:normal;color:var(--laranja)}