From 7300aa712251952855e822555648a0c9145be6ca Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Fri, 3 Oct 2025 14:13:45 +0200 Subject: [PATCH] Update SIRET formatting to use 3 spaces before last 5 numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed from 4 total spaces to 3 spaces before last 5 characters - Updated method documentation to reflect the change - Example: 48941746900033 → 4 8 9 4 1 7 4 6 9 0 0 0 3 3 (with 3 spaces before last 5) --- core/class/declarationtva_pdf.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 930ad13..6765011 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -1080,7 +1080,7 @@ class DeclarationTVA_PDF /** * Format SIRET number with special spacing - * Adds space between every character, with 4 extra spaces before last 5 characters + * Adds space between every character, with 3 extra spaces before last 5 characters * * @param string $siret SIRET number * @return string Formatted SIRET @@ -1102,8 +1102,8 @@ class DeclarationTVA_PDF // Add space between every character in main part $formatted_main = implode(' ', str_split($main_part)); - // Add space between every character in last 5, with 4 extra spaces before - $formatted_last = ' ' . implode(' ', str_split($last_5)); + // Add space between every character in last 5, with 3 extra spaces before + $formatted_last = ' ' . implode(' ', str_split($last_5)); return $formatted_main . $formatted_last; }