This commit is contained in:
paoloar77
2024-07-16 10:32:57 +02:00
parent b2ea354975
commit ef63b91ea9

View File

@@ -485,18 +485,24 @@ function showOrdini()
foreach ($orders as $order) {
$product = Product::where('sku', $order->CodArticoloGM)->first();
if ($product)
$titolo = "<a href='" . $product['permalink'] . "' target='_blank'><span style='font-weigth: bold;'>" . $product['name'] . "</span></a>";
else
$titolo = "";
$str .= getvalstr("", $order->Codice) . " ";
$str .= getvalstr("", $order->DataOra);
$str .= getvalstr("IdInternet", $order->IdInternet, true) . " ";
$str .= getvalstr("", $order->CodArticoloGM, true);
$str .= getvalstr("Qta", $order->Qta);
$str .= getvalstr("Titolo", $titolo);
$str .= getvalstr("Codice Ordine", $order->IdInternet, true) . " ";
$str .= getvalstr("Cod. Articolo", $order->CodArticoloGM, true);
$str .= getvalstr("Prezzo", $order->PrezzoLordo);
$str .= getvalstr("Quantità", $order->Qta);
if ($order->PercSconto)
$str .= getvalstr("Sconto", $order->PercSconto);
if ($order->Descrizione)
$str .= getvalstr("Descr", $order->Descrizione);
$str .= getarraystr($product) . "<br>";
// $str .= getarraystr($product) . "<br>";
// $str .= $product;
$str .= '<br>';
}