Skip to main content

Inventory Calculation Formulas & Stock Buckets

Merchants frequently ask: "I have 10 units in my warehouse, but Shopify is only showing 6 available. Why?"

PointNXT isolates physical goods from sellable promises using a multi-bucket stock architecture.


1. The 4 Inventory Buckets​

Bucket Definitions:​

  1. On-Hand Stock (Physical Inventory):

    • The actual physical count of units inside warehouse bins.
    • Increased only when goods are inwarded via GRN or returned & restocked via QC.
    • Decreased only when goods are manifested and leave the dock with a courier.
  2. Reserved Stock (Committed Inventory):

    • Units assigned to live customer orders that have not yet physically departed.
    • Incremented as soon as an order is placed (PENDING or CONFIRMED depending on blockOversell).
    • Decremented when the order is manifested or when the order is cancelled.
  3. Buffer / Safety Stock:

    • A merchant-configured cushion (e.g., set to 2 units) to absorb sudden sync lag or warehouse inventory shrinkage.
  4. Available to Sell (ATS / Published Stock):

    • The number pushed to Shopify, Amazon, Flipkart, etc. ATS=max⁡(0,  (On-Hand−Reserved−Buffer))\mathbf{ATS} = \max\Big(0, \; (\text{On-Hand} - \text{Reserved} - \text{Buffer})\Big)

2. Multi-Facility Stock Aggregation Block Diagram​

The following block diagram shows how physical stock across regional warehouses aggregates into sellable channel quantities:


3. Walkthrough Example: A Day in the Life of a SKU​

Let us trace a SKU (SHIRT-BLUE-M) through a series of daily operations:

Event / ActionPhysical On-HandReserved StockSafety BufferAvailable to Sell (Pushed to Channels)Notes
1. Morning Baseline200218Channels show 18 units in stock.
2. Customer buys 3 on Shopify203215PointNXT reserves 3. Pushes 15 to Amazon.
3. Customer buys 5 on Amazon208 (3+5)210PointNXT reserves 5. Pushes 10 to Shopify.
4. Warehouse packs & ships Shopify order17 (20-3)5 (8-3)210Physical stock drops by 3; reserved drops by 3. ATS stays 10!
5. Amazon customer cancels before packing170 (5-5)215Reserved drops by 5. ATS increases to 15!
6. Supplier delivers 10 new units (GRN)27 (17+10)0225Inwarded to Bin B-02. ATS updates to 25.

4. QA Testing & Verification Rules​

[!IMPORTANT] When validating stock numbers in tests or customer investigations:

  1. Always look at Available to Sell (ATS), not raw On-Hand.
  2. An order that has been packed but NOT yet manifested will keep On-Hand unchanged and Reserved unchanged.
  3. Once manifested, both On-Hand and Reserved decrement simultaneously by the exact quantity dispatched.