feat: 8 mm of clear film between the copies and sheets of a ready sheet, billed (Marcus, 2026-11-26)
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 7m43s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m23s
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 7m43s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m23s
The Site stacked a ready sheet's copies with nothing between them (#81's were 0,3 mm apart). Now 8 mm separates each copy and each sheet from the next, and the metres include it, as Marcus confirmed. A new cart without the gap is refused with the reason; a quote made before is still reviewed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -307,6 +307,8 @@ function carrinho(){
|
||||
const placements=[];
|
||||
sources.forEach((source,source_index)=>{
|
||||
for(let copy_index=0;copy_index<source.copies;copy_index++){
|
||||
// MARGEM_FOLHA_CM entre uma cópia e a próxima, nunca depois da última.
|
||||
if(placements.length)y+=MARGEM_FOLHA_CM;
|
||||
placements.push({source_index,copy_index,x_cm:0,y_cm:+y.toFixed(4),
|
||||
width_cm:source.width_cm,length_cm:source.length_cm,
|
||||
rotation_degrees:0,mirrored:false});
|
||||
|
||||
@@ -123,7 +123,13 @@ let CLIENTE='SEU NOME AQUI', PEDIDO='000000';
|
||||
|
||||
let modo=null, artes=[], recemChegada=null, metros=0, nota=0, reencaixado=false;
|
||||
let folhas=[]; // [{f, med, rep, m}] · o cliente pode subir várias
|
||||
const folhaTotalM=()=>folhas.reduce((t,x)=>t+(x.m||0)*(x.rep||1),0);
|
||||
// Entre uma cópia e outra da folha pronta, e entre uma folha e outra, 8 mm de
|
||||
// filme limpo para o recorte; entram na metragem cobrada (Marcus, 26/11/2026).
|
||||
const MARGEM_FOLHA_CM=0.8;
|
||||
const folhaTotalM=()=>{
|
||||
const copias=folhas.reduce((t,x)=>t+(x.m>0?(x.rep||1):0),0);
|
||||
return folhas.reduce((t,x)=>t+(x.m||0)*(x.rep||1),0)+Math.max(0,copias-1)*MARGEM_FOLHA_CM/100;
|
||||
};
|
||||
// O cliente declara o que está mandando escolhendo o produto, em vez de o site
|
||||
// adivinhar pelo formato do arquivo. A declaração de folha montada é conferida na
|
||||
// medição: uma imagem sem pixel para ocupar a largura do filme não é uma folha.
|
||||
|
||||
Reference in New Issue
Block a user