mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Replace also the unit when displaying a recipe ingredient with a variable amount (closes #2080)
This commit is contained in:
parent
dd409b4bf9
commit
dea6f3f820
@ -18,6 +18,7 @@
|
||||
|
||||
### Recipes
|
||||
|
||||
- Changed that when a ingredient has a "Variable amount" set, the text entered there now also replaces the unit when displaying the recipe (not only the amount as before)
|
||||
- Fixed that hiding the "Requirements fulfilled" column (table options) on the recipes page didn't work
|
||||
- Fixed that ingredient costs and calories were wrong when product substitution and unit conversions were involved at the same time
|
||||
|
||||
|
@ -494,8 +494,9 @@
|
||||
{{ $selectedRecipePosition->recipe_variable_amount }}
|
||||
@else
|
||||
<span class="locale-number locale-number-quantity-amount">@if($selectedRecipePosition->recipe_amount == round($selectedRecipePosition->recipe_amount, 2)){{ round($selectedRecipePosition->recipe_amount, 2) }}@else{{ $selectedRecipePosition->recipe_amount }}@endif</span>
|
||||
{{ $__n($selectedRecipePosition->recipe_amount, FindObjectInArrayByPropertyValue($quantityUnits, 'id', $selectedRecipePosition->qu_id)->name, FindObjectInArrayByPropertyValue($quantityUnits, 'id', $selectedRecipePosition->qu_id)->name_plural) }}
|
||||
@endif
|
||||
{{ $__n($selectedRecipePosition->recipe_amount, FindObjectInArrayByPropertyValue($quantityUnits, 'id', $selectedRecipePosition->qu_id)->name, FindObjectInArrayByPropertyValue($quantityUnits, 'id', $selectedRecipePosition->qu_id)->name_plural) }} {{ FindObjectInArrayByPropertyValue($products, 'id', $selectedRecipePosition->product_id)->name }}
|
||||
{{ FindObjectInArrayByPropertyValue($products, 'id', $selectedRecipePosition->product_id)->name }}
|
||||
</span>
|
||||
@if(GROCY_FEATURE_FLAG_STOCK)
|
||||
<span class="d-print-none">
|
||||
|
Loading…
x
Reference in New Issue
Block a user