This commit is contained in:
paoloar77
2024-06-15 17:17:46 +02:00
parent 8d8fa1d024
commit fe6fc93da6

View File

@@ -299,6 +299,7 @@ function showDettOrdini()
$str = "Ordini Woocommerce:" . PHP_EOL;
try {
$orders = Order::all();
// $orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
/*
$orders = Order::take(2)->get();
@@ -311,7 +312,7 @@ function showDettOrdini()
//$str .= getvalstr("Totale", $order->Totale);
}*/
} catch (\Exception $e) {
return "Errore: " . $e->getMessage();
return "Errore showDettOrdini: " . $e->getMessage();
}
return $str;