aa
This commit is contained in:
@@ -89,7 +89,6 @@ class ProductUpdateQta extends Command
|
||||
if ($productsku->count() > 0) {
|
||||
$data1 = [
|
||||
|
||||
|
||||
'stock_quantity' => $stock->QtaDisponibile,
|
||||
|
||||
];
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user