Merge branch 'ent-4311-Fallos_en_graficas_al_descargar_informes' into 'develop'
fixed error in pdf See merge request artica/pandorafms!2585
This commit is contained in:
commit
791d8f512a
|
@ -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