fix: drop the validated-total line from the payment page
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 2m10s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m44s
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 2m10s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m44s
The summary above already shows the total; the line stays only beside the local stack's simulated payment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,7 +165,6 @@
|
|||||||
? 'Arquivos enviados. No Kanban, confira metragem e nota e aprove a cotação '+draftId.slice(0,8)+'.'
|
? 'Arquivos enviados. No Kanban, confira metragem e nota e aprove a cotação '+draftId.slice(0,8)+'.'
|
||||||
: 'Arquivos enviados. Nossa equipe está conferindo a cotação '+draftId.slice(0,8)+'; o valor final aparece aqui em seguida.');
|
: 'Arquivos enviados. Nossa equipe está conferindo a cotação '+draftId.slice(0,8)+'; o valor final aparece aqui em seguida.');
|
||||||
} else if (quote.status==='approved') {
|
} else if (quote.status==='approved') {
|
||||||
message('Total validado no servidor: '+rs(quote.approved.total_cents/100)+' · inclui frete. Cotação válida por 24 horas.');
|
|
||||||
if ((await ready).payment_provider === 'mercadopago') {
|
if ((await ready).payment_provider === 'mercadopago') {
|
||||||
const metodos=[];
|
const metodos=[];
|
||||||
const escolhe=async(el,show)=>{
|
const escolhe=async(el,show)=>{
|
||||||
@@ -186,13 +185,15 @@
|
|||||||
metodos.forEach(b=>{b.className='metodo';b.setAttribute('aria-pressed','false');});
|
metodos.forEach(b=>{b.className='metodo';b.setAttribute('aria-pressed','false');});
|
||||||
area=document.createElement('div'); area.className='area';
|
area=document.createElement('div'); area.className='area';
|
||||||
actions.append(area);
|
actions.append(area);
|
||||||
message('Total validado no servidor: '+rs(quote.approved.total_cents/100)+' · inclui frete. Escolha como pagar.');
|
message('');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((await ready).environment !== 'local') {
|
if ((await ready).environment !== 'local') {
|
||||||
message('Cotação revisada. O pagamento online ainda não está disponível.');
|
message('Cotação revisada. O pagamento online ainda não está disponível.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Local stack only: the simulated payment.
|
||||||
|
message('Total validado no servidor: '+rs(quote.approved.total_cents/100)+' · inclui frete. Cotação válida por 24 horas.');
|
||||||
button('Criar pedido de teste',async event=>{
|
button('Criar pedido de teste',async event=>{
|
||||||
if (!quotedCart || quotedCart!==cartSnapshot()) { await refresh(); return; }
|
if (!quotedCart || quotedCart!==cartSnapshot()) { await refresh(); return; }
|
||||||
event.target.disabled=true;
|
event.target.disabled=true;
|
||||||
|
|||||||
Reference in New Issue
Block a user