From f46cc96ebc087e850ff0e016156735ee1f35396b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morel?= Date: Wed, 30 Jul 2025 16:12:59 +0200 Subject: [PATCH 1/2] Update AllowanceCharge.php PR#90 changed $this->multiplierFactorNumeric to $this->baseAmount resulting in an invalid Peppol file. --- src/AllowanceCharge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllowanceCharge.php b/src/AllowanceCharge.php index b5be94e..f1f3a99 100644 --- a/src/AllowanceCharge.php +++ b/src/AllowanceCharge.php @@ -186,7 +186,7 @@ public function xmlSerialize(Writer $writer): void if ($this->multiplierFactorNumeric !== null) { $writer->write([ - Schema::CBC . 'MultiplierFactorNumeric' => NumberFormatter::format($this->baseAmount) + Schema::CBC . 'MultiplierFactorNumeric' => NumberFormatter::format($this->multiplierFactorNumeric) ]); } From f4e0a2777fcdb58cedc5330e01f5793ac44e584a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morel?= Date: Wed, 30 Jul 2025 16:23:32 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 742db63..4e1b8f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Changelog for v1.21.4 + +#### Bug fixes + +- in AllowanceCharge was incorrectly set to baseAmount instead of the actual multiplierFactorNumeric - Thanks [@dragonfly4](https://github.com/dragonfly4) + # Changelog for v1.21.3 #### Bug fixes