From 8e4077eedfdb6ae2cb15436c35c8d6a7dce2993b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 21 Dec 2021 11:25:19 +0100 Subject: [PATCH] Fix ics on sepa mandate template --- htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php index 5d18a2ec8fc..75850c80ca1 100644 --- a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php +++ b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php @@ -236,8 +236,8 @@ class pdf_sepamandate extends ModeleBankAccountDoc $posY = $pdf->GetY(); $posY += 2; $pdf->SetXY($this->marge_gauche, $posY); - $ics = ''; - if (!empty($conf->global->PRELEVEMENT_ICS)) { + $ics = $object->ics; // ICS for direct debit + if (empty($ics) && !empty($conf->global->PRELEVEMENT_ICS)) { $ics = $conf->global->PRELEVEMENT_ICS; } $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $outputlangs->transnoentitiesnoconv("CreditorIdentifier").' ('.$outputlangs->transnoentitiesnoconv("ICS").') : '.$ics, 0, 'L');