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

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:
Cauê Faleiros
2026-10-02 16:20:27 -03:00
parent 7877489563
commit 05da6d78ad
12 changed files with 213 additions and 21 deletions

View File

@@ -344,3 +344,12 @@ a.zap{display:inline-flex;align-items:center;gap:4px;vertical-align:bottom}
.buyer-mail{font-size:12.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .buyer b{font-size:14px;font-weight:600}
.qname .buyer b{font-size:19px}
/* Cotações' heading says what the list is. */
.lhead{display:flex;align-items:baseline;gap:10px}
.lhead span{font-size:13.5px;color:var(--faint)}
/* Discard and cancel: quiet until meant. */
.btn.discard{margin-right:auto}
.btn.discard:hover{color:var(--bad);border-color:var(--bad-line)}
.callout.bad{background:rgba(244,150,139,.12)}
.callout.bad b{color:var(--bad)}