feat: the phase-2 reset script and the proof-order contact rule (0.11)
reset_board deletes orders, quotes, cards, uploads and their history, and empties the Kanban flow folders while keeping Estampas and every setup record. It is a dry run unless --yes is passed, and never resets the order numbering. A proof order closes contact with Prova OK; orders without a proof keep their "Contato feito" action.
This commit is contained in:
@@ -1436,6 +1436,10 @@ function contactNotice(order,canClear){
|
||||
box.append(ico,p);
|
||||
const zap=whatsappLink(order.snapshot.customer.zap);
|
||||
if(zap){const a=node('a','Abrir conversa','btn');a.href=zap;a.target='_blank';a.rel='noopener noreferrer';a.prepend(svgIcon(IC.chat,'i s'));box.append(a);}
|
||||
// A proof order closes its contact wait with Prova OK, the only button
|
||||
// (item 0.1). Other orders still need a way to record that contact is done.
|
||||
if(canClear&&!needsProof(order))box.append(button('Contato feito',async()=>{
|
||||
await api('/orders/'+order.id+'/contact',{waiting:false});say('Contato registrado: a marca saiu do pedido #'+order.number+'.');await load();},'btn'));
|
||||
return box;
|
||||
}
|
||||
// In correction, the customer has to be told: a message ready to send on
|
||||
|
||||
Reference in New Issue
Block a user