From 74f79ffe3c29c045ef0b73559312abe4a6da30ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 20 Feb 2023 23:11:19 +0100 Subject: [PATCH] doc --- htdocs/core/class/commonobjectline.class.php | 12 ++++++++++++ htdocs/core/class/commonorder.class.php | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/commonobjectline.class.php b/htdocs/core/class/commonobjectline.class.php index 972ab7e4476..02749aa1f55 100644 --- a/htdocs/core/class/commonobjectline.class.php +++ b/htdocs/core/class/commonobjectline.class.php @@ -79,8 +79,20 @@ abstract class CommonObjectLine extends CommonObject public $product_type; // type in line public $fk_product; // product id in line (when line is linked to a product) + /** + * Description of the line + * @var string + */ public $desc; + /** + * Description of the line + * @var string + * @deprecated + * @see $desc + */ + public $description; + public $product; // To store full product object after a fetch_product() on a line public $product_ref; // ref in product table public $product_label; // label in product table diff --git a/htdocs/core/class/commonorder.class.php b/htdocs/core/class/commonorder.class.php index 65ae367c3b2..8f2edc005ec 100644 --- a/htdocs/core/class/commonorder.class.php +++ b/htdocs/core/class/commonorder.class.php @@ -167,12 +167,6 @@ abstract class CommonOrderLine extends CommonObjectLine */ public $product_type = 0; - /** - * Description of the line - * @var string - */ - public $desc; - /** * Id of corresponding product * @var int