Update bonprelevement.class.php

This commit is contained in:
Laurent Destailleur 2020-10-22 15:57:25 +02:00 committed by GitHub
parent b09a618f38
commit 10a8ce82a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2186,7 +2186,7 @@ class BonPrelevement extends CommonObject
// Get data of bank account
//$id = $configuration->global->PRELEVEMENT_ID_BANKACCOUNT;
$id=($type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT);
$id = ($type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT);
$account = new Account($this->db);
if ($account->fetch($id) > 0)
{