This commit is contained in:
paoloar77
2024-06-13 09:59:24 +02:00
parent 03f072d03b
commit 62d4d75201

View File

@@ -253,6 +253,8 @@ function showOrdini()
// Show the fields of the orders // Show the fields of the orders
foreach ($orders as $order) { foreach ($orders as $order) {
$product = Product::where('sku', $order->CodArticoloGM)->first();
$str .= getvalstr("", $order->Codice) . " "; $str .= getvalstr("", $order->Codice) . " ";
$str .= getvalstr("", $order->DataOra); $str .= getvalstr("", $order->DataOra);
$str .= getvalstr("IdInternet", $order->IdInternet, true). " "; $str .= getvalstr("IdInternet", $order->IdInternet, true). " ";
@@ -263,6 +265,8 @@ function showOrdini()
$str .= getvalstr("Sconto", $order->PercSconto); $str .= getvalstr("Sconto", $order->PercSconto);
if ($order->Descrizione) if ($order->Descrizione)
$str .= getvalstr("Descr", $order->Descrizione); $str .= getvalstr("Descr", $order->Descrizione);
$str .= $product;
$str .= '<br>'; $str .= '<br>';
} }