diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 9c30198f3e7..7a3b3c13cba 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -233,7 +233,7 @@ if (empty($reshook)) { $line->fetch_product(); } if (is_object($line->product) && $line->product->id > 0) { - if (empty($line->product->tosell)) { + if (empty($line->product->status)) { $warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref); } } diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 3b40b864f5a..92621cdfcac 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -203,7 +203,7 @@ if (empty($reshook)) { $line->fetch_product(); } if (is_object($line->product) && $line->product->id > 0) { - if (empty($line->product->tosell)) { + if (empty($line->product->status)) { $warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref); } } diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index dd784b53419..ca53310fb71 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -234,7 +234,7 @@ if (empty($reshook)) { $line->fetch_product(); } if (is_object($line->product) && $line->product->id > 0) { - if (empty($line->product->tosell)) { + if (empty($line->product->status)) { $warningMsgLineList[$line->id] = $langs->trans('WarningLineProductNotToSell', $line->product->ref); } }