Skip to Content
SahajFlowHelp Center
Workflows

How stock becomes available

Purpose

Explain exactly how a quantity becomes "in stock", why it can differ from what was ordered, and what changes it afterwards.

The model in one sentence

Stock is a ledger of movements; current stock is the sum of the movements that count as on-hand.

Sequence

Purchase order (ordered qty)
        │
        ▼
Goods receipt: Draft ──► Posted
        │                 │ accepted qty only
        │                 ▼
        │         Inventory movement (+)
        │                 │
        │                 ▼
        │          Current stock (derived)
        │                 │
        │      ┌──────────┴──────────┐
        │      ▼                     ▼
        │  Reservation           Material issue (-)
        │  (availability only)   (project consumption)
        ▼
   Order status: Partially / Fully received

What counts and what does not

MovementOn-hand stockAvailability
Goods receipt (posted)IncreasesIncreases
Material issueDecreasesDecreases
Stock adjustmentChanges with reasonChanges
TransferMoves between warehousesNet zero
ReservationNo changeHolds quantity

Rules

  • Only Inventory-type products track stock. Service and non-inventory products are always zero.
  • Only accepted quantities post from a receipt.
  • Draft receipts have no stock effect.
  • Posting is idempotent — a retry cannot double-post.
  • Reversal removes a posted receipt's effect and keeps history.
  • Low stock is current stock <= reorder level.
  • There are no adjustment, transfer, or reservation endpoints in this release; those movements exist in services but are not exposed to users.

What is automatic vs manual

StepAutomatic?
Stock increase on receipt postYes
Stock decrease on material issueYes
Low-stock flagYes
Creating the receipt/issueNo
Adjusting stock directlyNot available through the API
ReorderingNo — raise a requisition or PO

Expected outcome

  • Stock reflects physical movements, not intentions.
  • Every quantity has a traceable document behind it.
  • Low-stock products can be replenished through procurement.
  • Purchase order and goods receipt — the inbound trail.
  • Material issues and projects — the outbound trail.
  • Products — reorder levels and types.
  • Automations — can watch computed availability and notify.

Important things to know

  • No "set quantity" control. Editing a product never sets stock.
  • Reservations do not reduce on-hand stock.
  • Warehouses are read-only in this release.

On this page