mirror of
https://github.com/bleackstorm/satiea.git
synced 2026-12-03 07:41:56 +01:00
feat(planning): predict from today to end of week with optional next week
This commit is contained in:
1 parent
02ff698140
commit
d2024c59c2
6 files changed
+219
-25
No files matched your search
@@ -110,7 +110,7 @@ fun PlanningScreen(
|
||||
onFinishShoppingAndAddToStock: (List<ShoppingListItem>, Map<String, StorageLocation>) -> Unit,
|
||||
onDeleteManualShoppingItem: (String) -> Unit,
|
||||
onClearCheckedShoppingItems: () -> Unit,
|
||||
onPredictWeekMeals: (PredictionMealScope, Double) -> Unit,
|
||||
onPredictWeekMeals: (PredictionMealScope, Double, Boolean) -> Unit,
|
||||
onTogglePredictedMeal: (String) -> Unit,
|
||||
onUpdatePredictedMealServings: (String, Double) -> Unit,
|
||||
onConfirmPredictedMeals: () -> Unit,
|
||||
@@ -547,7 +547,9 @@ fun PlanningScreen(
|
||||
weekStartDate = weekStartDate,
|
||||
existingWeekMeals = plannedMeals,
|
||||
predictionState = weekPredictionState,
|
||||
onGenerate = { scope, servings -> onPredictWeekMeals(scope, servings) },
|
||||
onGenerate = { scope, servings, includeNextWeek ->
|
||||
onPredictWeekMeals(scope, servings, includeNextWeek)
|
||||
},
|
||||
onToggleProposal = onTogglePredictedMeal,
|
||||
onUpdateServings = onUpdatePredictedMealServings,
|
||||
onConfirm = {
|
||||
|
||||
Reference in new issue
Block a user