This commit is contained in:
paoloar77
2024-05-17 12:30:09 +02:00
parent c4c9ee6f95
commit 5a0423e73c

View File

@@ -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";