fix: a drag to Arte conferida without approved finals opens the order on that step (DTF-WEB-F)
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 6m26s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m14s
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 6m26s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m14s
The panel only offers Arte conferida once every item's final is approved, but the board's drop sent the move and the server refused it. The drop now says what is missing and opens the order on "Aprovar o arquivo final", the same pattern as the review photo guard for Finalizado (DTF-WEB-B). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user