Purchase Price Hints (#767)

* productcard update last price with per qu purchase name

* Purchase price hints

* purchase set default to 2999-12-31 if not best before date tracking

* purchase- move amount above best buy date and focus amount after product selection
This commit is contained in:
kriddles
2020-04-22 10:38:24 -05:00
committed by GitHub
parent 5e6a9dd443
commit 9a921cfc86
3 changed files with 76 additions and 27 deletions

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
{