N NoBullshit.wiki 中文

Florist inventory count specialist - bundle-stem reconciliation single-file tool - receipts enter by the bundle with each batch's real stems-per-bundle recorded, issues and write-offs leave by the stem across five separate classes, month-end book-on-hand auto-converts against the count into a variety-level variance table sorted by difference, every edit to history leaves a trail, and everything stays in the browser with A5-printable variance sheets

Works with:Claude / GPT-4 classCategories:Flower ShopLevel:Advanced Updated

You are a coding agent. Build a single-file HTML
"flower stock bundle-stem reconciliation
tool" for a flower shop's count specialist:
receipts enter the books by the bundle, issues
and write-offs leave by the stem, and at month
end book-on-hand meets the physical count with
the bundle-stem conversion done automatically
and a variety-level variance table produced.
Runs locally, no network, no external
dependencies, no external libraries.

The pain you are designing for (take it
literally): wholesale flowers arrive in
bundles, the floor consumes stems, and
month-end reconciliation is hand-converted on
a calculator. One wrong conversion figure
skews the entire variety, book-on-hand cannot
be computed, and the count variance dissolves
into "it never adds up anyway."

Core data:
- Variety master: variety name / current
  book-on-hand (stems). Preload sample
  entries for common fresh cuts and foliage;
  add, edit, delete allowed
- Receipt entry: date / variety / bundle
  count / this batch's stems per bundle /
  auto-converted to stems and booked. Stems
  per bundle defaults from the previous batch
  and MUST remain editable - batches simply
  differ
- Outflow entry: date / variety / stem count
  / class, five separate classes: sales,
  issue to orders, write-off, markdown, shop
  use - each class subtotaled at month-end
- Count entry: date / variety / counted
  stems

Reconciliation output:
- Pick a count date and compute: opening +
  receipts - five outflow classes =
  book-on-hand (stems), compared against the
  count for a difference (stems and percent),
  sorted by absolute difference, largest
  first
- Every variety drills into its ledger:
  opening plus every dated in-and-out on one
  screen - a variety that misses starts with
  the ledger, not with the flowers
- Month-end summary: subtotals for the five
  outflow classes, A5-printable for the owner

Conversion discipline (the soul of this
tool):
- Stems per bundle exists only inside receipt
  entries, recorded per batch; there is no
  global conversion rate anywhere
- Editing any historical record (receipt,
  outflow, count) must leave a trail: which
  field, from what to what, when - a
  dedicated change-log page. Smoothing the
  books by quietly editing history is the
  single biggest risk in a reconciliation
  tool, and only the trail makes it
  recoverable

Hard constraints:
- Pure front-end, data in localStorage; offer
  export / import (plain-text JSON) for
  backup; no upload, no accounts, no cloud
  sync
- Print-friendly: variance table and month-end
  summary laid out for A5
- Preload a sample dataset that includes one
  deliberately mis-matching variety, so the
  drill-down-and-diagnose flow is visible the
  moment the file opens

You will not:
- No ordering advice, no usage forecasting, no
  safety stock - purchasing owns those calls;
  this tool reconciles
- No point-of-sale, no order management
- No variety-level "stems per bundle" master
  figure - a global conversion rate is exactly
  how the books stop adding up

Why it is written this way

Attaching stems-per-bundle to the receipt batch rather than the variety is this tool's most important decision. The same variety ships at different counts depending on origin and batch, and most reconciliation tools (and most spreadsheets) fail identically here: one global conversion rate per variety, and the first batch that differs throws every figure after it off. Forcing batch-level recording with an editable pre-filled default pins the question "how many stems in this batch" to the receiving moment - the only moment the invoice is still in hand and the answer is actually available.

Five separate outflow classes exist so variances carry a direction. Reconciliation's purpose is never a number that balances - it is an unbalanced number that points somewhere: a book where sales and write-offs run together produces a variance that explains nothing (sold more, or died more?), and ordering decisions downstream inherit the fog. Keeping "issue to orders" as its own class quietly buys a second feature: month-end, the issue subtotal dropped next to the production board is a lightweight WIP check. The tool nails the discipline at entry, and the count itself shrinks to just counting flowers.

The drill-down ledger sits beside the variance table because that is how diagnosis actually moves. Step one of "this variety misses" is always the ledger - was the opening right, what came in on which day, what went out and as what class. On paper that step means flipping through a binder; here it is one click. The sample dataset ships with one deliberately broken variety so a first-time user sees that value inside three minutes instead of reading a help page.

The change trail is a reconciliation tool's floor of credibility. The most common spreadsheet accident is not a wrong formula - it is "edit until it balances": the variance refuses to close, so the book figure gets nudged onto the count, the books go clean, and the problem disappears from view. The tool cannot stop the urge to edit, but it can make every edit carry a name and a timestamp: the month-end variance table is only worth showing the owner if every number in it survives the question "where did this come from?"

Variables

Variable Description
Default stems per bundle The reference figure carried forward for a variety's first batch - record it once, from the invoice, and treat it as a hint only thereafter; for invoices that state no count, ask purchasing on the spot and write it down, never backfill later
Shop-use scope What "shop use" includes - photo-shoot flowers, display swaps, gifts; settle one definition and keep the five classes frozen at five, with no mid-month additions
Backup rhythm How often the JSON gets exported - once after every count entry at minimum; if localStorage clears, the data is gone, and exported file names should carry the date

single-file toolreconciliationbundle-stem conversion