Interactive admin popup for the purchase-order workflow. Staff select an
Editing purchase order, generate a TCPDF purchase-order PDF and
companion CSV export, mark orders In Process or Completed, and manage supplier
PO IDs. The In Process grid displays cost totals (total, received, canceled,
outstanding) with shortcuts to expected-date messaging
(purchaseOrderExpectedDate.php) and PDF viewing.
PDF line-item descriptions pull shelf/bin display names from OpenCart
oc_product custom field 83 via defensive JSON_VALID()
/ JSON_UNQUOTE(JSON_EXTRACT(..., '$."83"')) (blank fallback).
Workspace notes
?action=pdf stream; CSV uses ?action=csv.purchaseOrderExpectedDate.php for the target PO. Update writes that row's Supplier PO ID.