WFDASH-WEBAPP/src
SJCoetz b4c9f2d2ce fix(buyer-tasks): use getFullList and tighten item_status filter for po_draft/po_sent
- Switch from getList(1, 500) to getFullList so candidate sets
  aren't silently truncated at 500 rows (matches orders-service
  and quotes-service conventions).
- Tighten the po_draft filter to item_status = po_generated so
  items in downstream statuses (collection_pool, delivered, etc.)
  don't get pulled over the wire.
- Tighten the po_sent filter to exclude item_status in
  {ready_delivery, invoiced, delivered, cancelled} for the same
  reason.
- Drop the redundant ready_delivery post-filter on po_sent now
  that the PB layer handles it.
- Tests capture the filter string passed to getFullList and assert
  its clauses so regressions are caught.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Co-authored-by: Orca <help@stably.ai>
2026-07-29 19:56:53 +02:00
..
app feat(orders): totals + add/remove items in review modal 2026-07-29 18:54:49 +02:00
components feat(orders): hide cost and markup from review modal items table 2026-07-29 19:02:49 +02:00
lib fix(buyer-tasks): use getFullList and tighten item_status filter for po_draft/po_sent 2026-07-29 19:56:53 +02:00
styles feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
test-setup.ts feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00