mirror of
https://github.com/grocy/grocy.git
synced 2026-04-10 22:46:16 +02:00
productcard update last price with per qu purchase name
This commit is contained in:
parent
7fb76df33a
commit
8039dbe780
|
|
@ -80,7 +80,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
|
|
||||||
if (productDetails.last_price !== null)
|
if (productDetails.last_price !== null)
|
||||||
{
|
{
|
||||||
$('#productcard-product-last-price').text(Number.parseFloat(productDetails.last_price).toLocaleString() + ' ' + Grocy.Currency);
|
$('#productcard-product-last-price').text(Number.parseFloat(productDetails.last_price).toLocaleString() + ' ' + Grocy.Currency + ' per ' + productDetails.quantity_unit_purchase.name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user