fix: a cancelled upload holds no reservation, an old ready sheet is flagged in the cart, the address check is guidance (DTF-WEB-14, 22, 24)
All checks were successful
Build and deploy / Validate source (push) Successful in 1m39s
Build and deploy / Integration suite on a real stack (push) Successful in 10m18s
Build and deploy / Secret scan and release gate (push) Successful in 16s
Build and deploy / Publish images (push) Successful in 2m33s
All checks were successful
Build and deploy / Validate source (push) Successful in 1m39s
Build and deploy / Integration suite on a real stack (push) Successful in 10m18s
Build and deploy / Secret scan and release gate (push) Successful in 16s
Build and deploy / Publish images (push) Successful in 2m33s
- 14: switching products cancelled the files being sent, but each one still waiting for a place opened its reservation when it got one, and none gave it back: 27 in ten seconds filled the cap of 30 (29/11). A cancelled upload now never starts, and one cancelled after starting gives its place back. - 22: a ready sheet kept in the cart from before the 8 mm says so on its row and holds Pagar, instead of a refusal after the whole checkout. - 24: "Preencha o endereço de entrega" is a warning, not an error. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -475,10 +475,15 @@
|
||||
if (draftId && quotedCart === cartSnapshot()) { await refresh(true); return; }
|
||||
if (draftId) clearDraft();
|
||||
if (!clienteOk() || !entrega.cotado) return;
|
||||
if (!enderecoOk()) return message('Preencha o endereço de entrega.','error');
|
||||
// Guidance: the customer fills it in (Sentry DTF-WEB-24).
|
||||
if (!enderecoOk()) return message('Preencha o endereço de entrega.','warn');
|
||||
// Guidance, not a failure: the customer still has a quality note to
|
||||
// confirm, and the page takes them to it (Sentry DTF-WEB-Y).
|
||||
if (!cartPodeEnviar()) {
|
||||
if (itensAPagar().some(semMargem)) {
|
||||
document.querySelector('.item .avisoF')?.scrollIntoView({behavior:'smooth',block:'center'});
|
||||
return message('Uma folha do carrinho foi montada antes dos 8 mm entre as cópias: remova e adicione de novo.','warn');
|
||||
}
|
||||
document.querySelector('.aceiteRes input:not(:checked)')?.closest('label')?.scrollIntoView({behavior:'smooth',block:'center'});
|
||||
return message('Revise a qualidade e confirme a ressalva de cada item antes de enviar o pedido.','warn');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user