Update paiement.class.php add $error++ if invoice not linked (#33500)

This commit is contained in:
Vaadasch 2025-03-19 13:55:13 +01:00 committed by GitHub
parent 5fe018cdba
commit 8a8608fa91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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