diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index d7c0fd82126..f7d6b316604 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -1915,7 +1915,7 @@ abstract class CommonInvoice extends CommonObject $idofbankaccountouse = $this->fk_account; if (empty($idofbankaccountouse)) { - $idofbankaccountouse = $this->fk_bank; + $idofbankaccountouse = $this->fk_bank; // for backward compatibility } if (empty($idofbankaccountouse)) { $idofbankaccountouse = getDolGlobalInt('FACTURE_RIB_NUMBER');