From 829c8c64cd871e914e9dedae9ea4a46ea2491174 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 13 Jun 2024 10:06:11 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 347d1dbe..ee12bfe0 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -253,7 +253,7 @@ function showOrdini() // Show the fields of the orders foreach ($orders as $order) { - $product = Product::where('sku', $order->CodArticoloGM)->first(); + $product = Product::where('sku', $order->CodArticoloGM)->pluck('name')->first(); $str .= getvalstr("", $order->Codice) . " "; $str .= getvalstr("", $order->DataOra); @@ -267,7 +267,7 @@ function showOrdini() $str .= getvalstr("Descr", $order->Descrizione); //$str .= $product; - $str .= $product['name']; + $str .= $product; $str .= '
'; }