This commit is contained in:
paoloar77
2024-06-15 15:49:11 +02:00
parent c5d22f24ac
commit f903d2c7ad
2 changed files with 6 additions and 7 deletions

View File

@@ -89,7 +89,6 @@ class ProductUpdateQta extends Command
if ($productsku->count() > 0) {
$data1 = [
'stock_quantity' => $stock->QtaDisponibile,
];

View File

@@ -138,7 +138,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
}
}
$data['stock_quantity'] = '1000';
$data['stock_quantity'] = 1000;
if ($debug) {
echo "Data:";
@@ -224,17 +224,17 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
}
$ris = 'Articles:' . PHP_EOL;
$ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
// $ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
$product = Product::where('sku', $id)->first();
// $product = Product::where('sku', $id)->first();
$ris .= 'Product:' . PHP_EOL;
$ris .= getarraystr($product);
// $ris .= 'Product:' . PHP_EOL;
// $ris .= getarraystr($product);
return $ris;
} catch (\Exception $e) {
return "Errore: " . $e->getMessage();
return "Errore loadArticleByIdArticle: " . $e->getMessage();
}
}