Task 8 of the non-invoiceable-order-extras plan. Two regression tests, no production code change. The picking-slip feature relies on a property of the existing print pipeline: excluded rows DO receive item_status = 'invoiced' (Task 7 / n8n batch flip) and DO carry the invoice number / DN number, so the print queries pick them up automatically. The picker must still pull the washers even though they never reach the customer. - print-bundle: explicitly verifies the picking slip renderer is called with both billable and excluded rows (mocked PickingSlipPdf → assert lines array has both descriptions). - delivery-note-print: explicitly verifies the PB filter does NOT carry an exclude_from_invoice clause — adding one would silently filter the picker slip and break Task 7's design. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| lib | ||
| styles | ||
| middleware.ts | ||
| test-setup.ts | ||