From 32a93eb067a49b82eafa7b8305eefd2b0a23634f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 23 Sep 2020 19:50:39 +0200 Subject: [PATCH] Update invoice.php --- htdocs/takepos/invoice.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 397ff291ec5..69adde70895 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1081,8 +1081,9 @@ if ($placeid > 0) if ($resql) { $obj = $db->fetch_object($resql); $stock_real = price2num($obj->reel, 'MS'); - if ($line->qty>$stock_real) $htmlforlines .= ""; - $htmlforlines .= $line->qty.' ('.$langs->trans("Of").' '.$stock_real.')'; + $htmlforlines .= $line->qty + if ($line->qty>$stock_real) $htmlforlines .= ''; + $htmlforlines .= ' ('.$langs->trans("Stock").' '.$stock_real.')'; if ($line->qty>$stock_real) $htmlforlines .= ""; } }