gruene-seele/app/Http/Controllers/Admin/Inventory
Kevin Adametz 30d4e28696 Warenwirtschaft: AP-51 — Lagerplatz-Felder für Produkte & Verpackung
Lagerplatz-Zuordnung (Raum/Regal/Fach) gab es bisher nur bei Rohstoffen. Jetzt
dieselbe Storage-Hierarchie (StorageRoom/Shelf/Slot) auch für Produkte und
Verpackungsartikel, inkl. Anzeige an den passenden Stellen.

- Migration: storage_room_id/shelf/slot an products + packaging_items
  (nullable, FK constrained, nullOnDelete).
- Models Product + PackagingItem: fillable + storageRoom/Shelf/Slot-Relationen +
  storageLabel() („Raum 1 | Regal 3 | A").
- Produktformular (Inventar-Abschnitt) + Verpackungsformular: Auswahl-Zeile
  Raum/Regal/Fach; Optionen kommen aktiv/sortiert aus den zentral pflegbaren
  Bausteinen (Einstellungen → Allgemein).
- Speichern: ProductRepository normalisiert leere Auswahl -> null (FK);
  PackagingItem-Requests + Repository um die drei Felder erweitert.
- Anzeige: Produktbestand (Sub-Zeile mit Marker), Produktverpackung-Übersicht
  (neue Spalte „Lagerplatz").
- DeletionGuard: Lagerbaustein ist nicht löschbar, solange Produkte/Verpackung
  darauf verweisen (analog Rohstoffe).

Tests: 4 neue (Produkt speichern + leer->null, Verpackung speichern + Anzeige,
Löschsperre, freier Baustein löschbar). Migration auf Dev-/Live-DB gelaufen.
Suite 331 grün.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-28 09:46:40 +00:00
..
ApiOrderLogController.php Warenwirtschaft: Review-Fix — Indizes + schlanke API-Bestellungen-Seite 2026-07-20 13:02:47 +00:00
DeliveryTimeController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00
DisposalReasonController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00
GeneralSettingController.php Warenwirtschaft: AP-48 — Produktbestand-Buchungsgründe pflegbar, getrennt Ein/Aus 2026-08-28 09:22:32 +00:00
LocationController.php Warenwirtschaft: AP-50 — Lagerort löschbar (Buchungen übernehmen) + Köln als Default 2026-08-28 09:17:28 +00:00
MaterialQualityController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00
NoticeController.php Warenwirtschaft: Audit-Niedrigbefunde N-2/3/4/5/7/8/9/15 2026-07-15 12:57:26 +00:00
OrderFulfillmentController.php Warenwirtschaft: Review-Fix — Abwicklungs-Board (Copyreader-Links, 500er-Cap, Details) 2026-07-20 12:40:03 +00:00
PackagingItemController.php Warenwirtschaft: AP-51 — Lagerplatz-Felder für Produkte & Verpackung 2026-08-28 09:46:40 +00:00
PackagingMaterialController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00
ProductDevelopmentController.php Warenwirtschaft: AP-09 bis AP-13 (Produktbestand, Set-Produkte, Ausschuss, Konzepte) 2026-06-03 11:04:22 +00:00
ProductionController.php Warenwirtschaft: AP-45 + AP-47 — Verpackung aus Produktionsergebnis, Produktionsrelevant-Flag 2026-08-28 08:38:59 +00:00
ProductStockController.php Warenwirtschaft: AP-51 — Lagerplatz-Felder für Produkte & Verpackung 2026-08-28 09:46:40 +00:00
RawMaterialStockController.php Warenwirtschaft: AP-45 + AP-47 — Verpackung aus Produktionsergebnis, Produktionsrelevant-Flag 2026-08-28 08:38:59 +00:00
SettingCrudController.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
StockDisposalController.php Warenwirtschaft: Audit-Niedrigbefunde N-2/3/4/5/7/8/9/15 2026-07-15 12:57:26 +00:00
StockEntryController.php Warenwirtschaft: AP-50 — Lagerort löschbar (Buchungen übernehmen) + Köln als Default 2026-08-28 09:17:28 +00:00
StockMovementReasonController.php Warenwirtschaft: AP-48 — Produktbestand-Buchungsgründe pflegbar, getrennt Ein/Aus 2026-08-28 09:22:32 +00:00
StorageRoomController.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
StorageShelfController.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
StorageSlotController.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
SupplierCategoryController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00
SupplierController.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
TaxRateController.php Warenwirtschaft: OPT-2 Settings-CRUD-Basisklasse 2026-07-06 10:05:35 +00:00