From 091d50e809e386adfbbbb0e0ad7ff3ac73fe7c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:55:10 +0200 Subject: [PATCH] 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 --- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 737323075c7..c57b948d5e4 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 @@ 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)); }