diff --git a/app/Console/Commands/ProductUpdateQta.php b/app/Console/Commands/ProductUpdateQta.php index c6381065..041bfa86 100644 --- a/app/Console/Commands/ProductUpdateQta.php +++ b/app/Console/Commands/ProductUpdateQta.php @@ -89,7 +89,6 @@ class ProductUpdateQta extends Command if ($productsku->count() > 0) { $data1 = [ - 'stock_quantity' => $stock->QtaDisponibile, ]; diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 9c416be5..4205ad53 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -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(); } }