Update paiement.class.php add $error++ if invoice not linked (#33500)
This commit is contained in:
parent
5fe018cdba
commit
8a8608fa91
1 changed files with 2 additions and 0 deletions
|
|
@ -899,6 +899,7 @@ class Paiement extends CommonObject
|
|||
'company'
|
||||
);
|
||||
if ($result <= 0) {
|
||||
$error++;
|
||||
dol_syslog(get_class($this).'::addPaymentToBank '.$this->db->lasterror());
|
||||
}
|
||||
$linkaddedforthirdparty[$fac->thirdparty->id] = $fac->thirdparty->id; // Mark as done for this thirdparty
|
||||
|
|
@ -917,6 +918,7 @@ class Paiement extends CommonObject
|
|||
'company'
|
||||
);
|
||||
if ($result <= 0) {
|
||||
$error++;
|
||||
dol_syslog(get_class($this).'::addPaymentToBank '.$this->db->lasterror());
|
||||
}
|
||||
$linkaddedforthirdparty[$fac->thirdparty->id] = $fac->thirdparty->id; // Mark as done for this thirdparty
|
||||
|
|
|
|||
Loading…
Reference in a new issue