mega-plant/app/(dashboard)
David b0c70e9210 Stop the Running Costs grid at the current month
Insurance and finance genuinely recur, so left to fill all twelve months they made
November and December look known — ~R470k a month of phantom figures for months that
have not started, which is the "it will confuse the people" case exactly.

Both halves of the fix are needed:

- machineRunningCosts() caps every source at the horizon, so no phantom figure is even
  computed. YTD is therefore genuinely year-to-date and moves as the year goes on.
- RunningView renders only that many columns. Future months are NOT rendered empty:
  an empty column still reads as "we have a figure of zero", which is the same
  confusion in a quieter form.

October is shown and is expected to grow as repairs and purchases land against a
vehicle. A PO dated beyond the horizon is skipped silently, which is not the same as
an undated PO — only a genuinely unreadable date is reported.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-09 12:35:52 +02:00
..
charts feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
expenses feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
income Split the invoice register into Internal and External Invoices 2026-10-08 11:49:48 +02:00
overheads feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
plant feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
running Stop the Running Costs grid at the current month 2026-10-09 12:35:52 +02:00
settings feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
sites Keep a site's invoice table consistent with its own totals 2026-10-08 12:07:07 +02:00
layout.tsx Add Running Costs sub-pages: insurance, financing, purchases, oil, operators, mechanics 2026-10-09 01:06:27 +02:00
page.tsx feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00