Add attachment listing to orders API response

This commit is contained in:
Jeppe Bundgaard
2025-10-13 15:38:54 +02:00
parent ce9913429f
commit c97d0e3d39
@@ -92,6 +92,7 @@ class ordersRoute
$order['customer_name'] = (new users_o())->getCustomerName($order['customer_id']);
$order['user_id'] = (int)$tmp_customer->id;
$order['pending_handheld'] = $order_obj->isPendingHandheld();
$order['attachments'] = $order_obj->listAttachments();
/** @var array $order */
return $order;
},