NMMS#54500 Inschakelen 7 decimalen achter de komma

svn path=/Website/trunk/; revision=39409
This commit is contained in:
Alex Tiehuis
2018-10-16 07:47:09 +00:00
parent b60cece803
commit f12673f594

View File

@@ -175,7 +175,7 @@ if (!readonly && opdr_key > 0)
function fnMateriaalPrijs(oRs) // determine float or currency representation
{
var price = oRs("mld_opdr_materiaal_prijs").Value;
if (String(price).split(".")[1] > "99") // price has more then 2 digits after de decimal point
if (parseInt(String(price).split(".")[1], 10) > 99) // price has more then 2 digits after de decimal point
{
return safe.displayfloat(price, 7, true); // show all digits after decimal point without trailing zeroes
}