diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php index b6291958144..3201bb5f507 100644 --- a/htdocs/product/stock/list.php +++ b/htdocs/product/stock/list.php @@ -659,6 +659,9 @@ while ($i < $imaxinloop) { print ''; } print ''; + if (!$i) { + $totalarray['nbfield']++; + } } foreach ($warehouse->fields as $key => $val) { if ($key == 'statut') { @@ -717,7 +720,7 @@ while ($i < $imaxinloop) { // Stock qty if (!empty($arrayfields["stockqty"]['checked'])) { - print ''.price2num($obj->stockqty, 5).''; + print ''.price(price2num($obj->stockqty, 'MS')).''; if (!$i) { $totalarray['nbfield']++; } @@ -789,9 +792,9 @@ while ($i < $imaxinloop) { print ''; } print ''; - } - if (!$i) { - $totalarray['nbfield']++; + if (!$i) { + $totalarray['nbfield']++; + } } print ''."\n";