diff --git a/web/kanban-board.js b/web/kanban-board.js index 6aef1d4..d2f0841 100644 --- a/web/kanban-board.js +++ b/web/kanban-board.js @@ -272,6 +272,12 @@ function renderBoard(){ else say('Pedido acima de 1 m: falta a foto da revisão antes de finalizar.',true); clearDrop();return; } + // Arte conferida needs every item's final approved: the drop opens the + // order on that step instead of a refused move (Sentry DTF-WEB-F). + if(state==='tra'&&order.state!=='tra'&&!finalDone(order)){ + say('Aprove o arquivo final de todos os itens antes de Arte conferida.',true); + openPanel(order.id);clearDrop();return; + } try{ if(order.state!==state)await (state==='imp'?pullTo(order,machine):move(order,state,'',machine)); else if(state!=='fin')await reorder(order,column,e.clientY);