Skip to Content
SahajFlowHelp Center
Inventory

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

MovementCreated byEffect
Goods receiptPosting a goods receipt for a purchase orderIncreases on-hand stock for accepted quantities
Material issueIssuing material to a projectDecreases on-hand stock
AdjustmentStock adjustment serviceCorrects quantity with a reason
Transfer, reservationInventory servicesTransfer 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

  1. Raise a purchase order with inventory-type lines.
  2. When goods arrive, create a goods receipt against the order.
  3. Enter accepted quantities per line.
  4. Post the receipt.
  5. Stock increases. Service lines are ignored by design.

Take stock out for a project

  1. Open the material issue for the project.
  2. Add the products and quantities.
  3. Issue. On-hand stock decreases.

Watch for low stock

  1. Open Inventory.
  2. Sort or scan by status.
  3. Products at or below their reorder level are flagged.
  4. 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

SymptomLikely causeWhat to do
Stock is zero after creating a productNo ledger movement yetReceive stock through a posted goods receipt
Stock unchanged after receiptReceipt left in draftPost the receipt
Cannot find "adjust stock"Not exposed in this releaseUse a receipt/issue, or ask engineering
Service product shows zeroBy designStock is not tracked for services
Low-stock flag never clearsReorder level too highLower the reorder level on the product

On this page