From fe6fc93da6e9503d823a913548829da117ef5085 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 15 Jun 2024 17:17:46 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 89f0ca45..4fb6f38a 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -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;