Files
dtf-system/app/migrations/202611271200_reprint-items.sql
Cauê Faleiros b8496b858f
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 7m55s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m34s
feat: a reprint sends only the items chosen to the machine (Marcus, 2026-11-26, #105)
An order the machine already printed, back in Arte conferida, sends again
only the items whose final changed since the machine took them; the panel's
"Vai para a máquina" shows and changes the choice, and the card says
"Reimpressão". The order stays one card. The pass to Revisão keeps the
items printed, so the machine's metres count only those.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-27 10:00:54 -03:00

6 lines
378 B
SQL

-- Reprinting some items of an order (Marcus, 2026-11-26, #105): the items
-- that go to the machine this time (NULL: all), and on each pass from
-- Imprimindo to Revisão the items that were printed, for the machine's metres.
ALTER TABLE dtf_local.orders ADD COLUMN IF NOT EXISTS print_items integer[];
ALTER TABLE dtf_local.movements ADD COLUMN IF NOT EXISTS items integer[];