How to Check Whether an Order Can Be Split Across Stock Batches in Excel
Seventeen units are on the shelf. The order needs nine. That still does not tell you whether the order can be filled from one batch.
This synthetic example separates physical stock, released free stock and the largest eligible batch. Download the Excel workbook to compare a split order with a single-batch requirement.
The reported problem
ERPNext issue 53271, reported March 10, 2026 for v16.8.2, describes a POS sale validated against one batch despite sufficient stock across batches. This workbook audits that capacity distinction. It does not reproduce the reported defect, verify a workaround or establish how a current ERP version behaves.
Physical stock and usable stock answer different questions
Every row represents SKU-X in Each at a fixed snapshot. Reserved quantities are unavailable. Only Released stock at the selected warehouse qualifies. Quality release is supplied evidence; expiry and shelf life are outside this exercise.
| Batch | Warehouse | Quality | On hand | Reserved | Free | Eligible at Main |
|---|---|---|---|---|---|---|
| B-A | Main | Released | 4 | 0 | 4 | 4 |
| B-B | Main | Released | 7 | 2 | 5 | 5 |
| B-H | Main | Hold | 6 | 0 | 6 | 0 |
| B-S | South | Released | 8 | 0 | 8 | 0 |
Main has 4 + 7 + 6 = 17 physical units. Its released free quantity is 4 + (7 – 2) = 9 units. The held six are excluded. South’s eight do not belong to Main’s pool.
Can those nine units span two batches?
The order needs nine units. The largest eligible batch has only five free units. The policy decides whether those separate balances can fulfill the complete order.
| Split allowed | Capacity under policy | Capacity shortfall | Complete-order plan |
|---|---|---|---|
| Yes | 9 | 0 | B-A 4, then B-B 5 |
| No | 5 | 4 | None |
That four-unit shortfall is a single-batch capacity gap, not evidence that Main lacks four more units in total. The physical records have not changed. Pooling batches would answer a different question when splitting is prohibited.
The workbook proposes complete orders only. It does not quietly turn the failed nine-unit single-batch order into a five-unit partial pick. Confirm the actual order policy before using any allocation.
FIFO after eligibility
B-A was received November 1 and B-B November 2. With splitting allowed, FIFO therefore takes four from B-A and five from B-B. B-H is older, but its Hold state keeps it out. The rule uses receipt timestamp first and batch ID to break a tie.
For a single-batch order of five, B-B is the first capable eligible batch. For an order of four, the earlier B-A can cover it. FIFO does not make a batch capable of holding more free stock than its record supports.
Inspect the source cells
On Batch review, B5 selects the warehouse, B6 holds the order quantity and B7 controls splitting. A17:F20 contains the four raw batch records. G:L contains calculated checks, free and eligible quantities, FIFO ordering and the proposed picks.
- B-A’s four units and zero reservation: E17:F17.
- B-B’s seven units and two-unit reservation: E18:F18.
- The held batch: C19 and E19.
- The other warehouse: B20 and E20.
- Receipt dates: D17:D20. Eligibility and split rules: A23:A26.
B10:B14 shows physical stock, released free stock, largest batch, selected capacity and shortfall. L17:L20 shows the active plan. Change B7 to No and the nine-unit complete-order plan disappears. A missing reservation or duplicate batch ID produces a review state rather than a completed plan. Extend all linked ranges together before adding batches.
Test record
The workbook passed 156 independent comparisons across 13 states, including policy changes, reservations, held stock, source reordering and warehouse scope. Eleven final exported cached values matched. The full worksheet was visually reviewed. Native desktop Excel recalculation was not tested.
On November 23, 2026, Jolene could not read this file through its uploaded-source path, including after one re-ingestion. A separate test supplied the byte-identical public Excel download linked above. Jolene read that file, reproduced the raw records and policy cells, and matched the independently calculated capacities and 4 + 5 FIFO plan. Its returned source-cell references were checked against the original workbook. This verifies the public-file analysis, not recovery of upload ingestion.