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:
@@ -594,7 +594,7 @@ jQuery(document).ready(function() {
|
|||||||
|
|
||||||
/* Define default price at loading */
|
/* Define default price at loading */
|
||||||
var defaultprice = $("#fournprice_predef").find('option:selected').attr("price");
|
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() {
|
$("#fournprice_predef").change(function() {
|
||||||
console.log("change on fournprice_predef");
|
console.log("change on fournprice_predef");
|
||||||
|
|||||||
Reference in New Issue
Block a user