gruene-seele/app/Services
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
..
Facade first commit 2021-01-08 17:48:20 +01:00
Payment commit 08-2025 2025-08-12 15:51:04 +02:00
Stats Updates to 03-2025 2025-04-01 10:39:21 +02:00
Yard User Order all Margins / Checkout 2021-01-22 15:54:51 +01:00
Credit.php Gutschriften Anpassungen 2021-04-29 16:36:11 +02:00
CustomerPriority.php Zugriff Redakteur, Kundenhoheit API 2022-01-04 11:17:07 +01:00
DeletionGuard.php Warenwirtschaft: AP-31 Löschen mit Soft-Delete + Abhängigkeitsprüfung 2026-07-15 12:31:11 +00:00
HomepartyCart.php first commit 2021-01-08 17:48:20 +01:00
HomepartyUserCart.php first commit 2021-01-08 17:48:20 +01:00
HTMLHelper.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
InventoryService.php Warenwirtschaft: Audit-Niedrigbefunde N-2/3/4/5/7/8/9/15 2026-07-15 12:57:26 +00:00
Invoice.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
MyLog.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
MyPDFMerger.php Work to invoice 2021-02-10 10:42:24 +01:00
OrderStatusService.php Warenwirtschaft: AP-33a Bestell-Abwicklung — Nav „Bestellungen" + Fulfillment-Board 2026-07-16 11:30:57 +00:00
Payment.php commit 08-2025 2025-08-12 15:51:04 +02:00
PaymentHelper.php commit 08-2025 2025-08-12 15:51:04 +02:00
PaymentReminderService.php Warenwirtschaft: Review-Fix — Mahnwesen-Storno über OrderStatusService::setShipped 2026-07-20 09:47:20 +00:00
PaymentService.php commit 08-2025 2025-08-12 15:51:04 +02:00
PDFMerger.php commit 08-2025 2025-08-12 15:51:04 +02:00
ProductImage.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
ProductionService.php Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +00:00
ProductStockService.php Warenwirtschaft: Review-Fix — Stichtags-Schutz als unveränderliches Flag (sale_stock_exempt) 2026-07-20 09:41:01 +00:00
Shop.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
Slim.php User Order all Margins / Checkout 2021-01-22 15:54:51 +01:00
SysLog.php first commit 2021-01-08 17:48:20 +01:00
Type.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserCart.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserHelper.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
UserMarign.php commit 08-2025 2025-08-12 15:51:04 +02:00
UserService.php commit 08-2025 2025-08-12 15:51:04 +02:00
Util.php commit 08-2025 2025-08-12 15:51:04 +02:00
Yard.php Updates to 03-2025 2025-04-01 10:39:21 +02:00