fix: a final that stopped counting is approved again, and a pull onto a machine that does not print the product is refused on the board (DTF-WEB-10, DTF-WEB-12)
All checks were successful
Build and deploy / Validate source (push) Successful in 1m49s
Build and deploy / Integration suite on a real stack (push) Successful in 8m41s
Build and deploy / Secret scan and release gate (push) Successful in 14s
Build and deploy / Publish images (push) Successful in 2m5s

- A generated file, or the customer's correction, that was this item's
  final and stopped counting (Correção, a step back) is turned back on
  when approved again, instead of "Este arquivo já está no pedido";
  other files keep that rule.
- A lane drop, or a machine chosen before, that does not print the
  order's product says "A <máquina> não imprime este produto." on the
  board and the card stays in Arte conferida, as the chooser filters.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-19 09:27:10 -03:00
parent 29187e6c9f
commit 662d6f9c41
3 changed files with 41 additions and 5 deletions

View File

@@ -659,6 +659,12 @@ async function pullTo(order, machineId){
}
}
const machine=(board.machines||[]).find(row=>row.id===target);
// A lane drop, or a machine chosen before, may be one that does not print
// this product (by its first item, as app/machines.py product_family): said
// here, as the chooser filters, and the card stays put (Sentry DTF-WEB-12).
if(machine&&!(machine.products||[]).includes(/^uv/.test(order.snapshot.items[0]?.mode||'')?'uv':'textil')){
say('A '+machine.name+' não imprime este produto.');return;
}
const alert=(machine?.alerts||[]).find(row=>row.blocking);
if(alert&&!await machineAlertDialog(order,target,alert))return;
try{