Skip to content
Snippets Groups Projects
Commit 7bad058f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4114 from fappels/3.8_fix_round_buyprice

FIX #3953 rounding of buying price
parents e6806611 4a0ea977
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,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(parseFloat(defaultprice).toFixed(<?php print ($conf->global->MAIN_MAX_DECIMALS_UNIT ? $conf->global->MAIN_MAX_DECIMALS_UNIT : 5); ?>));
$("#fournprice_predef").change(function() {
console.log("change on fournprice_predef");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment