This commit is contained in:
paoloar77
2024-05-17 12:26:08 +02:00
parent ada35fd5b3
commit 54ad5e8863

View File

@@ -101,14 +101,6 @@ class TestPao extends Command
try { try {
$ind++; $ind++;
echo "\nArticolo " . $ind; echo "\nArticolo " . $ind;
if (is_object($article)) {
$strarticolo = json_encode($article, JSON_PRETTY_PRINT);
if ($strarticolo !== false) {
echo $strarticolo;
$log .= $strarticolo;
}
}
$mostra = false; $mostra = false;
if ($mostra_solo_qta_negative) { if ($mostra_solo_qta_negative) {
@@ -119,7 +111,16 @@ class TestPao extends Command
$mostra = true; $mostra = true;
} }
if ($mostra) { 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) if ($article->stock)
echo "\r\n QTA = " . $article->stock . "\r\n"; echo "\r\n QTA = " . $article->stock . "\r\n";