This commit is contained in:
paoloar77
2024-05-17 12:26:56 +02:00
parent 54ad5e8863
commit 53abcd9d34

View File

@@ -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();