From ec334c6bb3965bb477b3a377c6fbde6bd32fd926 Mon Sep 17 00:00:00 2001 From: support-accellier <151022268+support-accellier@users.noreply.github.com> Date: Mon, 22 Jun 2026 01:08:15 +0530 Subject: [PATCH] fix: include 'commande' in bank account PDF substitution variables (#38933) * fix: include 'commande' in bank account PDF substitution variables Fixes #38927 * fix: include 'commande' in bank account PDF substitution variables Fixes #38927 --- htdocs/core/class/commondocgenerator.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index 8b7b6842973..7d49cc505de 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -758,7 +758,7 @@ abstract class CommonDocGenerator $array_key.'_remain_to_pay' => price2num($object->total_ttc - $already_payed_all, 'MT') ); - if (in_array($object->element, array('facture', 'invoice', 'supplier_invoice', 'facture_fournisseur'))) { + if (in_array($object->element, array('facture', 'invoice', 'supplier_invoice', 'facture_fournisseur', 'commande'))) { $bank_account = null; if (property_exists($object, 'fk_account') && $object->fk_account > 0) {