diff --git a/web/kanban.js b/web/kanban.js index 336fe15..687be76 100644 --- a/web/kanban.js +++ b/web/kanban.js @@ -2153,6 +2153,15 @@ async function openCheck(order){ // the measure, and the art either goes on to Arte conferida, its final // approved and its class kept, or is treated (item 8). function isOk(order){ + // Ajuste Fino or Redesenho paid: only the treated PNG goes to the queue, so + // nothing is approved here; the designer goes to "Tratar a arte" (DTF-WEB-A). + if(designerPaid(order)&&!treatmentDone(order)){ + const service=order.snapshot.redesign?'O Ajuste Fino Redesenho':'O Ajuste Fino'; + const m=formDialog('Falta a arte tratada',{host:$('drawer'),label:'Tratar a arte', + text:service+' foi pago. Envie o PNG ajustado de cada item antes de colocar o pedido na fila.', + onsave:async()=>{m.close();treatDialog(order);return false;}}); + return; + } const items=order.snapshot.items, ready=readyFinals(order); const selects=items.map((item,index)=>{ const select=node('select');select.required=true;