PutAwayTask
Updated
A put-away task moves on-hand quantity from one cell to another when Confirm put-away sets it to Confirmed. A saved Draft writes no register.
| Kind | Document |
| Module | Inventory |
| Menu | Inventory → Documents → Put-away |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
FromCell |
From cell (receiving) | StoreCell |
Table parts#
Lines#
PutAwayTaskLines, caption Lines.
| Field | Caption | Points at |
|---|---|---|
Item |
Item | Item |
Quantity |
Quantity | decimal |
ToCell |
To cell (storage) | StoreCell |
Unit |
Unit | UnitOfMeasure |
BaseQuantity |
Qty in base unit | decimal |
BaseQuantity is hidden. It is filled on save from Quantity and Unit. Stock is posted from it when it is not zero.
Commands and states#
The stored captions match the names: Draft, Confirmed. Draft is the initial state and stays editable. Confirmed is read-only. The declared transitions are Draft to Confirmed and Confirmed to Draft. The only command is bound to Draft.
| State | Command | What happens |
|---|---|---|
| Draft | Confirm put-away | Confirmed. Two Stock movements per line. The command refuses an empty task, a base quantity that is not above zero, a source cell whose purpose is not Receiving and a target cell whose purpose is not Storage while Enforce warehouse tasks is on, and a quantity above the on-hand balance. Posting then refuses a quantity above the free balance after other documents' reservations. |
| Confirmed | — | No command is bound. The card is read-only. |
Registers#
On Confirmed, PutAwayTaskTx writes Stock. For each line the resource Qty is minus on FromCell and plus on ToCell. Dimensions are Item and Cell. The quantity is BaseQuantity when that is not zero, otherwise Quantity. No other register moves. There is no ledger posting.