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> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hooks | ||
| lib | ||
| mcp | ||
| test-utils | ||
| types | ||
| proxy.test.ts | ||
| proxy.ts | ||