fix: a quote held by a test order says so, and its panel closes
Sentry DTF-WEB-D: after "Criar pedido de teste" the quote panel kept offering "Pedido pago fora do site", and the register answered "Esta cotação já virou o pedido #N" without saying it was the test order. The message now names the test order and says to delete it to register the payment; creating the test order closes the quote panel. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -196,7 +196,9 @@ function review(quote){
|
||||
const test=button('Criar pedido de teste',async()=>{
|
||||
if(!await ask('Criar um pedido de teste?','Ele entra em Arte recebida sem cobrar nada e não vai para o Tiny.','Criar pedido de teste'))return;
|
||||
const order=await api('/quotes/'+quote.id+'/test-order',{});
|
||||
say('Pedido de teste #'+order.number+' criado em Arte recebida.');await load();
|
||||
// The quote is now that test order's: it leaves the list, and its
|
||||
// panel closes so nobody registers it again (Sentry DTF-WEB-D).
|
||||
currentQuote=null;say('Pedido de teste #'+order.number+' criado em Arte recebida.');await load();
|
||||
},'btn');
|
||||
foot.append(test);
|
||||
if(chat)foot.append(chat);
|
||||
|
||||
Reference in New Issue
Block a user