How do I deduct stock only when the order is completed?
Requirements: the Inventory add-on is on, and the product is tracked in an inventory.
Turning it on:
- Open Settings from the sidebar, then Advanced Settings, and pick the Orders tab (الطلبات).
- Under When is stock deducted? choose When the order is completed (the default is When the sale is made).
- Click Update.
What changes with "When the order is completed":
- Products are not deducted at sale. They are deducted once, when the order becomes Completed, from the inventory of the provider on the order at that moment. If you change the provider before completion, the stock comes out of theirs.
- A sale is never refused for low stock: not in the dashboard, the cashier or the store. The store does not show the product as sold out. The create-order form may still show «لا يوجد رصيد كافٍ لدى…» (not enough on hand), but it does not stop you saving the order.
- If the quantity is short at completion, the product is still deducted and the balance goes below zero, with a low-stock alert.
- Cancelling, refunding or removing a line before completion returns nothing to stock, because nothing was taken. A quantity refunded before completion is not deducted.
- After completion, a refund returns stock as usual.
Important: the change applies to new orders only. Every order keeps the rule it was sold under, so switching never deducts an open order twice or skips one.
This setting is changed from the dashboard only.