From 8039dbe7801391f75001d24d775c6015c33c9597 Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Mon, 20 Apr 2020 23:07:45 -0500 Subject: [PATCH] productcard update last price with per qu purchase name --- public/viewjs/components/productcard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/components/productcard.js b/public/viewjs/components/productcard.js index 951207d1..9b6c3ba4 100644 --- a/public/viewjs/components/productcard.js +++ b/public/viewjs/components/productcard.js @@ -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 {