diff --git a/app/Console/Commands/TestPao.php b/app/Console/Commands/TestPao.php index 80194e5a..e7e94c0f 100644 --- a/app/Console/Commands/TestPao.php +++ b/app/Console/Commands/TestPao.php @@ -101,14 +101,6 @@ class TestPao extends Command try { $ind++; echo "\nArticolo " . $ind; - if (is_object($article)) { - - $strarticolo = json_encode($article, JSON_PRETTY_PRINT); - if ($strarticolo !== false) { - echo $strarticolo; - $log .= $strarticolo; - } - } $mostra = false; if ($mostra_solo_qta_negative) { @@ -119,7 +111,16 @@ class TestPao extends Command $mostra = true; } if ($mostra) { - echo "Articolo: " . $strarticolo; + if (is_object($article)) { + + if (false) { + $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";