This commit is contained in:
paoloar77
2024-05-17 12:28:02 +02:00
parent 529128dc1a
commit c4c9ee6f95

View File

@@ -125,7 +125,7 @@ class TestPao extends Command
$productsku = Product::where('sku', $article->IdArticolo)->first(); $productsku = Product::where('sku', $article->IdArticolo)->first();
//if(Gm_product::where('id_gm',$article->IdArticolo)->doesntExist()) //if(Gm_product::where('id_gm',$article->IdArticolo)->doesntExist())
if ($productsku->count() == 0) { if ($productsku->count() == 1110) {
$titolo = null; $titolo = null;
$formato = null; $formato = null;
$prodotti = null; $prodotti = null;
@@ -133,7 +133,7 @@ class TestPao extends Command
$titolo = $article->Titolo; $titolo = $article->Titolo;
switch ($article->DescrizioneTipologia) { switch ($article->DescrizioneTipologia) {
case 'LibriAA': case 'Libri':
$prodotti = $prodotti->where('name', $titolo)->get(); $prodotti = $prodotti->where('name', $titolo)->get();