From adf268ef2c3f623f01e51a744016162ccdfb2a07 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 15 Oct 2020 19:32:39 +0200 Subject: [PATCH] Removed the total units info --- public/viewjs/stockoverview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index ac45bee0..56a0d81e 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -212,10 +212,11 @@ function RefreshStatistics() else { var valueSum = 0; - result.forEach(element => { + result.forEach(element => + { valueSum += parseInt(element.value); }); - $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __n(amountSum, '%s Unit', '%s Units') + ", " + __n(valueSum, '%s Value', '%s Value')); + $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __n(valueSum, '%s Value', '%s Value')); } }, function(xhr)