This commit is contained in:
paoloar77
2024-05-22 14:29:58 +02:00
parent 309892c7fb
commit fd4daa0785
3 changed files with 22 additions and 13 deletions

View File

@@ -1865,19 +1865,6 @@ function getvalstr($mystr, $value) {
}
Route::get('/test6', function () {
$orders = Order::all();
// Show the fields of the orders
foreach ($orders as $order) {
echo "Ordine: ";
getvalstr("Id", $order->id);
getvalstr("DataOra", $order->DataOra);
getvalstr("Totale", $order->Totale);
}
});
Route::get('/test7/{name}', function ($name) {
$articles = Article::join(DB::raw('(SELECT IdArticolo, MAX(DataOra) AS data FROM T_WEB_Articoli WHERE Titolo LIKE \'%' . $name . '%\' GROUP BY IdArticolo) b'), function ($join) {
@@ -6169,6 +6156,8 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
return loadArticleByIdArticle($id);
} elseif ($action == 'inprevendita') {
return libriInPrevendita();
} elseif ($action == 'showOrdini') {
return showOrdini();
} elseif ($action == 'setPreOrder') {
setPreOrder($id, "1", true);