This commit is contained in:
paoloar77
2024-06-13 09:10:36 +02:00
parent 6f38988eb9
commit a569040149

View File

@@ -244,7 +244,7 @@ function showOrdini()
try {
$orders = Orderdetail::orderBy('Codice', 'desc')
$orders = Order::orderBy('Codice', 'desc')
->take(2)
->get();
@@ -252,8 +252,10 @@ function showOrdini()
foreach ($orders as $order) {
$str .= "Ordine: ";
$str .= getvalstr("Codice", $order->Codice);
//$str .= getvalstr("DataOra", $order->DataOra);
//$str .= getvalstr("Totale", $order->Totale);
$str .= getvalstr("DataOra", $order->DataOra);
$str .= getvalstr("Totale", $order->Totale);
$str .= '<br>';
}
} catch (\Exception $e) {
return "Errore: " . $e->getMessage();