MDUX#64435 Punch out meer dan 2 decimalen

svn path=/Website/trunk/; revision=55993
This commit is contained in:
Erik Groener
2022-05-23 06:33:31 +00:00
parent 1d3be920e9
commit d53ba5a020

View File

@@ -72,15 +72,7 @@
}
else
{ // Maak item (eventueel) aan in catalogus
var prijs = "NULL";
if (!(price == "" || isNaN(price)))
{
prijs = parseFloat(price);
var eenheid = ( (priceunit == "" || isNaN(priceunit)) ? 1 : parseFloat(priceunit) );
var aantal = ( (quantity == "" || isNaN(quantity)) ? 1 : parseFloat(quantity) );
prijs = Math.round( (prijs / eenheid) * aantal * 100000) / 100000;
}
var prijs = !(prijs!=""&&isNaN(parseFloat(price)))? parseFloat(price).toFixed(5) : "NULL";
var bes_srtdeel_key = bes.upsert_deel(dis_key, { srtdeel_nr: vendorProductNumber,
srtgroep_omschrijving: productGroup,
srtdeel_omschrijving: description,