preordini

This commit is contained in:
paoloar77
2025-01-15 20:50:45 +01:00
parent 694e027640
commit e507d32452
5 changed files with 37 additions and 11 deletions

View File

@@ -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;
}