WFDASH-WEBAPP/src/app
SJCoetz 3664eef898 feat(po): resend purchase order from sent / mail_failed / sending statuses
Work by another agent on the PO send flow. Adds a 'Resend' CTA
on the order detail page for POs that were already sent
(operator wants to send another copy to the supplier), plus
acceptance of the same flow from the modal. Includes:

- purchase-orders-service: accept 'sent' as a resend-from state
  (in addition to 'draft' and 'mail_failed')
- send-po-modal: title flips to 'Resend Purchase Order ...' when
  the PO was previously sent; 'Send' button becomes 'Resend'
- send-po-modal.test: covers the resend path
- orders/[id]/page: shows Resend button in the same sendable
  state group as Send (was draft / mail_failed, now also 'sent')
- purchase-orders pdf route: updates docstring to reflect that
  status is the outbound-email pipeline's responsibility
- stock-purchases pdf route: download URL uses file proxy for
  admin-auth compatibility

Co-authored-by: Orca <help@stably.ai>
2026-08-04 20:05:52 +02:00
..
(app) feat(po): resend purchase order from sent / mail_failed / sending statuses 2026-08-04 20:05:52 +02:00
(auth) feat: collection-map updates, todays-stops, quote/approval rework, buyer-tasks, e2e 2026-08-03 09:33:45 +02:00
api feat(po): resend purchase order from sent / mail_failed / sending statuses 2026-08-04 20:05:52 +02:00
favicon.ico feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
globals.css feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
layout.tsx feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
offline.tsx feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
page.tsx feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00