From b046d92efb6f6140ef5b7f598c6118fd58cffef4 Mon Sep 17 00:00:00 2001 From: BB2A Anthony Berton Date: Mon, 27 Jun 2022 09:00:57 +0200 Subject: [PATCH] STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT --- htdocs/expedition/class/expedition.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 77620585b98..2de87f93666 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -933,7 +933,7 @@ class Expedition extends CommonObject return -1; } - if ($conf->global->STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT) { + if (!empty($conf->global->STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT)) { $product = new Product($this->db); $product->fetch($fk_product);