This commit is contained in:
paoloar77
2024-05-21 01:22:23 +02:00
parent e44cec7aa3
commit 3153c155f8
2 changed files with 6 additions and 1 deletions

View File

@@ -39,7 +39,10 @@
<input type="text" id="article_id" name="id" value="21569"/> <input type="text" id="article_id" name="id" value="21569"/>
<br> <br>
<button type="button" data-action="search">Cerca Articolo</button> <button type="button" data-action="search">Cerca Articolo</button>
<button type="button" data-action="checkPrevendita">E' in PreVendita?</button><br> <button type="button" data-action="checkPrevendita">E' in PreVendita?</button>
<button type="button" data-action="setPreOrder">Impostalo in PreVendita!</button>
<br><br>
<button type="button" data-action="inprevendita">Libri in Prevendita</button> <button type="button" data-action="inprevendita">Libri in Prevendita</button>
</form> </form>
<div id="result"></div> <div id="result"></div>

View File

@@ -6156,6 +6156,8 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
} elseif ($action == 'inprevendita') { } elseif ($action == 'inprevendita') {
return libriInPrevendita(); return libriInPrevendita();
} elseif ($action == 'setPreOrder') {
setPreOrder($id, true, true);
} elseif ($action == 'checkPrevendita') { } elseif ($action == 'checkPrevendita') {
// Logica per verificare se l'articolo è in preordine // Logica per verificare se l'articolo è in preordine
$inprevendita = isArticleInPrevendita($id); $inprevendita = isArticleInPrevendita($id);