Fix: Unable to make a withdrawal with two or more invocies
This commit is contained in:
parent
9e5e74cb58
commit
d8644ec04c
@ -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
|
|||||||
{
|
{
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user