diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index 8fdc6b5d..03196a57 100755 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -229,7 +229,7 @@ function RefreshStatistics() var valueSum = 0; result.forEach(element => { - valueSum += parseInt(element.value); + valueSum += parseFloat(element.value); }); $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __t('%s total value', valueSum.toLocaleString(undefined, { style: "currency", currency: Grocy.Currency }))); }