Warenwirtschaft: Rohstoffbestand — Default „Nur aus Herstellerrezepturen" (Kundenentscheid 17.07.2026)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-17 12:07:54 +00:00
parent 4f9dca88de
commit e6af987237
5 changed files with 16 additions and 13 deletions

View file

@ -23,7 +23,8 @@ class RawMaterialStockController extends Controller
public function index(Request $request): View
{
// AP-20: Modus „alle" / „nur aus Herstellerrezepturen (aktiver Produkte)"
$scope = $request->query('scope') === 'recipe' ? 'recipe' : 'all';
// Kundenentscheid 17.07.2026: Default = nur Rohstoffe aus Herstellerrezepturen
$scope = $request->query('scope') === 'all' ? 'all' : 'recipe';
$ingredients = Ingredient::query()
->where('active', true)