Jedes Produkt trägt einen Rohstoff i. d. R. in zwei product_ingredients-Zeilen (recipe_type manufacturer + product); die belongsToMany-Relation Ingredient::products lieferte das Produkt dadurch doppelt in der „Enthalten in"-Box. In RawMaterialStockController::show() die Produktliste nach ID dedupliziert (setRelation), wovon auch der abgeleitete Produktbestand profitiert. Reine Anzeige-Korrektur, Pivot-Daten unangetastet. Test ergänzt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Controllers | ||
| Middleware | ||
| Requests | ||
| Kernel.php | ||