Stock reservation
Hold a warehouse's stock for a Sales Order row so other orders cannot deliver it.
A Stock Reservation Entry holds an item's stock in one warehouse for one Sales Order row. Held stock is counted in the Bin's Reserved Stock, and a Delivery Note against that row draws on it.
Turn it on
| Stock Settings field | Default | Effect |
|---|---|---|
| Enable stock reservation | Off | Off clears Reserve Stock on every Sales Order row |
| Auto reserve stock | Off | A new Sales Order starts with Reserve Stock ticked |
| Allow partial reservation | On | Off skips a row whose stock does not cover it |
Reserve for a Sales Order
Tick Reserve Stock on the Sales Order. Rows of non-stock items are cleared.
Submit. ERP makes one submitted Stock Reservation Entry per row that has stock to reserve, in the row's warehouse.
Deliver. A Delivery Note against the row moves the entry's Delivered Qty on submit, and back on cancel.
Cancelling the Sales Order cancels its reservations.
To reserve later, or only some rows, call erp.sales_order.create_stock_reservation_entries with the order's name and, optionally, items_details rows of sales_order_item, warehouse and qty_to_reserve. cancel_stock_reservation_entries lets them go. The answer lists the rows it skipped and why.
erp.sales_order.make_delivery_note with for_reserved_stock true makes a Delivery Note that takes each reserved row from its reserved warehouse.
From a Pick List
On a submitted Pick List for Sales Orders, erp.pick_list.create_stock_reservation_entries reserves each row's picked quantity in the warehouse it was picked from.
The entry
| Field | Means |
|---|---|
| Voucher Type, Voucher No | The Sales Order the stock is held for |
| Item Code, Warehouse | What is held and where |
| Reserved Qty | How much is held |
| Delivered Qty | How much of it has been delivered |
| Status | Draft, Partially Reserved, Reserved, Partially Delivered and so on |
The reserved quantity cannot exceed the stock not yet reserved in that warehouse, nor what the row still has to deliver. A whole-number UOM cannot reserve a fraction.
Example
Stores has 10 W. Sales Order A for 6 W with Reserve Stock submits and holds 6. Sales Order B for 8 W with Reserve Stock and Allow partial reservation on holds the remaining 4. The Reserved Stock report lists both, with what is left to reserve.
Reservations by serial or batch number are not built yet.