aa
This commit is contained in:
@@ -93,9 +93,9 @@ class ProductUpdateQta extends Command
|
||||
$inprevendita_qtaneg = isArticleInPrevendita($stock->Codice, true);
|
||||
$qtyinstock = intval($productsku['stock_quantity']);
|
||||
$titolo = $productsku['title'];
|
||||
// Se il libro è ancora in Prevendita e la quantità è QTA_IN_PREVENDITA, allora non aggiornare la QTA
|
||||
// deve rimanere a QTA_IN_PREVENDITA per poter vedere "In Preordine"
|
||||
if ($inprevendita && $qtyinstock == QTA_IN_PREVENDITA) {
|
||||
// Se il libro è ancora in Prevendita e la quantità è > QTA_MINIMA_PER_PREVENDITA, allora non aggiornare la QTA
|
||||
// deve rimanere a > QTA_MINIMA_PER_PREVENDITA per poter vedere "In Preordine"
|
||||
if ($inprevendita && $qtyinstock > QTA_MINIMA_PER_PREVENDITA) {
|
||||
$aggiorna = false;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ class ProductUpdateQta extends Command
|
||||
|
||||
$log .= ' *** ' . $stock->Codice . ' ' . $titolo . ' QTA=' . $stock->QtaDisponibile . "\n";
|
||||
|
||||
if ($inprevendita_qtaneg && ($qtyinstock != QTA_IN_PREVENDITA)) {
|
||||
if ($inprevendita_qtaneg && ($qtyinstock < QTA_MINIMA_PER_PREVENDITA)) {
|
||||
setPreOrder($stock->Codice, "1", false);
|
||||
$log .= ' SEtTATO IN PREVENDITA ! <br>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user