FIX: round stock value on product list

This commit is contained in:
Florian Mortgat 2020-09-08 16:42:41 +02:00
parent e7e05f47ac
commit 4a60725f6c

View File

@ -1290,7 +1290,7 @@ if ($resql)
if ($obj->fk_product_type != 1)
{
if ($obj->seuil_stock_alerte != '' && $product_static->stock_reel < (float) $obj->seuil_stock_alerte) print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
print $product_static->stock_reel;
print price2num($product_static->stock_reel, 'MS');
}
print '</td>';
if (!$i) $totalarray['nbfield']++;
@ -1302,7 +1302,7 @@ if ($resql)
if ($obj->fk_product_type != 1)
{
if ($obj->seuil_stock_alerte != '' && $product_static->stock_theorique < (float) $obj->seuil_stock_alerte) print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
print $product_static->stock_theorique;
print price2num($product_static->stock_theorique, 'MS');
}
print '</td>';
if (!$i) $totalarray['nbfield']++;