2
0
forked from Wavyzz/dolibarr

FIX #3953 Don't round supplier price

The price is already rounded when inserted on the product page.
It's also rounded at display.
There's no need to round it here.
Rounding it leads to serious calculation errors.
This commit is contained in:
Raphaël Doursenaud
2015-12-07 14:15:00 +01:00
parent 5710bcd38a
commit 2cf36d157f

View File

@@ -594,7 +594,7 @@ jQuery(document).ready(function() {
/* Define default price at loading */
var defaultprice = $("#fournprice_predef").find('option:selected').attr("price");
$("#buying_price").val(Math.round(defaultprice,<?php print ($conf->global->MAIN_MAX_DECIMALS_UNIT ? $conf->global->MAIN_MAX_DECIMALS_UNIT : 5); ?>));
$("#buying_price").val(defaultprice);
$("#fournprice_predef").change(function() {
console.log("change on fournprice_predef");