mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 05:56:15 +02:00
Properly format the total stock value number
This commit is contained in:
parent
adf268ef2c
commit
2d5899268c
|
|
@ -216,7 +216,7 @@ function RefreshStatistics()
|
||||||
{
|
{
|
||||||
valueSum += parseInt(element.value);
|
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)
|
function(xhr)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user