mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Removed the total units info
This commit is contained in:
parent
5e88e66e75
commit
adf268ef2c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user