Merge pull request #14674 from ATM-Consulting/12.0_FIX_stock_is_not_rounded_on_product_list

FIX: round stock value on product list
This commit is contained in:
Laurent Destailleur 2020-09-09 14:54:42 +02:00 committed by GitHub
commit c3ac446cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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']++;