aa
This commit is contained in:
@@ -244,7 +244,7 @@ function showOrdini()
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$orders = Orderdetail::orderBy('Codice', 'desc')
|
$orders = Order::orderBy('Codice', 'desc')
|
||||||
->take(2)
|
->take(2)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
@@ -252,8 +252,10 @@ function showOrdini()
|
|||||||
foreach ($orders as $order) {
|
foreach ($orders as $order) {
|
||||||
$str .= "Ordine: ";
|
$str .= "Ordine: ";
|
||||||
$str .= getvalstr("Codice", $order->Codice);
|
$str .= getvalstr("Codice", $order->Codice);
|
||||||
//$str .= getvalstr("DataOra", $order->DataOra);
|
$str .= getvalstr("DataOra", $order->DataOra);
|
||||||
//$str .= getvalstr("Totale", $order->Totale);
|
$str .= getvalstr("Totale", $order->Totale);
|
||||||
|
$str .= '<br>';
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return "Errore: " . $e->getMessage();
|
return "Errore: " . $e->getMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user