feat: the 8 mm between a ready sheet's copies stay on the film but are no longer billed (Marcus, 2026-12-03)
All checks were successful
Build and deploy / Validate source (push) Successful in 59s
Build and deploy / Integration suite on a real stack (push) Successful in 8m58s
Build and deploy / Secret scan and release gate (push) Successful in 10s
Build and deploy / Publish images (push) Successful in 1m45s
All checks were successful
Build and deploy / Validate source (push) Successful in 59s
Build and deploy / Integration suite on a real stack (push) Successful in 8m58s
Build and deploy / Secret scan and release gate (push) Successful in 10s
Build and deploy / Publish images (push) Successful in 1m45s
Marcus on 26/11 had the gaps count in the billed metres; on 2026-12-03, after customers of Lais and Kedma refused orders billed 10 and 20 cm more, "por hora pode tirar a cobrança". A ready sheet is now billed on the sum of its sheets and copies (pricing.billable_metres: the layout's height less unbilled_gaps_cm, at most 8 mm between each two pieces); `metres` stays the film laid out, which the print file, the parts and the folders follow, and the print file's billed-length guard allows the gap film. Loose art keeps its packing. The Site bills folhaCobradaM, the copies line reads "5 × 45,9 cm = 229,3 cm" and the buy box explains that length. The Lais case, 5 sheets of 100 cm, bills 5,00 m instead of 5,10 m. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -597,7 +597,7 @@ function pintaFolha(){
|
||||
$('zona').classList.toggle('compacta', folhas.length>0);
|
||||
if(!folhas.length){ $('lista').innerHTML=''; agendaAvaliacao(); previaAoVivo(); agendaEnvios(); return; }
|
||||
|
||||
const tot=folhaTotalM();
|
||||
const tot=folhaCobradaM(); // the metres billed, without the gaps
|
||||
$('lista').innerHTML = '<div class="listaCab"><h4>Seus arquivos</h4><span>'+
|
||||
folhas.length+' folha'+(folhas.length>1?'s':'')+(tot>0? ' · '+fmtM(tot)+' m' : '')+'</span></div>'+
|
||||
folhas.map((x,i)=>{
|
||||
@@ -663,11 +663,10 @@ function pintaFolha(){
|
||||
'<span class="passo"><button type="button" data-passo="-1" data-i="'+i+'" aria-label="Menos uma cópia">−</button>'+
|
||||
'<input type="number" id="repf'+i+'" min="1" max="200" data-repf="'+i+'" value="'+x.rep+'">'+
|
||||
'<button type="button" data-passo="1" data-i="'+i+'" aria-label="Mais uma cópia">+</button></span></div>'+
|
||||
// A conta inteira, como é cobrada: o comprimento exato do arquivo e os
|
||||
// 8 mm entre as cópias (Marcus, 27/11/2026: "falta explicar melhor").
|
||||
// A conta como é cobrada: o comprimento exato do arquivo vezes as
|
||||
// cópias; os 8 mm entre elas não entram (Marcus, 03/12/2026).
|
||||
'<div class="conta">'+(x.rep>1
|
||||
? x.rep+' × '+n1(x.m*100)+' cm + '+(x.rep-1)+(x.rep>2?' espaços':' espaço')+' de 8 mm = <b>'+
|
||||
n1(sub*100+(x.rep-1)*MARGEM_FOLHA_CM)+' cm</b>'
|
||||
? x.rep+' × '+n1(x.m*100)+' cm = <b>'+n1(sub*100)+' cm</b>'
|
||||
: '<b>'+n1(x.m*100)+' cm</b>')+'</div>' : '')+
|
||||
'</div>' : '';
|
||||
return '<div class="rep" data-folha="'+i+'">'+
|
||||
|
||||
Reference in New Issue
Block a user