From 35f30522806764780431173c4fb1d1652ba3bd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josep=20Llu=C3=ADs?= Date: Mon, 6 Apr 2020 12:47:57 +0200 Subject: [PATCH 1/2] NEW add VAT ID in sepamandate document add: VAT ID in sepamandate document --- .../modules/bank/doc/pdf_sepamandate.modules.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php index 3b627d79d86..3a01ecc8e02 100644 --- a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php +++ b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php @@ -1,5 +1,6 @@ + * Copyright (C) 2020 Josep LluĂ­s Amador * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -282,8 +283,17 @@ class pdf_sepamandate extends ModeleBankAccountDoc $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $outputlangs->transnoentitiesnoconv("SEPAFormYourName").' * : ', 0, 'L'); $pdf->SetXY(80, $posY); $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $sepaname, 0, 'L'); + + $sepavatid = '__________________________________________________'; + if (! empty($thirdparty->idprof1)) $sepavatid = $thirdparty->idprof1; + $posY=$pdf->GetY(); + $posY+=1; + $pdf->SetXY($this->marge_gauche, $posY); + $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $outputlangs->transnoentitiesnoconv('ProfId1'.$thirdparty->country_code).' * : ', 0, 'L'); + $pdf->SetXY(80, $posY); + $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $sepavatid, 0, 'L'); - $address = '______________________________________________'; + $address = '______________________________________________'; if ($thirdparty->id > 0) { $address = $thirdparty->getFullAddress(); From 3b9267fd8a16193d366c1768d1051d2e670cea86 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 6 Apr 2020 10:51:06 +0000 Subject: [PATCH 2/2] Fixing style errors. --- htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php index 3a01ecc8e02..9bdbf997ead 100644 --- a/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php +++ b/htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php @@ -283,7 +283,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $outputlangs->transnoentitiesnoconv("SEPAFormYourName").' * : ', 0, 'L'); $pdf->SetXY(80, $posY); $pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $sepaname, 0, 'L'); - + $sepavatid = '__________________________________________________'; if (! empty($thirdparty->idprof1)) $sepavatid = $thirdparty->idprof1; $posY=$pdf->GetY();