Description
Validate nonnegative stock counts and closing within opening+restocked.
Hospitality plans use room counts, covers, service durations, portions, and stock balances. A local component applies supplied operational rules without confirming actual availability, service quality, or adequate capacity.
Validate nonnegative stock counts and closing within opening+restocked.
When to use this tool
Use Minibar Restock Opening Closing Balance when you need one explicit hospitality planning or reconciliation component.
How to use the tool and how it works
- Enter opening, restocked, closing, complimentary. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read used, chargeable. Use the output convention below.
Validate nonnegative stock counts and closing within opening+restocked. Return used as opening+restocked-closing and subtract complimentary, which cannot exceed used, for chargeable.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| opening | Opening | Required. Safe integer; minimum 0. |
| restocked | Restocked | Required. Safe integer; minimum 0. |
| closing | Closing | Required. Safe integer; minimum 0. |
| complimentary | Complimentary | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| used | Used | Required. Safe integer. |
| chargeable | Chargeable | Required. Safe integer. |
{
"input": {
"opening": 10,
"restocked": 4,
"closing": 8,
"complimentary": 1
},
"output": {
"used": 6,
"chargeable": 5
}
} Limitations and assumptions
- Counts refer to one item and period; depletion is not automatically a verified sale, and no price or guest liability is determined.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- 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. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Check the complete booking, layout, staffing, and service plan before relying on an operational estimate.
References
Similar or alternative tools
- Medicine Carton Blister Unit Reconcile
Multiply cartons by blistersPerCarton, add looseBlisters, multiply by unitsPerBlister, and add looseUnits.
- Ward Stock Count Gap
Subtract nonnegative integer expected from observed for gap.