From 5a0423e73c5c16271c1ac36b48fae30a07e24815 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Fri, 17 May 2024 12:30:09 +0200 Subject: [PATCH] tesst --- app/Console/Commands/TestPao.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/TestPao.php b/app/Console/Commands/TestPao.php index 237ab02c..99328e88 100644 --- a/app/Console/Commands/TestPao.php +++ b/app/Console/Commands/TestPao.php @@ -125,7 +125,7 @@ class TestPao extends Command $productsku = Product::where('sku', $article->IdArticolo)->first(); //if(Gm_product::where('id_gm',$article->IdArticolo)->doesntExist()) - if ($productsku->count() == 1110) { + if ($productsku->count() == 0) { $titolo = null; $formato = null; $prodotti = null; @@ -225,6 +225,7 @@ class TestPao extends Command } // get the last record of Stock + echo "\nLast record Stock ..."; $lastrecordStock = Stock::latest('DataOra')->take(10)->get(); @@ -240,7 +241,9 @@ class TestPao extends Command if ($productsku->count() > 0) { // log the productsku record - $log .= "\n" . $productsku->toArray(); + $productskustr = json_encode($productsku, JSON_PRETTY_PRINT); + echo $productskustr; + $log .= "\n" . $productskustr; } $log .= "\n";