fixed error in pdf

This commit is contained in:
Daniel Barbero 2019-07-08 13:23:35 +02:00
parent fbe1b4ff7a
commit 58cb113d40
2 changed files with 6 additions and 4 deletions

View File

@ -2161,7 +2161,7 @@ function graphic_combined_module(
$graph_values = $temp;
if (!$params['vconsole']) {
$width = 1024;
$width = $width;
$height = 500;
}

View File

@ -2791,14 +2791,16 @@ function pandoraFlotArea(
if (short_data) {
formatted = number_format(v, force_integer, "", short_data);
} else {
// It is an integer
// It is an integer.
if (v - Math.floor(v) == 0) {
formatted = number_format(v, force_integer, "", 2);
}
}
// Get only two decimals
formatted = round_with_decimals(formatted, 100);
// Get only two decimals.
if (typeof formatted != "string") {
formatted = Math.round(formatted * 100) / 100;
}
return formatted;
}