feat: discard an unpaid quote, delete a test order, cancel a paid one
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 2m44s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 54s
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 2m44s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 54s
Cotações (now subtitled "pedidos ainda não pagos") can discard a quote: it leaves every list and the search, and a payment for it is refused like an expired one. A test order can be deleted with its history; its quote is unpaid again. A paid order is cancelled with a required reason: it leaves the board for a "Cancelados" chip, keeps its payment and history, can no longer move, and the customer's account shows it as cancelled. Refunds stay at Mercado Pago and Tiny is not told; the cancel form says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -366,7 +366,9 @@
|
||||
} catch(error) { message(error.message,'error'); event.target.disabled=false; }
|
||||
});
|
||||
} else {
|
||||
message('Cotação expirada. Envie o carrinho de novo para pagar.','warn');
|
||||
message(quote.status==='discarded'
|
||||
? 'Esta cotação foi cancelada pela nossa equipe. Envie o carrinho de novo ou fale com a gente.'
|
||||
: 'Cotação expirada. Envie o carrinho de novo para pagar.','warn');
|
||||
button('Voltar ao carrinho',()=>{clearDraft();vaiPara(CARRINHO);});
|
||||
}
|
||||
} catch(error) {
|
||||
|
||||
Reference in New Issue
Block a user