mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 23:59:26 +01:00
Finalize products on meal plan feature (references #450)
This commit is contained in:
parent
98f70d1525
commit
d64a1a546c
|
|
@ -172,8 +172,7 @@ var calendar = $("#calendar").fullCalendar({
|
|||
}
|
||||
|
||||
element.attr("data-product-details", event.productDetails);
|
||||
console.log(productDetails);
|
||||
console.log(mealPlanEntry);
|
||||
|
||||
var productOrderMissingButtonDisabledClasses = "disabled";
|
||||
if (parseFloat(productDetails.stock_amount_aggregated) < parseFloat(mealPlanEntry.product_amount))
|
||||
{
|
||||
|
|
@ -197,7 +196,7 @@ var calendar = $("#calendar").fullCalendar({
|
|||
var costsAndCaloriesPerServing = ""
|
||||
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
|
||||
{
|
||||
costsAndCaloriesPerServing = '<h5 class="small text-truncate"><span class="locale-number locale-number-currency">' + productDetails.last_price * mealPlanEntry.product_amount + '</span> / <span class="locale-number locale-number-generic">' + productDetails.product.calories * mealPlanEntry.product_amount + '</span> kcal ' + '<h5>';
|
||||
costsAndCaloriesPerServing = '<h5 class="small text-truncate"><span class="locale-number locale-number-currency">' + productDetails.last_price / productDetails.product.qu_factor_purchase_to_stock * mealPlanEntry.product_amount + '</span> / <span class="locale-number locale-number-generic">' + productDetails.product.calories * mealPlanEntry.product_amount + '</span> kcal ' + '<h5>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user