Commit Graph

5 Commits

Author SHA1 Message Date
Cauê Faleiros
911892351f 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
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>
2026-12-03 11:24:13 -03:00
Cauê Faleiros
57851abffc fix: the designer's extra hours come from the order's own record
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>
2026-11-12 11:25:09 -03:00
Cauê Faleiros
38f947d632 feat: Ajuste Fino Redesenho in the cart (Marcus 12/11, slice R1)
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>
2026-11-12 11:05:17 -03:00
Cauê Faleiros
dedcbb6aad feat: Ajuste Fino priced per art, with the offer under each Prumo warning (Marcus 10/11, point 1)
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>
2026-11-11 14:21:14 -03:00
Cauê Faleiros
31b44a4fac refactor: one pricing module for the Site's check and the approval
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>
2026-11-09 17:12:49 -03:00