From 6ffc217f496a2fccb9ca4af40101e4c3ab367b5b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Jun 2025 03:12:15 +0200 Subject: [PATCH] Debug v22 --- htdocs/compta/prelevement/class/bonprelevement.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index ad73d196e6d..9c0ab968fea 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -2344,7 +2344,7 @@ class BonPrelevement extends CommonObject $XML_DEBITOR .= ' ' . $CrLf; $XML_DEBITOR .= ' ' . $row_country_code . '' . $CrLf; $addressline1 = strtr($row_address, array(chr(13) => ", ", chr(10) => "")); - $addressline2 = strtr($row_zip . (($row_zip && $row_town) ? ' ' : '') . (string) $row_town), array(chr(13) => ", ", chr(10) => "")); + $addressline2 = strtr($row_zip . (($row_zip && $row_town) ? ' ' : '') . (string) $row_town, array(chr(13) => ", ", chr(10) => "")); if (trim($addressline1)) { $XML_DEBITOR .= ' ' . dolEscapeXML(dol_trunc(dol_string_nospecial(dol_string_unaccent($addressline1), ' '), 70, 'right', 'UTF-8', 1)) . '' . $CrLf; } @@ -2429,7 +2429,7 @@ class BonPrelevement extends CommonObject $XML_CREDITOR .= ' ' . $CrLf; $XML_CREDITOR .= ' ' . $row_country_code . '' . $CrLf; $addressline1 = strtr($row_address, array(chr(13) => ", ", chr(10) => "")); - $addressline2 = strtr($row_zip . (($row_zip && $row_town) ? ' ' : '') . (string) $row_town), array(chr(13) => ", ", chr(10) => "")); + $addressline2 = strtr($row_zip . (($row_zip && $row_town) ? ' ' : '') . (string) $row_town, array(chr(13) => ", ", chr(10) => "")); if (trim($addressline1)) { $XML_CREDITOR .= ' ' . dolEscapeXML(dol_trunc(dol_string_nospecial(dol_string_unaccent($addressline1), ' '), 70, 'right', 'UTF-8', 1)) . '' . $CrLf; }