No description
Find a file
Kevin Adametz b8180a06a1 Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss)
Kundennachtrag 09.09.2026: Ist-Mengen je Charge in der Produktion sollen auf das Milligramm eingegeben werden können (z. B. 0,125 g). Bisher rundeten Datenbank (decimal 12,2), Bestandslogik, Anzeige und Toleranzsockel auf zwei Stellen; „0,125" wurde still zu 0,13, „0.125" nach der Punkt-Regel zu 125 g.

- Migration 2026_09_09_100000: production_ingredients.quantity_used, stock_entries.ordered_quantity/received_quantity, stock_disposals.quantity → decimal(12,3); Casts decimal:3. Auf der Dev-DB (Live-Kopie) ausgeführt, 53/78/7 Zeilen unverändert.
- InventoryService::QUANTITY_DECIMALS = 3; roundWawiQuantity() ersetzt alle round(…, 2) in InventoryService, ProductionService, StockDisposalController/-Request, StockEntryRepository/-Controller, RawMaterialStockController.
- formatWawiQuantity($v, $min = 2): bis drei Stellen, mindestens zwei — Produktionsdetail, Einkauf Liste/Detail/Formular, Ausschuss-Liste, Chargen-Rest im Rohstoff-Detail.
- Eingaberegel (reFormatWawiNumber, JS parseGerman/parseNumber): zusätzlich „0.xxx" als Dezimalzahl; „1.500" bleibt 1500. Produktions-JS: fmt() bis drei Stellen, fmtInput() schreibt gespeicherte Zahlen deutsch ins Feld (1,125 statt 1.125 = 1125).
- Soll-Ist-Toleranz: Sockel 0,05 → 0,005 g; Ausschuss min 0,001.
- Doku: Hinweise (Neu/geändert), Leitfaden Version 3.1 mit Abschnitt 26, Plan V7 AP-53, README (Deploy-Checkliste, Suite 378).

Tests: QuantityPrecisionTest (6) — Parsing, Anzeige, Produktion 0,125 g exakt + Rest 9,875 g, Entwurf 1,125 wiederöffnen, Toleranz Kleinmengen, Ausschuss 0,005 g.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-09 15:54:29 +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-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +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-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
dev Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
docker/8.4 April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
docs Warenwirtschaft: In-App-Doku für Deploy — Hinweise Stand 09.09.2026, Testleitfaden Version 3 (Teil C), Deployment-Checkliste 2026-09-09 09:17:28 +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-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
routes Warenwirtschaft: AP-48 — Produktbestand-Buchungsgründe pflegbar, getrennt Ein/Aus 2026-08-28 09:22:32 +00:00
storage April 2026 waren Wirtschaft Feedback 2026-04-10 17:14:38 +02:00
tests Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +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