WFDASH-WEBAPP/src/app/api
Dave 12657d126b feat(mcp): order_items.create accepts exclude_from_invoice + doc updates
Task 9 of the non-invoiceable-order-extras plan.

order_items.create MCP tool:
- Input schema gains an optional boolean 'exclude_from_invoice'.
- Tool description rewritten to explain the supplier-side component
  use case, the PO + driver + collection flow, the silent drop from
  the customer invoice and delivery note, and the force-zero selling
  price.
- operationData hint / nextActions block updated — the prior text
  documented a '409 order_locked' refusal that no longer fires
  (Task 2 removed the pending gate).
- Handler forwards the boolean to createOrderItemForOrder (which
  itself forces selling_price=0 when the flag is set — Task 2).

Also fixed a TypeScript strict-mode complaint in the T7 test that
the previous commit left behind (vi.fn mock-call tuple type
needed an explicit parameter so mock.calls[0] is typed).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-30 17:46:06 +02:00
..
counter feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
dashboard feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
invoicing feat(mcp): order_items.create accepts exclude_from_invoice + doc updates 2026-08-30 17:46:06 +02:00
mcp feat(mcp): order_items.create accepts exclude_from_invoice + doc updates 2026-08-30 17:46:06 +02:00
tv feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
v1 feat(orders): add-item affordance + sheet on the process page 2026-08-30 17:18:30 +02:00