Adds a chevron button at the left edge of every delivery-note row on /deliveries. Clicking reveals an inline items panel (description + qty) so the operator can match against the printed DN paper in their hand before loading. Items come from a client-side filter of the order group's items array (items.filter(i => i.delivery_note === dn.id)). No new server endpoint. DNs whose items aren't in the order group's slice show a 'See full DN →' link to /delivery-notes/[id]. Expand state is held at the OrderGroupView level as a Set<string> of expanded DN ids — independent per DN, resets on refresh. (State lifted to OrderGroupView rather than DeliveriesPage because order.items is already in scope there; avoids prop-drilling through CustomerGroupView.) Service change: deliveries-service.listDeliveryItems now fetches the delivery_note (relation id) + unit fields on each item, so the page can filter and render units without an extra round-trip. Co-Authored-By: Claude Code <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| (app) | ||
| (auth) | ||
| (counter) | ||
| (mobile) | ||
| (tv) | ||
| api | ||
| favicon.ico | ||
| globals.css | ||
| layout.tsx | ||
| offline.tsx | ||
| page.tsx | ||