mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Make it possible to round up shopping list and recipe ingredient amounts (closes #902, closes #2644)
This commit is contained in:
@@ -254,6 +254,11 @@
|
||||
$listItem->amount = $listItem->amount * $productQuConversion->factor;
|
||||
}
|
||||
}
|
||||
|
||||
if(boolval($userSettings['shopping_list_round_up']))
|
||||
{
|
||||
$listItem->amount = ceil($listItem->amount);
|
||||
}
|
||||
@endphp
|
||||
@endif
|
||||
<td>
|
||||
|
Reference in New Issue
Block a user