Properly format the total stock value number

This commit is contained in:
Bernd Bestel 2020-10-15 19:36:38 +02:00
parent adf268ef2c
commit 2d5899268c
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -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)