diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php index abb82dd9e2e..029bbbab5a8 100644 --- a/htdocs/core/class/discount.class.php +++ b/htdocs/core/class/discount.class.php @@ -1,6 +1,7 @@ * Copyright (C) 2004-2018 Laurent Destailleur + * Copyright (C) 2024 Alexandre Janniaux * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,32 +23,13 @@ * \brief File of class to manage absolute discounts */ +require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php'; /** * Class to manage absolute discounts */ -class DiscountAbsolute +class DiscountAbsolute extends CommonObject { - /** - * @var DoliDB Database handler. - */ - public $db; - - /** - * @var string Error code (or message) - */ - public $error; - - /** - * @var string[] Array of error strings - */ - public $errors = array(); - - /** - * @var int ID discount - */ - public $id; - /** * @var int Thirdparty ID * @deprecated