From 9221d787a50137027f8b4845de2512f63871d352 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 26 Jan 2020 21:18:09 +0100 Subject: [PATCH] How many units are in stock doesn't really mean anything... --- public/viewjs/stockoverview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index c3d26bba..1ad31353 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -172,7 +172,7 @@ function RefreshStatistics() result.forEach(element => { amountSum += parseInt(element.amount); }); - $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __n(amountSum, '%s Unit', '%s Units')); + $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products')); }, function(xhr) {