diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 3a178b14..a38aef13 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -253,6 +253,8 @@ function showOrdini() // Show the fields of the orders foreach ($orders as $order) { + $product = Product::where('sku', $order->CodArticoloGM)->first(); + $str .= getvalstr("", $order->Codice) . " "; $str .= getvalstr("", $order->DataOra); $str .= getvalstr("IdInternet", $order->IdInternet, true). " "; @@ -263,6 +265,8 @@ function showOrdini() $str .= getvalstr("Sconto", $order->PercSconto); if ($order->Descrizione) $str .= getvalstr("Descr", $order->Descrizione); + + $str .= $product; $str .= '
'; }