This commit is contained in:
Laurent Destailleur 2025-10-15 12:31:30 +02:00
parent f33ed7a702
commit 4fdf50752f

View file

@ -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');