No description
Find a file
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
.cursor Warenwirtschaft: AP-09 bis AP-13 (Produktbestand, Set-Produkte, Ausschuss, Konzepte) 2026-06-03 11:04:22 +00:00
.devcontainer Warenwirtschaft: AP-09 bis AP-13 (Produktbestand, Set-Produkte, Ausschuss, Konzepte) 2026-06-03 11:04:22 +00:00
.idea main system 2021-01-15 18:16:31 +01:00
app Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +00:00
bootstrap first commit 2021-01-08 17:48:20 +01:00
config commit 08-2025 2025-08-12 15:51:04 +02:00
database Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +00:00
dev Warenwirtschaft: Plan V7.0 — Kundenentscheide D-1…D-6 eingearbeitet 2026-08-27 12:07:54 +00:00
docker/8.4 April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
docs Warenwirtschaft: Testleitfaden — Klickwege als Links 2026-07-07 10:17:31 +00:00
packages Updates to 03-2025 2025-04-01 10:39:21 +02:00
public April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
resources Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +00:00
routes Warenwirtschaft: tote Backup-Route-Dateien entfernt 2026-08-26 10:37:44 +00:00
storage April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
tests Warenwirtschaft: AP-35 + AP-39 — Produktionsmengen auf Füllgewicht + ±5 % Abwiegen 2026-08-27 14:36:52 +00:00
tools Updates to 03-2025 2025-04-01 10:39:21 +02:00
.env April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
.gitignore first commit 2021-01-08 17:48:20 +01:00
.mcp.json April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
.php-cs-fixer.php Updates to 03-2025 2025-04-01 10:39:21 +02:00
.phpstorm.meta.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
_ide_helper.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
_ide_helper_models.php April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
artisan first commit 2021-01-08 17:48:20 +01:00
CLAUDE.md April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
composer.json April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
composer.lock April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
docker-compose.yml April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
package-lock.json first commit 2021-01-08 17:48:20 +01:00
package.json first commit 2021-01-08 17:48:20 +01:00
partner.gruene-seele.bio.code-workspace April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
PAYMENT_REMINDER_CRON.md commit 08-2025 2025-08-12 15:51:04 +02:00
phpunit.xml April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
pint.json Warenwirtschaft: AP-32-Brückenlösung — DHL-Label aus WooCommerce übernehmen 2026-07-17 11:35:40 +00:00
server.php first commit 2021-01-08 17:48:20 +01:00
ssh-cron-info.readme commit 08-2025 2025-08-12 15:51:04 +02:00
ssh-info.readme Updates to 03-2025 2025-04-01 10:39:21 +02:00
webpack.mix.js first commit 2021-01-08 17:48:20 +01:00