From f6e667da1a6c1d6984bcb0da07754f7f3580696c Mon Sep 17 00:00:00 2001 From: lelex86 <75493227+lelex86@users.noreply.github.com> Date: Wed, 3 Dec 2025 09:59:03 +0100 Subject: [PATCH] FIX: use suspended status in FactureFournisseurRec::updateline() - The method checks `$this->status == self::STATUS_SUSPENDED`. - For recurring **supplier** invoices, `$this->status` is not populated (it is always `null`). - The real field used to store the suspended flag of the template is `$this->suspended`. --- htdocs/fourn/class/fournisseur.facture-rec.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/class/fournisseur.facture-rec.class.php b/htdocs/fourn/class/fournisseur.facture-rec.class.php index 1f3e6ed01b7..88cf6b2d894 100644 --- a/htdocs/fourn/class/fournisseur.facture-rec.class.php +++ b/htdocs/fourn/class/fournisseur.facture-rec.class.php @@ -1186,7 +1186,7 @@ class FactureFournisseurRec extends CommonInvoice return -1; } - if ($this->status == self::STATUS_SUSPENDED) { + if ($this->suspended == self::STATUS_SUSPENDED) { // Clean parameters $fk_product = empty($fk_product) ? 0 : $fk_product; $label = empty($label) ? '' : $label;