From 2d5899268cb3251cb418b255a4be472ed5a62f9a Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 15 Oct 2020 19:36:38 +0200 Subject: [PATCH] Properly format the total stock value number --- 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 56a0d81e..a864ff63 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -216,7 +216,7 @@ function RefreshStatistics() { valueSum += parseInt(element.value); }); - $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __n(valueSum, '%s Value', '%s Value')); + $("#info-current-stock").text(__n(result.length, '%s Product', '%s Products') + ", " + __t('%s total value', valueSum.toLocaleString(undefined, { style: "currency", currency: Grocy.Currency }))); } }, function(xhr)