feat: copies from the file name, the proof in the summaries, the grade off the customer's screen (Rodada 5, B3, B6, D6)
Some checks failed
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Failing after 1m17s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
Some checks failed
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Failing after 1m17s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
B6: "12x nome.png" enters with 12 copies, art or ready sheet (up to 200; "1920x1080.png" is not read as copies). B3: the DPI refusal speaks per art, the cart and payment summaries list "Prova antes de imprimir" when chosen, and below 10 m the proof box stays, closed, saying the rule. D6: the Ajuste Fino refusal no longer shows the grade number (Site and server); the unused motivoNota helper is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -185,7 +185,7 @@ function aplicaTratamento(aPagar){
|
||||
document.querySelectorAll('[data-ajuste],[data-ajustea]').forEach(el=>{el.checked=true;});
|
||||
}
|
||||
check.checked=ajusteTudo;check.disabled=true;
|
||||
mostraAvisoTratamento('Sua arte tem nota '+worst+', então o Ajuste Fino é obrigatório neste pedido.');
|
||||
mostraAvisoTratamento('Sua arte está abaixo da resolução mínima, então o Ajuste Fino é obrigatório neste pedido.');
|
||||
}else{
|
||||
check.checked=ajusteTudo;check.disabled=false;mostraAvisoTratamento('');
|
||||
}
|
||||
@@ -257,6 +257,8 @@ function pintaPedido(){
|
||||
' · +24 h</span><b>'+rs(tratamento)+'</b></div>':'')+
|
||||
(redesenho?'<div class="l"><span>Ajuste Fino Redesenho · '+artesRedesenho+
|
||||
(artesRedesenho===1?' arte':' artes')+' · +48 h</span><b>'+rs(redesenho)+'</b></div>':'')+
|
||||
($('fProva')?.checked?'<div class="l"><span>Prova antes de imprimir</span>'+
|
||||
'<b><span style="color:var(--verde-ml)">Grátis</span></b></div>':'')+
|
||||
'<div class="l"><span>Revisão e reencaixe</span>'+
|
||||
'<b><span style="color:var(--verde-ml)">Grátis</span></b></div>';
|
||||
$('carrTot').textContent=rs(soma);
|
||||
@@ -268,9 +270,12 @@ function pintaPedido(){
|
||||
: n>1
|
||||
? 'Pagar os '+n+' itens de uma vez'
|
||||
: 'Ir para o pagamento';
|
||||
// The proof is only for orders above 10 m (Dropstar, 2026-10-28): below it the box is gone.
|
||||
// The proof is only for orders above 10 m (Dropstar, 2026-10-28; the server's
|
||||
// PROOF_ABOVE_METRES). Below it the box stays, closed, and says the rule
|
||||
// (Rodada 5, B3).
|
||||
const prova=$('fProva');
|
||||
if(prova){ const longo=aPagar.reduce((t,it)=>t+(it.cob||0),0)>10; prova.closest('.cxE').hidden=!longo; if(!longo) prova.checked=false; }
|
||||
if(prova){ const longo=aPagar.reduce((t,it)=>t+(it.cob||0),0)>10;
|
||||
prova.disabled=!longo; if(!longo) prova.checked=false; $('provaMin').hidden=longo; }
|
||||
$('bPagar').disabled = !cartPodeEnviar() || !entrega.cotado || !clienteOk() || !enderecoOk() || falta>0;
|
||||
if(pedido.length || itemAtual) $('carr').classList.add('on');
|
||||
if($('cartN')){ $('cartN').textContent=noCarrinho>99?'99+':noCarrinho; $('cartN').hidden=!noCarrinho;
|
||||
@@ -374,6 +379,7 @@ function avisaDesfazer(texto,acao){
|
||||
function fechaDesfazer(){ clearTimeout(desfazerTimer); desfazerAcao=null; $('desfazer').hidden=true; }
|
||||
addEventListener('dtf-page-changed',fechaDesfazer);
|
||||
$('desfazerBtn').addEventListener('click',()=>{ const acao=desfazerAcao; fechaDesfazer(); if(acao) acao(); });
|
||||
$('fProva')?.addEventListener('change',()=>pintaPedido());
|
||||
$('fTratamento')?.addEventListener('change',()=>{
|
||||
if($('fTratamento').checked){ ajusteTudo=true; limpaRedesenho(); }
|
||||
else limpaAjuste();
|
||||
|
||||
Reference in New Issue
Block a user