Files
SGF/packages/inventory-issue/README.md
T
2026-11-02 20:29:34 +02:00

8 lines
796 B
Markdown

# Inventory issue primitive
Common physical issue writer; Laravel host transaction and an explicit authorization callback are mandatory. Locks the warehouse and item, checks the frozen operation hash and ledger revision, refuses insufficient physical quantity and writes a single negative movement. Replaying the same operation returns its original movement.
The host owns permissions, context, reservation/lot/equipment rules, source eligibility and audit. This primitive neither authorizes arbitrary consumption nor manages returns. SGF's synthetic bridge accepts only explicitly mapped, untracked, unreserved articles and new eligible workshop orders.
`scripts/package-inventory-issue.mjs` creates the immutable local Compras artifact. No publication or production installation is implied.