From d8fac8081fe04e215d5ebd027e61bea7986629b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Thu, 28 Sep 2023 10:25:09 +0200 Subject: [PATCH] FIX : Bad hidden variable Name the hidden constant MAIN_PDF_SHIPPING_DISPLAY_AMOUNT_HT had been renamed since version 9 to SHIPPING_PDF_DISPLAY_AMOUNT_HT but not in this pdf file --- htdocs/core/modules/expedition/doc/pdf_espadon.modules.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/expedition/doc/pdf_espadon.modules.php b/htdocs/core/modules/expedition/doc/pdf_espadon.modules.php index d9ccc47316b..668666b24d3 100644 --- a/htdocs/core/modules/expedition/doc/pdf_espadon.modules.php +++ b/htdocs/core/modules/expedition/doc/pdf_espadon.modules.php @@ -4,6 +4,7 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2014-2015 Marcos García * Copyright (C) 2018-2020 Frédéric France + * Copyright (C) 2023 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 @@ -1284,7 +1285,7 @@ class pdf_espadon extends ModelePdfExpedition $this->cols['subprice'] = array( 'rank' => $rank, 'width' => 19, // in mm - 'status' => !empty($conf->global->MAIN_PDF_SHIPPING_DISPLAY_AMOUNT_HT) ? 1 : 0, + 'status' => !empty($conf->global->SHIPPING_PDF_DISPLAY_AMOUNT_HT) ? 1 : 0, 'title' => array( 'textkey' => 'PriceUHT' ), @@ -1295,7 +1296,7 @@ class pdf_espadon extends ModelePdfExpedition $this->cols['totalexcltax'] = array( 'rank' => $rank, 'width' => 26, // in mm - 'status' => !empty($conf->global->MAIN_PDF_SHIPPING_DISPLAY_AMOUNT_HT) ? 1 : 0, + 'status' => !empty($conf->global->SHIPPING_PDF_DISPLAY_AMOUNT_HT) ? 1 : 0, 'title' => array( 'textkey' => 'TotalHT' ),