diff --git a/src/ZugferdSettings.php b/src/ZugferdSettings.php index 6f4a59f..2bd8717 100644 --- a/src/ZugferdSettings.php +++ b/src/ZugferdSettings.php @@ -245,6 +245,7 @@ public static function getSpecialDecimalPlacesMaps(): array */ public static function getSpecialDecimalPlacesMap(string $nodePath, int $defaultDecimalPlaces): int { + $nodePath = preg_replace('@\[\d+\]@', '', $nodePath); return static::$specialDecimalPlacesMaps[$nodePath] ?? $defaultDecimalPlaces; } @@ -268,6 +269,7 @@ public static function setSpecialDecimalPlacesMaps(array $specialDecimalPlacesMa */ public static function addSpecialDecimalPlacesMap(string $nodePath, int $defaultDecimalPlaces): void { + $nodePath = preg_replace('@\[\d+\]@', '', $nodePath); static::$specialDecimalPlacesMaps[$nodePath] = $defaultDecimalPlaces; }