From 8a8608fa9109f644ba2cec8ac8ae1e8c7a5195fb Mon Sep 17 00:00:00 2001 From: Vaadasch Date: Wed, 19 Mar 2025 13:55:13 +0100 Subject: [PATCH] Update paiement.class.php add $error++ if invoice not linked (#33500) --- htdocs/compta/paiement/class/paiement.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index 4761663e644..a0fdf379332 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -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