mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 03:04:36 +00:00
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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user