mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Merge pull request #9960 from uberbrady/fix_null_sum_totals
Fix regression for NULL valued numbers in the summary calculation
This commit is contained in:
commit
ff8faab3be
|
@ -596,6 +596,9 @@
|
|||
}
|
||||
|
||||
function cleanFloat(number) {
|
||||
if(!number) { // in a JavaScript context, meaning, if it's null or zero or unset
|
||||
return 0.0;
|
||||
}
|
||||
if ("{{$snipeSettings->digit_separator}}" == "1.234,56") {
|
||||
// yank periods, change commas to periods
|
||||
periodless = number.toString().replace("\.","");
|
||||
|
|
Loading…
Reference in a new issue