Description
Return lineFill as the share of fully delivered lines and unitFill as total delivered divided by total ordered, then gap=lineFill-unitFill.
A logistics record separates ordered, reserved, dispatched, received, lost, and available quantities. It can also distinguish volume, mass, packaging, and cost bases. A balance or ratio checks supplied records and assumptions without verifying physical inventory, a contract, or safe loading.
Return lineFill as the share of fully delivered lines and unitFill as total delivered divided by total ordered, then gap=lineFill-unitFill.
When to use this tool
Use Order Fill Line Versus Unit Gap when you need the particular supplied count, loading-budget, timing, or cost term in a logistics record.
How to use the tool and how it works
- Enter orderedUnits, deliveredUnits. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read lineFill, unitFill, gap. Use the output convention below.
Return lineFill as the share of fully delivered lines and unitFill as total delivered divided by total ordered, then gap=lineFill-unitFill. Require aligned nonempty positive orders and deliveries within each order.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| orderedUnits | Ordered Units | Required. Array of safe integer; maximum items 256. |
| deliveredUnits | Delivered Units | Required. Array of safe integer; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lineFill | Fraction of fully completed lines. | Required. Finite number. |
| unitFill | Delivered units divided by ordered units across all lines. | Required. Finite number. |
| gap | Gap | Required. Finite number. |
{
"input": {
"orderedUnits": [
10,
90
],
"deliveredUnits": [
10,
45
]
},
"output": {
"lineFill": 0.5,
"unitFill": 0.55,
"gap": -0.050000000000000044
}
} Limitations and assumptions
- The line metric weights each row equally while the unit metric weights quantities. Duplicated lines, compatible unit definitions, service targets, and actual fulfillment are not verified.
- The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.
Alternative or Complementary methods
Check the original stock, shipment, measurement, and contract records before acting on a balance. A full packing, routing, procurement, or load assessment may require more than the returned term.
References
Similar or alternative tools
- Order Line Overdelivery Share
Return overdelivery=max(0,delivered-ordered) and share=overdelivery/ordered, requiring positive ordered and nonnegative delivered.
- Order Line Under Delivery Tolerance Gap
Calculate shortfall=max(0,ordered-delivered), allowable=ordered*suppliedTolerance, and margin=allowable-shortfall.