N NoBullshit.wiki 中文

Bathhouse purchasing & ordering - consumable reorder-point and season-switch calculator, single file - winter and summer traffic at a bathhouse can differ several-fold, so an order smoothed on end-of-summer usage runs out of bath wraps in the first week of winter; the usage engine is season profile × per-guest coefficients, not a historical average; one supplier lead time before each season switch date, the whole table automatically recomputes on the next season's expected headcount; amenity and dated stock is capped by expiry, paper and wraps by storeroom capacity and damp - three lines side by side, the order quantity taken from their intersection; the Spring Festival supplier shutdown window gets its own early build-up; coefficients are never pre-filled, no industry averages, and headcount forecasting stays a business judgment - the user supplies the numbers, the tool only does arithmetic

Works with:Claude / GPT-4 classCategories:BathhouseLevel:Advanced Updated

You are a coding agent building an in-house tool for a bathhouse.
Build a single-file HTML tool (HTML, CSS, and JS all inline, no
external dependencies, no network requests, opens by double-
click) that tells purchasing when to order guest consumables and
how much - at this house, peak and off-season headcount differ
several-fold, and any tool built on historical averages fails
here by construction.

Scope covers guest consumables only: bath wraps, towels and
linens (the purchased-replacement share), disposable slippers,
bulk shower amenities, single-use items. Treatment chemicals
(they run on their own receiving-and-storage track) and snack-
bar goods (driven by covers and sessions) are outside this
tool - items with different usage engines sharing one tool all
get computed wrong.

Core design: the usage engine is "season profile × per-guest
coefficients", not smoothed historical sales. An average taken
at the end of summer can never catch the first week of winter;
the tool switches by season profile, and one supplier lead time
before each switch date it recomputes every item on the next
season's expected headcount.

[Input section 1 - season table]
- Seasons defined by the user (e.g. peak / shoulder / off, or
  twelve monthly profiles); each records: name, start and end
  dates, expected daily headcount, expected overnight-guest
  share
- Expected headcount is entered by the user from this house's
  history and business plan - the tool forecasts nothing;
  forecasting is a business judgment, arithmetic is the tool's
  job
- Switch dates take effect automatically: on the date, every
  item recomputes on the new season's headcount - no button to
  press, no reminder to fire

[Input section 2 - item records]
- Per item: name, pack size, supplier lead time, safety-stock
  days, current stock, storage footprint (unit volume or a
  conversion factor)
- [Hard gate] Per-guest coefficients are never pre-filled: day-
  guest and overnight-guest coefficients are calibrated
  separately (overnight guests naturally run through more wraps
  and towels); first use enters "calibration mode", estimating
  per-guest use from this house's issuance standard, written
  into the record only after the user confirms - an
  uncalibrated item displays "uncalibrated - no output" and no
  estimate
- Items with a shelf life (bulk amenities, dated consumables)
  record shelf-life months and the current stock's lot expiry
  date

[Computation and output]
- Expected daily use = expected headcount × (1 − overnight
  share) × day-guest coefficient + expected headcount ×
  overnight share × overnight-guest coefficient; the formula is
  shown expanded in a "method" panel
- Reorder point = expected daily use × (lead time + safety-
  stock days)
- Main table, three lines side by side: item / current stock /
  days of cover / reorder point / expiry-cap days / capacity-
  cap days / status
- Expiry cap: if current stock plus the suggested order cannot
  be used up before the nearest lot expiry, the order is
  trimmed down and flagged "expiry-capped" - this flag is not
  a stockout warning, it is a "do not order more" warning
- Capacity cap: a per-item storage-days ceiling derived from
  the storage footprint of the wet-area stockroom (paper and
  wraps absorb damp over long storage; the user sets the
  ceiling per stockroom condition); exceeding it trims the
  order too and flags "capacity-capped"
- Suggested order quantity is the intersection of the reorder
  point and both caps, rounded up to whole packs, with both
  the pre- and post-rounding numbers shown
- Holiday window: enter supplier shutdown dates (e.g. Spring
  Festival); one lead time plus the shutdown's required
  quantity is pulled forward automatically and flagged
  "holiday window"
- Season-switch notice: within one lead time of a switch date,
  the top of the main table shows "entering <next season name>
  on <date> - reorder points move up/down on the new headcount"

Hard requirements:
- No external CDN, fonts, or icons; no network requests; data
  never leaves the machine
- Season table and item records export and import whole (JSON
  or equivalent)
- Any input change recomputes live - no "calculate" button
- Print view: main table + suggested quantities, printable as
  one page for supplier calls

Prohibitions:
- No pre-filled default coefficients and no "industry-average
  consumption" - whether the ticket includes overnight stays
  and whether wraps are charged differ house to house
- No automatic ordering and no supplier price comparison -
  whether to act on these numbers is the buyer's judgment
- No money output - quantity and timing are this tool's
  boundary; prices stay out
- No built-in default season calendar - the winter inflection
  differs by city and by house; seasons can only be defined by
  this house

Why it is written this way

The engine is the season profile, not the historical average, and that is the tool's entire reason to exist. A historical average serves fine in a business with steady traffic; in a bathhouse whose winter and summer headcount differ several-fold it is a slow poison - the summer-smoothed quantity trails the first winter week by a fixed margin, and what breaks is exactly the item that wounds the experience the moment it runs out: wraps, slippers. Recomputing on the next season's headcount one lead time before the switch date presses the lag inside the supplier's lead time - the arithmetic changes gear while the goods are still on the truck, not on the day the season turns.

Two caps beside the reorder point supply the missing half of the usual "reorder when below the line" rule. Ordinary tools intercept one direction of error - stockouts. A bathhouse has two opposite ones: amenities over-bought past their expiry, and paper and wraps over-bought into damp storage in a wet-area stockroom. The expiry cap intercepts the first, the capacity cap the second; three lines side by side show the buyer "time to order" and "do not order more" at once. Neither bargain is available to a single-line tool.

Day-guest and overnight-guest coefficients carry the same denominator logic as the per-guest cost audit: in a house whose tickets include overnight stays, overnight guests naturally use more wraps and towels, and one merged coefficient reads peak season (high overnight share) as a consumption anomaly - then orders the wrong quantity. Calibrating the coefficients separately and letting the season table's overnight share do the conversion means structural change stops impersonating usage change.

The tool computes no money, forecasts no traffic, places no orders - three boundaries, each blocking a specific drift. Let amounts and price comparison in, and the tool slides into supplier management; let traffic forecasting in, and the season table becomes a showcase for guesses; let auto-ordering in, and one mis-calibrated coefficient becomes one wrong purchase order. The user supplies numbers, the tool does arithmetic, the buyer decides - keep the three apart and a small tool stays standing.

Variables

Variable Description
Season split How many seasons and their dates - set from this house's own traffic history; two seasons (peak and off) are enough, no need to force twelve
Per-guest coefficients Day-guest and overnight-guest calibrated separately - per the house's issuance standard; any change to the issuance standard triggers recalibration
Capacity-cap days How long each item can sit safely in the wet-area stockroom - set by dehumidifying and packaging; better too short than too long
Holiday shutdown window Main suppliers' shutdown start and end (Spring Festival and the like) - updated yearly, and the week it changes, run the full table once

reorder-pointseasonal-planninginventory-tool