gruene-seele/app/Models
Kevin Adametz 736cb087ae Warenwirtschaft: Einkäufe auch nach Buchung korrigierbar, mit Änderungsprotokoll
Bisher ließen sich nur offene Bestellungen bearbeiten; ein Tippfehler in
einem gebuchten Wareneingang war nicht korrigierbar (Anforderung 14.09.2026).

- Bearbeiten/Korrigieren für gebuchte Eingänge (Admin): Bestell- und
  Eingangsdaten (Menge, Datum, Charge, MHD, Qualität, Preise, Lieferant,
  Lagerort). Menge wirkt sofort auf den Bestand; ml-Eingänge werden in ml
  korrigiert und über die gespeicherte Dichte in Gramm gebucht.
- Schutz: Menge nicht unter den bereits verbrauchten Anteil (Rohstoff je
  Eingang, Verpackung je Artikel); bei Verbrauch sind Art und Rohstoff/
  Artikel gesperrt (Formular + Server).
- Änderungsprotokoll (stock_entry_changes): wer/wann/Grund + geänderte
  Felder alt → neu; Anzeige auf der Detailseite. Grund bei gebuchten
  Eingängen Pflicht, bei offenen optional. Speichern ohne Änderung
  erzeugt keine Zeile.
- Tests (6 neue), In-App-Doku (Hinweise + Leitfaden 3.2) nachgezogen.

Migration: 2026_09_14_110000_create_stock_entry_changes_table.
Suite: 396 grün.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 14:51:27 +00:00
..
ApiOrderLog.php Warenwirtschaft: Review-Fix — Indizes + schlanke API-Bestellungen-Seite 2026-07-20 13:02:47 +00:00
Attribute.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
AttributeType.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Category.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Country.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
CountryPrice.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
DeliveryTime.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
DisposalReason.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
File.php first commit 2021-01-08 17:48:20 +01:00
Import.php first commit 2021-01-08 17:48:20 +01:00
Ingredient.php Warenwirtschaft: AP-42 — Rohstoff-Dichte (g/ml) für ml-Erfassung im Wareneingang 2026-08-28 09:05:07 +00:00
IqImage.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
IqSite.php first commit 2021-01-08 17:48:20 +01:00
LeadType.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Location.php Warenwirtschaft: F-17 — Köln-Default zentral (Location::defaultId), auch beim Ausschuss, nur aktive Standorte 2026-09-08 11:09:53 +00:00
Logger.php first commit 2021-01-08 17:48:20 +01:00
MaterialQuality.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
PackagingItem.php Warenwirtschaft: AP-51 — Lagerplatz-Felder für Produkte & Verpackung 2026-08-28 09:46:40 +00:00
PackagingMaterial.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
PaymentMethod.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
PaymentReminder.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
PaymentTransaction.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Product.php Warenwirtschaft: F-08 — Füllgewicht mit Nachkommastellen 2026-09-08 10:59:48 +00:00
ProductAttribute.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ProductBuy.php #10 Promotion Modul, Kommentar 2 2021-11-09 18:40:18 +01:00
ProductCategory.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ProductImage.php 13-05-2026 Waren Wirtschaft 2026-05-13 18:09:20 +02:00
ProductIngredient.php Warenwirtschaft: AP-23 Rezeptur-Phasen (Hersteller-Rezeptur) 2026-07-06 12:02:39 +00:00
Production.php Warenwirtschaft: AP-43 — Produktion zwischenspeichern (Entwurf) + „abschließen" 2026-08-28 09:59:42 +00:00
ProductionIngredient.php Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
ProductionOutput.php Warenwirtschaft: AP-28 Neue Produktions-Maske + Produktionsergebnis 2026-07-06 14:02:54 +00:00
ProductionPackaging.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
ProductStockMovement.php Warenwirtschaft: AP-09 bis AP-13 (Produktbestand, Set-Produkte, Ausschuss, Konzepte) 2026-06-03 11:04:22 +00:00
PromotionAdmin.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
PromotionAdminProduct.php testemich Promotion 2022-04-14 13:21:17 +02:00
PromotionUser.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
PromotionUserOrder.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
PromotionUserProduct.php testemich Promotion 2022-04-14 13:21:17 +02:00
RecipePhase.php Warenwirtschaft: AP-23 Rezeptur-Phasen (Hersteller-Rezeptur) 2026-07-06 12:02:39 +00:00
Setting.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Shipping.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ShippingCountry.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ShippingPrice.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ShoppingOrder.php Warenwirtschaft: AP-38 — ERP-/Connector-Status-Mapping vervollständigt 2026-08-28 11:01:25 +00:00
ShoppingOrderItem.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ShoppingOrderMargin.php commit 08-2025 2025-08-12 15:51:04 +02:00
ShoppingPayment.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
ShoppingUser.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
StockDisposal.php Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
StockEntry.php Warenwirtschaft: Einkäufe auch nach Buchung korrigierbar, mit Änderungsprotokoll 2026-09-14 14:51:27 +00:00
StockEntryChange.php Warenwirtschaft: Einkäufe auch nach Buchung korrigierbar, mit Änderungsprotokoll 2026-09-14 14:51:27 +00:00
StockMovementReason.php Warenwirtschaft: AP-48 — Produktbestand-Buchungsgründe pflegbar, getrennt Ein/Aus 2026-08-28 09:22:32 +00:00
StorageRoom.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
StorageSegment.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
StorageShelf.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
StorageSlot.php Warenwirtschaft: AP-21 INCI-Erweiterungen 2026-07-06 11:36:28 +00:00
Supplier.php Warenwirtschaft: AP-00 bis AP-08 + aktualisierter Entwicklungsplan 2026-06-02 16:30:42 +00:00
SupplierCategory.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
SySetting.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
TaxRate.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
UserAccount.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserCredit.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserCreditMargin.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserHistory.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserLevel.php Partnercenter: Rollen-Flags fuer Einzelprovision und interne Rollen 2026-09-14 08:57:42 +00:00
UserLevelMargin.php User Order all Margins / Checkout 2021-01-22 15:54:51 +01:00
UserMessage.php first commit 2021-01-08 17:48:20 +01:00
UserPayCredit.php testemich Promotion 2022-04-14 13:21:17 +02:00
UserRegister.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserShop.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserUpdateEmail.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserWhitelabelProduct.php Updates to 03-2025 2025-04-01 10:39:21 +02:00