fix: review of round 5 against its contracts: a hand-added stamp never joins a referenced line, an open preview reminds only in Arte recebida, previews in the history, the proof in Minha conta

Found re-reading A1-D6 with the interaction contracts: Adicionar merged
into a pasted line and printed its reference; a preview left open after
the card moved or was cancelled kept its flag and the 3 h reminder; the
reject reason said it stays in the history, which only listed moves; the
"com prova" summary (B3) was missing in Minha conta; removing every
line kept the pasted list's batch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-30 15:03:02 -03:00
parent 9e0d33ef47
commit 28c10aabf6
4 changed files with 14 additions and 2 deletions

View File

@@ -205,6 +205,8 @@ function itensPedido(snapshot){
li.append(node('span',nomeItem(item),'nome'),node('span',metros(item.billed_metres),'qt'),node('b',money(item.total_cents)));
ul.append(li);
}
// The proof the customer asked for (Rodada 5, B3).
if(snapshot.proof){const li=node('li',null,'frete');li.append(node('span','Prova antes de imprimir','nome'),node('span','','qt'),node('b','Grátis'));ul.append(li);}
const f=snapshot.freight;
if(f&&f.total_cents){const li=node('li',null,'frete');li.append(node('span','Frete','nome'),node('span',f.days?'até '+f.days+' dias úteis':'','qt'),node('b',money(f.total_cents)));ul.append(li);}
return ul;