test
This commit is contained in:
@@ -474,6 +474,24 @@ function loadArticleByIdArticle($id, $checkprevendita = false, $checkqtanegativa
|
||||
}
|
||||
}
|
||||
|
||||
function showTest()
|
||||
{
|
||||
$codarticolo = "16670";
|
||||
|
||||
$mystr = '*** TEST: codarticolo: ' . $codarticolo;
|
||||
if ($codarticolo) {
|
||||
try {
|
||||
$product = Product::where('sku', $codarticolo)->first();
|
||||
} catch (\Exception $e) {
|
||||
return "Errore: " . $e->getMessage();
|
||||
}
|
||||
|
||||
$mystr += getarraystr($product);
|
||||
|
||||
return $mystr;
|
||||
}
|
||||
|
||||
}
|
||||
function showOrdini()
|
||||
{
|
||||
$str = "";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -54,6 +54,7 @@
|
||||
<button type="button" data-action="showDettSingleOrdineWeb">Dett. Ordine Web</button>
|
||||
<br><br>
|
||||
|
||||
<button type="button" data-action="showTest">Test</button>
|
||||
<button type="button" data-action="inprevendita">Libri in Prevendita</button>
|
||||
<button type="button" data-action="showOrdini">Mostra Ordini</button>
|
||||
<button type="button" data-action="showOrdiniWeb">Mostra Ordini Web</button>
|
||||
|
||||
@@ -6351,6 +6351,8 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
|
||||
return libriInPrevendita();
|
||||
} elseif ($action == 'showOrdini') {
|
||||
return showOrdini();
|
||||
} elseif ($action == 'showTest') {
|
||||
return showTest();
|
||||
} elseif ($action == 'showOrdiniWeb') {
|
||||
return showOrdiniWeb();
|
||||
} elseif ($action == 'setOrdine') {
|
||||
|
||||
Reference in New Issue
Block a user