Implemented the option to automatically consume a product on tracking a chore execution (closes #279)

This commit is contained in:
Bernd Bestel
2019-09-18 10:02:52 +02:00
parent e326e69d49
commit 3df44697bf
7 changed files with 122 additions and 36 deletions

View File

@@ -71,7 +71,8 @@ class ChoresController extends BaseController
'mode' => 'create',
'userfields' => $this->UserfieldsService->GetFields('chores'),
'assignmentTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_ASSIGNMENT_TYPE_'),
'users' => $users
'users' => $users,
'products' => $this->Database->products()->orderBy('name')
]);
}
else
@@ -82,7 +83,8 @@ class ChoresController extends BaseController
'mode' => 'edit',
'userfields' => $this->UserfieldsService->GetFields('chores'),
'assignmentTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_ASSIGNMENT_TYPE_'),
'users' => $users
'users' => $users,
'products' => $this->Database->products()->orderBy('name')
]);
}
}