From 1d6a4f528a5b3fd337aacd9b291b28d936fd590d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 24 Sep 2020 00:07:55 +0200 Subject: [PATCH] Fix css --- htdocs/takepos/invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 5e70e87c76c..3a7d90cb732 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1082,9 +1082,9 @@ if ($placeid > 0) $obj = $db->fetch_object($resql); $stock_real = price2num($obj->reel, 'MS'); $htmlforlines .= $line->qty; - if ($line->qty>$stock_real) $htmlforlines .= ''; + if ($line->qty && $line->qty > $stock_real) $htmlforlines .= ''; $htmlforlines .= ' ('.$langs->trans("Stock").' '.$stock_real.')'; - if ($line->qty>$stock_real) $htmlforlines .= ""; + if ($line->qty && $line->qty > $stock_real) $htmlforlines .= ""; } } else $htmlforlines .= $line->qty;