From 53abcd9d3476d3efdc740656ee5fa0860669dbad Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Fri, 17 May 2024 12:26:56 +0200 Subject: [PATCH] t --- app/Console/Commands/TestPao.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/Console/Commands/TestPao.php b/app/Console/Commands/TestPao.php index e7e94c0f..cfc8b463 100644 --- a/app/Console/Commands/TestPao.php +++ b/app/Console/Commands/TestPao.php @@ -110,18 +110,16 @@ class TestPao extends Command } else { $mostra = true; } - if ($mostra) { - if (is_object($article)) { + if ($mostra) { + if (is_object($article)) { - if (false) { - $strarticolo = json_encode($article, JSON_PRETTY_PRINT); - if ($strarticolo !== false) { - echo $strarticolo; - $log .= $strarticolo; - } + $strarticolo = json_encode($article, JSON_PRETTY_PRINT); + if ($strarticolo !== false) { + echo $strarticolo; + $log .= $strarticolo; } } - + if ($article->stock) echo "\r\n QTA = " . $article->stock . "\r\n"; } @@ -136,7 +134,7 @@ class TestPao extends Command $titolo = $article->Titolo; switch ($article->DescrizioneTipologia) { - case 'Libri': + case 'LibriAA': $prodotti = $prodotti->where('name', $titolo)->get();