fixed error in pdf
This commit is contained in:
parent
fbe1b4ff7a
commit
58cb113d40
|
@ -2161,7 +2161,7 @@ function graphic_combined_module(
|
|||
$graph_values = $temp;
|
||||
|
||||
if (!$params['vconsole']) {
|
||||
$width = 1024;
|
||||
$width = $width;
|
||||
$height = 500;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue