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

Merge pull request #4177 from GPCsolutions/3.8-3953

FIX #3953 Don't round supplier price
parents 02784c89 3f9efc53
No related branches found
No related tags found
No related merge requests found
...@@ -554,7 +554,7 @@ jQuery(document).ready(function() { ...@@ -554,7 +554,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(parseFloat(defaultprice).toFixed(<?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");
......
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