gruene-seele/app/Models
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
..
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-42 — Rohstoff-Dichte (g/ml) für ml-Erfassung im Wareneingang 2026-08-28 09:05:07 +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: F-17 — Köln-Default zentral (Location::defaultId), auch beim Ausschuss, nur aktive Standorte 2026-09-08 11:09:53 +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 Warenwirtschaft: AP-51 — Lagerplatz-Felder für Produkte & Verpackung 2026-08-28 09:46:40 +00: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: F-08 — Füllgewicht mit Nachkommastellen 2026-09-08 10:59:48 +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-43 — Produktion zwischenspeichern (Entwurf) + „abschließen" 2026-08-28 09:59:42 +00:00
ProductionIngredient.php Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00: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: AP-38 — ERP-/Connector-Status-Mapping vervollständigt 2026-08-28 11:01:25 +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-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
StockEntry.php Warenwirtschaft: AP-53 — Gramm-Mengen mit drei Nachkommastellen (Produktion, Wareneingang, Ausschuss) 2026-09-09 15:54:29 +00:00
StockMovementReason.php Warenwirtschaft: AP-48 — Produktbestand-Buchungsgründe pflegbar, getrennt Ein/Aus 2026-08-28 09:22:32 +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