mega-plant/app
David 1b763ae99d Keep a site's invoice table consistent with its own totals
buildSiteSummaries counts only internal invoice lines towards a site, but this
page built its line-item table from every line whose invoice named the site. On a
site carrying both, the table would have listed lines the totals excluded — the
two halves of one page disagreeing.

Both now filter on the internal party, so the table and the totals are always the
same set. A site left with no internal invoices has no summary and notFound()
fires, which is correct: "Move containers" now returns a 404 rather than being
presented as a yard.
2026-10-08 12:07:07 +02:00
..
(dashboard) Keep a site's invoice table consistent with its own totals 2026-10-08 12:07:07 +02:00
actions feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
api Give external invoices a supplier name; keep them off the sites page 2026-10-08 12:04:42 +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 feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
layout.tsx feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00