diff --git a/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php b/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php index 8b21817..cfa572d 100644 --- a/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php @@ -9,6 +9,7 @@ * Copyright (C) 2015 Marcos García * Copyright (C) 2017-2018 Ferran Marcet * Copyright (C) 2018-2020 Frédéric France + * Copyright (C) 2022 Sinabe Sàrl, Benoit Vianin * * 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 @@ -148,8 +149,8 @@ class pdf_swissqr extends ModelePDFFactures $langs->loadLangs(array("main", "bills")); $this->db = $db; - $this->name = "crabe"; - $this->description = $langs->trans('PDFCrabeDescription'); + $this->name = "SwissQR"; + $this->description = 'Swiss QR invoice'; $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template // Dimension page @@ -1329,6 +1330,9 @@ class pdf_swissqr extends ModelePDFFactures $account = new Account($this->db); $account->fetch($bankid); + // Copy the IBAN outside the tableau_info function + $object->iban = $account->iban; + $curx = $this->marge_gauche; $cury = $posy;