aa
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user