Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

456 B
Raw Blame
-- Per-item, per-location tracked-entity pick order. Drives the default
-- selection of the FEFO/FIFO/LIFO/Default dropdown in TrackedEntityPicker
-- when picking serial/batch material. 'Default' = the picker's smart order
-- (expiring soonest first, then oldest created).
CREATE TYPE "pickMethodSortMethod" AS ENUM ('Default', 'FEFO', 'FIFO', 'LIFO');

ALTER TABLE "pickMethod"
  ADD COLUMN "sortMethod" "pickMethodSortMethod" NOT NULL DEFAULT 'Default';