gruene-seele/app/Models
Kevin Adametz 744b36cdcb Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen
AP-35 (Mengenberechnung): Die Hersteller-Rezeptur ist in Prozent hinterlegt; die
Sollmengen skalieren jetzt auf das Füllgewicht statt fest auf ~100 g. Neuer
Faktor recipeGramScale = Füllgewicht/100. Basis = neues, optionales Produkt-Feld
"fill_weight" (g); ist es leer, gilt bei ml-Produkten (unit=1) die Füllmenge
(contents_total) als Gramm (1 g/ml). Ohne Massenbasis (z. B. Stück-Produkte)
bleibt es beim Altverhalten (Anteil = Gramm), sodass Bestandsprodukte/Tests
unverändert rechnen. Skala wird an die Maske durchgereicht (recipe_gram_scale),
damit Client und Server identisch rechnen (Service + 4 JS-Stellen).

AP-39 (Abwiegen): Die Ist-Menge je INCI muss nicht mehr aufs Gramm passen —
assertLinesMatchRecipe erlaubt ±5 % (kleiner absoluter Sockel), gebucht wird der
reale Ist-Wert. Status-Ampel in der Maske: Orange = nichts eingetragen,
Grün = eingetragen und ±5 %, Rot = >5 % daneben (Zahlendreher-Schutz).

Migration add_fill_weight_to_products auf Dev-/Live-DB ausgeführt (nullable).
Product fillable/cast + Produktformular-Feld ergänzt. 5 Tests, Suite 310 grün.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-27 14:36:52 +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-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +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: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +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 April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02: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: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +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-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
ProductionIngredient.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02: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: Review-Fix — Stichtags-Schutz als unveränderliches Flag (sale_stock_exempt) 2026-07-20 09:41:01 +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-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
StockEntry.php Warenwirtschaft: N-1 — Chargen-Gruppierung je Lieferant (Kundenentscheid 15.07.2026) 2026-07-15 13:25:35 +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 Updates to 03-2025 2025-04-01 10:39:21 +02: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