Fixed missing decimal places in Contract prices

This commit is contained in:
Frank Schubert
2024-12-03 18:57:22 +01:00
parent 0abb91443d
commit e20a528398
2 changed files with 4 additions and 1 deletions

View File

@@ -162,7 +162,8 @@ class Helper {
* @return float
*/
public static function formatNumber($number, int $decimals = 2, string $decPoint = ",", string $thousandsSep = "."): string {
return number_format(intval($number), $decimals, $decPoint, $thousandsSep);
if(!is_numeric($number)) return "";
return number_format($number, $decimals, $decPoint, $thousandsSep);
}
}