preordini
This commit is contained in:
@@ -18,6 +18,8 @@ use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
|
||||
use App\Helpers\MyConfig;
|
||||
|
||||
class ProductUpdateQta extends Command
|
||||
{
|
||||
/**
|
||||
@@ -95,7 +97,7 @@ class ProductUpdateQta extends Command
|
||||
$titolo = $productsku['title'];
|
||||
// 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) {
|
||||
if ($inprevendita && $qtyinstock > MyConfig::$qtaInPrevendita) {
|
||||
$aggiorna = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user