diff --git a/app/Listeners/OrderPrint.php b/app/Listeners/OrderPrint.php index 3b6edcab..1a3c1865 100644 --- a/app/Listeners/OrderPrint.php +++ b/app/Listeners/OrderPrint.php @@ -27,7 +27,7 @@ class OrderPrint if ($devices->count() > 0 && $templateId) { $service = PrintService::make(); $products = []; - foreach($order->products as $item) { + foreach($order->products()->get() as $item) { array_push($products, [ 'name' => $item->name, 'price' => round($item->sell_price / 100, 2, PHP_ROUND_HALF_DOWN),