productcard update last price with per qu purchase name

This commit is contained in:
Kurt Riddlesperger 2020-04-20 23:07:45 -05:00
parent 7fb76df33a
commit 8039dbe780

View File

@ -80,7 +80,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
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
{