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) {