NEW : Add custom Text on footer total (#26334)

* NEW : Add custom Text on footer total

This function allows you to add a small text to each invoice below the total.
Just add a miscellaneous parameter to activate it
(to wish the happy new year or an indication of invoicing)

* Update pdf_crabe.modules.php

* Update pdf_crabe.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Charlène Benke
2023-10-26 13:55:10 +02:00
committed by GitHub
parent ca3c7f0a37
commit 091d50e809

View File

@@ -9,7 +9,8 @@
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2017-2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2018-2020 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2022 Anthony Berton <anthony.berton@bb2a.fr>
* Copyright (C) 2022 Anthony Berton <anthony.berton@bb2a.fr>
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
*
* 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 @@ class pdf_crabe extends ModelePDFFactures
}
$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));
}