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;