mega-plant/app
Dave 5f1f30f907 feat(running): show what each vehicle's running cost is made of
The four kinds under running cost - repairs & parts, purchases, insurance
and finance - ARE the whole of a vehicle's running cost. That was true of
the arithmetic but not of the screen: a card showed one number with no
visible parts, and the only breakdown was a hover tooltip on the grid's
total row.

- Each card now shows its four parts, so what the vehicle's spend is made
  of is visible without expanding it. A vehicle with no spend shows
  nothing: "nothing recorded" is already on the card.
- The expanded panel shows the four parts against the vehicle's total.
- The grid's footer shows the fleet's four parts above the fleet total, so
  a month column adds up on the screen instead of on trust.
- The page header states the fleet's four parts and the total side by side.

The parts ARE the spend and there is no fifth source, so the parts and the
total can never disagree. Any change that touches a cost kind must keep
that additivity true.

Also: the labels on this page were text-[10px], under the 12px floor the
mobile checklist sets. They are now 12px.

Two rulings recorded in AGENTS.md:

- FUEL IS NOT A PLANT RUNNING COST. The sites are invoiced for the fuel
  they use. The only fuel that is a plant cost is the fuel a plant vehicle
  takes from the tank for plant work, so a fuel log is never a running-cost
  source however many litres it records.
- Only what is under running cost as it stands. The workbook's per-vehicle
  fixed cost also carries depreciation/ownership and an operator
  allocation; that is capital recovery and overhead, not running cost, so
  it stays out - and the vehicles it covers (the excavator, the site and
  office containers, the generators, the trailers) correctly show no
  running cost on the Overview.
2026-11-05 01:09:45 +02:00
..
(clock)/clock Add Suppliers list; book purchase orders and petty-cash slips against it 2026-10-22 15:43:57 +02:00
(dashboard) feat(running): show what each vehicle's running cost is made of 2026-11-05 01:09:45 +02:00
actions Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
api feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
change-password feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
login feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
globals.css Clock app: search + scanner on one screen; employee on fuel; drop codeless vehicles 2026-10-22 13:55:13 +02:00
layout.tsx feat: show the build commit as a faint corner mark 2026-10-30 01:27:22 +02:00