color
This commit is contained in:
@@ -254,10 +254,10 @@ 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();
|
// $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) . " ";
|
||||||
$str .= getvalstr("", $order->CodArticoloGM, true);
|
$str .= getvalstr("", $order->CodArticoloGM, true);
|
||||||
$str .= getvalstr("Qta", $order->Qta);
|
$str .= getvalstr("Qta", $order->Qta);
|
||||||
$str .= getvalstr("Prezzo", $order->PrezzoLordo);
|
$str .= getvalstr("Prezzo", $order->PrezzoLordo);
|
||||||
@@ -269,7 +269,6 @@ function showOrdini()
|
|||||||
//$str .= $product;
|
//$str .= $product;
|
||||||
// $str .= $product;
|
// $str .= $product;
|
||||||
$str .= '<br>';
|
$str .= '<br>';
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return "Errore: " . $e->getMessage();
|
return "Errore: " . $e->getMessage();
|
||||||
@@ -337,8 +336,21 @@ function libriInPrevendita()
|
|||||||
|
|
||||||
$sku = $article->IdArticolo;
|
$sku = $article->IdArticolo;
|
||||||
|
|
||||||
|
if ($article->QtaDisponibile <= 0) {
|
||||||
|
$colore = 'red';
|
||||||
|
}else {
|
||||||
|
$colore = 'green';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . ' [Quantita = ' . $article->QtaDisponibile . ']';
|
// echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . ' [Quantita = ' . $article->QtaDisponibile . ']';
|
||||||
echo '[' . $ind . ']' . $sep . '<a href="' . $article->permalink . '" target="_blank">' . $article->IdArticolo . '</a>' . $sep . $article->Titolo . $sep . ' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep . $article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ') [Quantita = ' . $article->QtaDisponibile . ']';
|
echo '[' . $ind . ']' . $sep .
|
||||||
|
'<a href="' . $article->permalink . '" target="_blank">' . $article->IdArticolo . '</a>' . $sep .
|
||||||
|
$article->Titolo . $sep .
|
||||||
|
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
|
||||||
|
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
|
||||||
|
'[Quantita = <span style="color:'.$colore.'; font-weight: bold;">' . $article->QtaDisponibile . '</span>]';
|
||||||
|
|
||||||
$prodotto = Product::where('sku', $sku)->first();
|
$prodotto = Product::where('sku', $sku)->first();
|
||||||
if ($prodotto) {
|
if ($prodotto) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user