diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 737323075c7f9..c57b948d5e4f7 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -9,7 +9,8 @@ * Copyright (C) 2015 Marcos García * Copyright (C) 2017-2018 Ferran Marcet * Copyright (C) 2018-2020 Frédéric France - * Copyright (C) 2022 Anthony Berton + * Copyright (C) 2022 Anthony Berton + * Copyright (C) 2022 Charlene Benke * * 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 @@ -1646,6 +1647,14 @@ protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs } $index++; + + if (getDolGlobalString("BILL_TEXT_TOTAL_FOOTER")) { + $index++; + $index++; + $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); + $pdf->MultiCell($col2x - $col1x, $tab2_hl, $conf->global->BILL_TEXT_TOTAL_FOOTER, 0, 'L', 0); + } + return ($tab2_top + ($tab2_hl * $index)); }