Stock management
What Is It?
Stock is the quantity of a stock-tracked product you hold. SahajFlow does not store a single "stock on hand" number on the product. It stores a ledger of movements, and current stock is the sum of those movements.
Products of type Service and Non-Inventory never hold stock and always report zero.
Why Would I Use It?
Because stock is derived, it cannot drift out of sync with the documents that changed it. A goods receipt, a material issue, and an adjustment each leave a row, so you can always answer "why is the quantity what it is?".
Before You Begin
- Inventory on your plan (Premium).
- Products created with type Inventory — see Products.
- Warehouses set up. Warehouses are read from the API in this release; there is no warehouse-creation screen confirmed.
- Procurement enabled if you receive stock through purchase orders.
Where Can I Find It?
- Cash → Stock (
/dashboard/q2c/inventory) for the stock view. - Inventory for the product records.
- Receipts are posted in ERP → Purchase Orders and ERP → Receipts.
How Does It Work?
Current stock is calculated
Product.current_stock sums the product's ledger rows whose type counts as on-hand. Only
physical movements count; reservations hold availability but do not change on-hand
stock. The value is computed on read, so it is always consistent with the ledger.
What moves stock
| Movement | Created by | Effect |
|---|---|---|
| Goods receipt | Posting a goods receipt for a purchase order | Increases on-hand stock for accepted quantities |
| Material issue | Issuing material to a project | Decreases on-hand stock |
| Adjustment | Stock adjustment service | Corrects quantity with a reason |
| Transfer, reservation | Inventory services | Transfer moves between warehouses; reservation holds availability without moving on-hand |
What you can do in the UI in this release
- View products and their derived stock.
- See low stock when derived stock is at or below the product's reorder level.
- Receive stock by posting goods receipts.
- Reduce stock by issuing material against a project.
Not exposed through the API in this release: direct stock adjustment, transfer, and reservation endpoints. The models and services exist; the routes do not. Do not tell users they can "adjust stock from the Stock page".
Low stock
Product.is_low_stock() is true when the product tracks stock and current stock is less
than or equal to its reorder level. Reorder level is set on the product.
How to Use It
Bring stock in
- Raise a purchase order with inventory-type lines.
- When goods arrive, create a goods receipt against the order.
- Enter accepted quantities per line.
- Post the receipt.
- Stock increases. Service lines are ignored by design.
Take stock out for a project
- Open the material issue for the project.
- Add the products and quantities.
- Issue. On-hand stock decreases.
Watch for low stock
- Open Inventory.
- Sort or scan by status.
- Products at or below their reorder level are flagged.
- Raise replenishment (requisition or purchase order).
What Happens Next?
- Product stock reflects the ledger immediately after a receipt is posted or an issue is recorded.
- Reports that read inventory use the same computed value.
- Posting the same receipt twice is blocked: receipt posting is idempotent and refuses a non-draft receipt.
Important Things to Know
- No editable "quantity" field exists. Editing a product does not set stock.
- Do not promise adjustments/transfers in the UI. They are backend-only here.
- Reservations do not reduce on-hand stock, only availability.
- Cancelling or reversing a receipt reverses its stock effect; check the receipt's status before re-posting.
- Service and non-inventory products always show zero.
- The Stock screen's exact columns were not exercised, so treat labels as unverified.
Common Problems
| Symptom | Likely cause | What to do |
|---|---|---|
| Stock is zero after creating a product | No ledger movement yet | Receive stock through a posted goods receipt |
| Stock unchanged after receipt | Receipt left in draft | Post the receipt |
| Cannot find "adjust stock" | Not exposed in this release | Use a receipt/issue, or ask engineering |
| Service product shows zero | By design | Stock is not tracked for services |
| Low-stock flag never clears | Reorder level too high | Lower the reorder level on the product |
Related Guides
Products
A product is anything you sell, buy, or deliver: a service, a physical item you stock, or an item you buy per job without keeping stock. Products are th…
Reach campaigns
Reach is the email marketing area: contacts with consent, audiences, templates, approved campaigns, delivery events, and analytics.