MEGAINFRA-WEBAPP/src
DEls 938b1784dd refactor(suppliers): share the delivery-line value computation
The Suppliers page built its per-delivery-line value series inline to
feed the "Payable this period" KPI. Extracted it to deliveryLineValues
so the Financial landing can show the same figure for a single month
without re-deriving the rules in a second place, where they could
quietly diverge.

Behaviour is unchanged: booking snapshot net wins, else qty_received x
the PO line's rate; receipt documents only; lines against POs outside the
page's scope are dropped; lines with no date_received are skipped. The
returned rows now also carry the PO id so callers can attribute a total
to a supplier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:06:13 +02:00
..
app refactor(suppliers): share the delivery-line value computation 2026-10-10 00:06:13 +02:00
components feat(clock): pay against the real work schedule 2026-10-09 19:51:24 +02:00
hooks Add Workforce attention alerts and 24-hour correction times 2026-10-04 23:38:43 +02:00
lib refactor(suppliers): share the delivery-line value computation 2026-10-10 00:06:13 +02:00
mcp feat(mcp): prepare_delivery stages a slip for the site manager without booking it 2026-10-09 17:47:35 +02:00
test-utils feat(management): add admin planning dashboards 2026-10-09 10:16:50 +02:00
types
proxy.test.ts feat(management): add admin planning dashboards 2026-10-09 10:16:50 +02:00
proxy.ts feat(management): add admin planning dashboards 2026-10-09 10:16:50 +02:00