aa
This commit is contained in:
@@ -226,11 +226,10 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
|
|||||||
|
|
||||||
$product = Product::where('sku', $id)->first();
|
$product = Product::where('sku', $id)->first();
|
||||||
|
|
||||||
$ris .= 'Product:'. PHP_EOL;
|
$ris .= 'Product:' . PHP_EOL;
|
||||||
$ris .= getarraystr($product);
|
$ris .= getarraystr($product);
|
||||||
|
|
||||||
return $ris;
|
return $ris;
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
return "Errore: " . $e->getMessage();
|
return "Errore: " . $e->getMessage();
|
||||||
@@ -239,20 +238,27 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
|
|||||||
|
|
||||||
function showOrdini()
|
function showOrdini()
|
||||||
{
|
{
|
||||||
$orders = Order::orderBy('DataOra', 'desc')->take(20)->get();
|
$str .= "Ordine: aaa";
|
||||||
|
return $str;
|
||||||
|
|
||||||
|
$orders = Order::orderBy('DataOra', 'desc')->take(5)->get();
|
||||||
|
|
||||||
$str = "";
|
$str = "";
|
||||||
|
|
||||||
// Show the fields of the orders
|
try {
|
||||||
foreach ($orders as $order) {
|
|
||||||
$str .= "Ordine: ";
|
// Show the fields of the orders
|
||||||
$str .= getvalstr("Id", $order->id);
|
foreach ($orders as $order) {
|
||||||
$str .= getvalstr("DataOra", $order->DataOra);
|
$str .= "Ordine: ";
|
||||||
$str .= getvalstr("Totale", $order->Totale);
|
$str .= getvalstr("Id", $order->id);
|
||||||
|
$str .= getvalstr("DataOra", $order->DataOra);
|
||||||
|
$str .= getvalstr("Totale", $order->Totale);
|
||||||
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
return "Errore: " . $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $str;
|
return $str;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function libriInPrevendita()
|
function libriInPrevendita()
|
||||||
|
|||||||
Reference in New Issue
Block a user