gruene-seele/app/Services
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
..
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-51 — Lagerplatz-Felder für Produkte & Verpackung 2026-08-28 09:46:40 +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: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
Invoice.php Verkauf: Stornorechnung — fehlende createCancellation() im InvoiceRepository ergänzt, eigene Storno-Mail 2026-09-09 12:03:35 +00: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: F-16 — fachliche Vorbedingungen innerhalb der Sperre prüfen 2026-09-08 11:09:53 +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-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
ProductStockService.php Warenwirtschaft: F-12 — Verkaufs-Gegenbuchungen im Monatsverbrauch netto verrechnen 2026-09-08 11:04:07 +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