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

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

parent d9c7dc86
No related branches found
No related tags found
No related merge requests found
......@@ -795,7 +795,6 @@ class BonPrelevement extends CommonObject
{
require_once DOL_DOCUMENT_ROOT . '/societe/class/companybankaccount.class.php';
$soc = new Societe($this->db);
$bac = new CompanyBankAccount($this->db);
// Check RIB
$i = 0;
......@@ -810,6 +809,7 @@ class BonPrelevement extends CommonObject
{
if ($soc->fetch($fact->socid) >= 0)
{
$bac = new CompanyBankAccount($this->db);
$bac->fetch(0,$soc->id);
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