Removed the total units info

This commit is contained in:
Bernd Bestel 2020-10-15 19:32:39 +02:00
parent 5e88e66e75
commit adf268ef2c
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

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