feat: an order paid on the Site says how: "pago com Pix" or "pago com cartão" on its paid line
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 8m35s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m16s
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 8m35s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m16s
The board carries paid_with, the method of the quote's approved payment attempt (the one Tiny is told about). Until now a paid Site order only said "pago em", so a Tiny refusal (DTF-API-C, #196) could not be traced to Pix or card from the Kanban. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,8 @@ function renderPanel(order){
|
||||
// A proof card is no sale (app/proof.py): it says whose proof it is.
|
||||
if(order.proof_parent)paid.append(node('b','Prova do pedido #'+order.proof_parent.number),', sem custo, criada em '+when(order.created_at));
|
||||
else paid.append(node('b',money(s.total_cents)),isTest(order)?' sem pagamento, '+when(order.created_at):
|
||||
paidOutside(order)?' pago fora do site ('+(PAID_OUTSIDE[order.payment.method]||order.payment.method)+'), registrado em '+when(order.created_at):' pago em '+when(order.created_at));
|
||||
paidOutside(order)?' pago fora do site ('+(PAID_OUTSIDE[order.payment.method]||order.payment.method)+'), registrado em '+when(order.created_at):
|
||||
' pago'+(PAID_WITH[order.paid_with]?' com '+PAID_WITH[order.paid_with]:'')+' em '+when(order.created_at));
|
||||
const code=node('span',undefined,'chip');
|
||||
code.append(node('span','DTF-'+order.number,'code'),copyButton(fileCode(order),'Copiar “'+fileCode(order)+'”, o começo do nome dos arquivos deste pedido'));
|
||||
const theirs=node('span','Código do cliente ','tip-l');theirs.append(node('span',orderCode(order.id),'code strong'));theirs.dataset.tip='O código que aparece para o cliente';
|
||||
|
||||
@@ -238,6 +238,8 @@ function callout(d,title,text,tone=''){
|
||||
// Faturado is not one of them: an invoiced sale goes through the montador's
|
||||
// Venda (front 7a.3), and the API refuses it here (Sentry DTF-WEB-E).
|
||||
const PAID_OUTSIDE={pix:'Pix',card:'Cartão',cash:'Dinheiro',credit:'Crédito do cliente'};
|
||||
// How a Site order was paid, on the order's paid line (the board's paid_with).
|
||||
const PAID_WITH={pix:'Pix',card:'cartão'};
|
||||
function registerDialog(quote){
|
||||
const group=(name,label,options)=>{
|
||||
const g=node('div',undefined,'fgroup2');g.setAttribute('role','radiogroup');g.setAttribute('aria-label',label);
|
||||
|
||||
Reference in New Issue
Block a user