mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
product card clarity
This commit is contained in:
parent
60824a4c91
commit
6abf602099
|
|
@ -95,7 +95,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
{
|
{
|
||||||
if (productDetails.last_qu_factor_purchase_to_stock > 1)
|
if (productDetails.last_qu_factor_purchase_to_stock > 1)
|
||||||
{
|
{
|
||||||
$('#productcard-product-last-price').text(Number.parseFloat(productDetails.last_price).toLocaleString() + ' ' + Grocy.Currency + ' per 1 ' + productDetails.quantity_unit_purchase.name + ' of ' + productDetails.last_qu_factor_purchase_to_stock + ' ' + productDetails.quantity_unit_stock.name_plural);
|
$('#productcard-product-last-price').text(Number.parseFloat(productDetails.last_price * productDetails.last_qu_factor_purchase_to_stock).toLocaleString() + ' ' + Grocy.Currency + ' per 1 ' + productDetails.quantity_unit_purchase.name + ' of ' + productDetails.last_qu_factor_purchase_to_stock + ' ' + productDetails.quantity_unit_stock.name_plural);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -109,7 +109,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
|
|
||||||
if (productDetails.avg_price !== null)
|
if (productDetails.avg_price !== null)
|
||||||
{
|
{
|
||||||
$('#productcard-product-average-price').text(Number.parseFloat(productDetails.avg_price).toLocaleString() + ' ' + Grocy.Currency);
|
$('#productcard-product-average-price').text(Number.parseFloat(productDetails.avg_price).toLocaleString() + ' ' + Grocy.Currency + ' per ' + productDetails.quantity_unit_stock.name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user