From a3a8e7c4e4e6841b00fecfdc250cf9c6972c568b Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Thu, 25 Feb 2021 15:35:45 +0100 Subject: [PATCH] change hasBatch function --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index e46128750da..436613f2777 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5460,7 +5460,7 @@ class Product extends CommonObject */ public function hasbatch() { - return ($this->status_batch == 1 ? true : false); + return ($this->status_batch > 0 ? true : false); }