6
0
Fork 0
panliang 2023-02-25 17:39:16 +08:00
parent 11f263fdf1
commit ab95f3acf4
1 changed files with 1 additions and 1 deletions

View File

@ -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),