Marcus: "o pedido mínimo de um metro deve ser somente para o primeiro
metro, após isso deve se somar a metragem de cada arquivo", "Soma tudo e
arredonda uma vez só", and for different products "Pode ser sim": each
product apart at its price, the minimum for the whole order. Order #246
(three ready sheets of 3,74, 0,24 and 0,22 m) was 5,80 m with 1 m per item;
it is now 4,20 m.
pricing.bill_order replaces the per-item minimum and bill_splits: per
product the exact lengths (a ready sheet without its gaps) are rounded once
with the 8 mm grace, the minimum's difference goes to the first item's
product, and each product's total is shared back to its items in 10 cm
steps (each its length rounded down, the missing steps to the largest
fractions, the minimum to the product's first item), for Tiny's 10 cm SKUs
and the cards. A share of 0 m adds no Tiny line. The print file's guard
allows an item one 10 cm step under its length. The Site cart shares the
same way (cobrarPedido), split sheets round once, the buy box says the
items of a product are summed and rounded once, and the Montador's
estimate rounds its sum once. Contract: output/revisao/contrato-minimo-pedido.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
designer_hours ignored the hours stored with the order's treatment; an order
keeps the hours it was sold with, 48/24 only when none are recorded.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Under each art the Prumo warns about, the customer can choose Ajuste Fino
or Ajuste Fino Redesenho (vectorize or redraw, per art, +48 h, no batch
price). It is a disabled product until Gestão prices it in the Site tab;
the server charges it per chosen art, Tiny gets a DTFIMP.AJF.RED line and
two more business days, the card shows 'Redesenho · N artes' and the
designer gate applies. The preview loop is slice R2.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The designer treatment becomes Ajuste Fino, priced per art with a batch
band set in the Site tab (e.g. R$ 9,90, from 10 arts R$ 6,90). Under each
art the Prumo warns about, the Site offers 'Quer que um designer resolva?
Ajuste Fino'; the cart keeps 'Ajuste Fino em todas as artes'. The server
counts the chosen arts, Tiny gets the line with that quantity, the card
shows 'Ajuste Fino · N artes'. Old carts asking the treatment for the
whole order keep working.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
app/cart_pricing.py prices a cart once for every caller: the catalog read
once, a pure price_items (base price, manual extra, splits, bands) pinned
against today's arithmetic by a 16-cart characterization test, then the
grade rules, the coupon and the treatment. create_quote and approve call
it instead of their two drifting copies; the Site's pre-check now counts
the manual-file extra like the approval does.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>