From 8d9e9f13cfead5ff6ddb8acf72d4bbbc6a3398ef Mon Sep 17 00:00:00 2001 From: thomas-Ngr Date: Tue, 5 Mar 2024 17:18:36 +0100 Subject: [PATCH] fix #28374 : tosell is not used anymore on products, use status (#28647) --- htdocs/comm/propal/card.php | 2 +- htdocs/commande/card.php | 2 +- htdocs/compta/facture/card.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); } }