Plantation cash office clerk: harvest-season cash-flow & wage ledger tool - single-file offline web page; log daily produce income (cash and credit as separate columns), wages, farm supplies, and miscellany, and it computes daily cash balance, weekly summaries, and a credit-share trend; the only red flag is a day the cash goes negative; no accounting categories, no network, and days you forgot to enter stay blank on the chart rather than interpolated
Build me a directly usable single-file web tool
(HTML with inline CSS/JS, opens on double-click,
runs offline, no installs, no accounts, no
network requests) for a plantation's harvest-
season cash flow and wage ledger.
Entry (three minutes a day, one line per item):
- Date / class (one of: income / wages /
supplies / misc) / amount / cash or credit
(income only: cash enters the cash balance,
credit only enters receivables) /
counterparty (buyer or worker name) / note
- Wages support per-worker lines: date / worker
name / amount, produced with the daily
settlement, auto-rolled into that day's
outflow
- Spending always records cash out; supplies
bought on credit record a payable, with a
balancing cash line on the payment date
- "Copy yesterday" for recurring lines (the same
picking crew's piece wages): edit numbers,
save
Computation and output:
1 Daily cash balance table
- Each day: opening + cash income - cash
spending = closing
- Credit income and credit purchases enter the
ledger balances only, never the cash balance;
a day going negative turns the whole row red -
the tool's only red flag
2 Weekly summary
- Per week: cash income / new credit / credit
collected / wages / supplies / misc / weekend
cash
- Printable with a blank signature line (for
owner or clerk reconciliation)
3 Credit view
- Receivables accumulated per buyer, with this
week's movement
- Credit-share trend: new credit / total weekly
income, drawn as a one-line text bar chart
4 Missing-day check
- Calendar view: days with entries solid, days
without hollow - hollow means missing; the
trend chart breaks at those days, never
interpolates across them
Hard requirements:
- No accounting categories, vouchers, or debits
and credits - it is a cash journal, not a
bookkeeping system; category vocabulary must
not appear
- Amount fields reject negative numbers
(corrections enter as a separate reversal
line: same class, note says reversal, minus
sign on the figure, summed out automatically)
- Data in browser local storage; CSV export
includes all entries plus all three result
tables; export filename carries the date
- Season close: one click locks the data
read-only and clones a fresh copy for the
next season
Why it is written this way
Splitting income into cash and credit - with only cash entering the balance - is the tool's most important rule. The real danger of harvest season is not low book income but the gap between book income and pocket cash: a week books twenty thousand, fifteen of which sits on buyer accounts, while wages demand cash. A ledger that mixes the two discovers the problem on the very day the cash goes negative. Once separated, the credit-share trend emerges on its own - a number rising week over week is the earliest alarm there is, earlier than any after-the-fact analysis.
The single red flag reserved for negative cash days is deliberate restraint: the more warnings a tool emits, the less each one weighs. When everything else on the daily table reads normal and one row goes red, that row gets seen, questioned, and handled - a good warning system says one thing its whole life, but when it speaks, nobody ignores it.
Blank days with broken trend lines, never interpolated, is an honesty requirement: some harvest day you will be too tired to log anything, and an interpolation algorithm would smooth that gap into a comfortable curve - pleasant to look at, and quietly erasing the fact that something happened that day. The visible break reminds you to backfill daily, and a break that never gets backfilled honestly declares "this stretch of trend is not trustworthy". A ledger keeps its credibility through honest gaps, not through unbroken curves.
"No accounting categories" pins the tool to the clerk's real working surface: harvest cash management is four pockets - money in, wages out, supplies, small stuff. The moment categories, vouchers, and double-entry appear, the tool goes from three minutes a day to thirty minutes of confusion - and then nobody enters anything and the ledger dies. Simple enough to fill in without thinking is the only kind of ledger that stays alive; only a living one is useful.
Variables
| Variable | Notes |
|---|---|
| Crew template | The workers who usually crew together - the payoff of "copy yesterday"; a stable roster means weekly edits are just the numbers |
| Credit-collection entry | On the day a buyer pays, log a "credit collected" line against receivables - the most-forgotten entry; missing it inflates receivables and distorts the credit trend |
| Season-close date | When to lock the season's data - best after the last wage clears and the major receivables land; too early complicates backfill, too late blends two seasons together |