Files
2026-11-02 20:29:34 +02:00
..
2026-11-02 20:29:34 +02:00
2026-11-02 20:29:34 +02:00
2026-11-02 20:29:34 +02:00

Physical return to the same stock book

DeliveryReturnWriter writes one positive workshop_return_in movement inside the host transaction. It requires authorization, a frozen operation, explicit physical warehouse receipt and a matching original issue movement. Warehouse, article, operation and original movement are locked. Ledger revision and cumulative returned quantity are checked; replay returns the existing movement.

The host must verify the returned observation, source eligibility, unconsumed/unallocated quantity, independence, context, rights and audit. This primitive caps physical returns by the original issue; it does not know workshop allocations. It never cancels consumption, corrects financial documents or creates another stock balance.

The current adapter is synthetic SGF only. Native Purchasing return-command integration, operational installation, other drivers and capacity remain unvalidated.