|
|
99a6c92e6c
|
Warenwirtschaft: AP-28 Neue Produktions-Maske + Produktionsergebnis
- production_outputs (Migration inkl. idempotentem Backfill): eine Produktion
kann mehrere Output-Produkte erzeugen (z. B. 40x50 ml + 50x5 ml)
- ProductStockService bucht je Output-Produkt (idempotenter Diff, append-only);
die geplante Stückzahl bucht nichts mehr, entfernte Outputs werden rückgebucht
- ProductionService store/update mit outputs[] (leer = Fallback auf Planung
inkl. suggestedBatchNumber — Backfill-Semantik, Alt-Aufrufer stabil)
- Maske: INCI-Liste (Alternativname/Qualität/Anteil/Gramm/Regal), Chargen-
Erfassung nach Rezeptur-Phasen mit Notiz + Status-Ampel, Produktionsergebnis-
Repeater mit Chargen-Nr.-Vorbelegung (Präfix + ttmmjj), Planungs-Hinweis
- Show: Produktionsergebnis-Karte; Index: Ergebnis-Spalte
- Hinweise-Doku + Plan V6.0 §6 fortgeschrieben (nächster Schritt: AP-13)
Tests: ProductionOutputTest (8 neu); Suite 201 grün, 731 Assertionen
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-06 14:02:54 +00:00 |
|
|
|
e47d848d3d
|
Warenwirtschaft: OPT-3 Index-Limits + OPT-4 show()-Refactoring
- Wareneingang-/Produktions-Uebersicht: Eingegangene auf 500 gedeckelt
(offene Bestellungen immer vollstaendig), ?all=1 + Hinweis-Link;
ungenutzte User-Eager-Loads entfernt
- RawMaterialStockController::show() entschlackt: Chargen-Restmengen (FEFO)
und offene Bestellungen im InventoryService, letzter Netto-Preis je
Lieferant als Window-Function-Query im StockEntryRepository
Tests: RawMaterialStockTest +2, volle Suite 186 gruen, 663 Assertions
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-06 12:23:20 +00:00 |
|
|
|
65f949dd7a
|
Warenwirtschaft: OPT-1 Quick Wins + Entwicklungsplan V6.0
- N+1-Fix Ausschussliste: user.account eager laden (StockDisposalController@index)
- Composite-Indizes stock_entries(entry_type,status,ingredient_id/packaging_item_id) für InventoryService-Aggregationen
- Ungenutzten Eager-Load producedByUser aus ProductionRepository::listForIndex entfernt
- ExampleTest auf assertRedirect umgestellt (Suite 100% grün: 155 Tests)
- Query-Count-Regressionstest für die Ausschussliste
- Plan V6.0 (Code-Verifikation, OPT-Block, geklärte Kundenfragen)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-06 09:54:24 +00:00 |
|