Skip to content
Snippets Groups Projects
Commit d8644ec0 authored by Juanjo Menent's avatar Juanjo Menent
Browse files

Fix: Unable to make a withdrawal with two or more invocies

parent 9e5e74cb
No related branches found
No related tags found
No related merge requests found
...@@ -795,7 +795,6 @@ class BonPrelevement extends CommonObject ...@@ -795,7 +795,6 @@ class BonPrelevement extends CommonObject
{ {
require_once DOL_DOCUMENT_ROOT . '/societe/class/companybankaccount.class.php'; require_once DOL_DOCUMENT_ROOT . '/societe/class/companybankaccount.class.php';
$soc = new Societe($this->db); $soc = new Societe($this->db);
$bac = new CompanyBankAccount($this->db);
// Check RIB // Check RIB
$i = 0; $i = 0;
...@@ -810,6 +809,7 @@ class BonPrelevement extends CommonObject ...@@ -810,6 +809,7 @@ class BonPrelevement extends CommonObject
{ {
if ($soc->fetch($fact->socid) >= 0) if ($soc->fetch($fact->socid) >= 0)
{ {
$bac = new CompanyBankAccount($this->db);
$bac->fetch(0,$soc->id); $bac->fetch(0,$soc->id);
if ($bac->verif() >= 1) if ($bac->verif() >= 1)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment