diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index f9d0804a406..8297515007f 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -622,8 +622,8 @@ class Propal extends CommonObject * @param int $fk_fournprice Id supplier price * @param float|string $pa_ht Buying price without tax ('' to keep PMP unchanged or a float) * @param string $label ??? - * @param int|string $date_start Start date of the line - * @param int|string $date_end End date of the line + * @param int|'' $date_start Start date of the line + * @param int|'' $date_end End date of the line * @param array $array_options extrafields array * @param int|null $fk_unit Code of the unit to use. Null to use the default one * @param string $origin Depend on global conf MAIN_CREATEFROM_KEEP_LINE_ORIGIN_INFORMATION can be 'orderdet', 'propaldet'..., else 'order','propal,'.... @@ -925,8 +925,8 @@ class Propal extends CommonObject * @param float|string $pa_ht Price (without tax) of product when it was bought (Can be '' to keep AWP unchanged or a float value) * @param string $label ??? * @param int $type 0/1=Product/service - * @param int|string $date_start Start date of the line - * @param int|string $date_end End date of the line + * @param int|'' $date_start Start date of the line + * @param int|'' $date_end End date of the line * @param array $array_options extrafields array * @param int|null $fk_unit Code of the unit to use. Null to use the default one * @param float $pu_ht_devise Unit price in currency diff --git a/htdocs/comm/propal/class/propaleligne.class.php b/htdocs/comm/propal/class/propaleligne.class.php index f3ebf5aab83..5eee51c2119 100644 --- a/htdocs/comm/propal/class/propaleligne.class.php +++ b/htdocs/comm/propal/class/propaleligne.class.php @@ -13,7 +13,7 @@ * Copyright (C) 2013 Florian Henry * Copyright (C) 2014-2015 Marcos García * Copyright (C) 2018 Nicolas ZABOURI - * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2018-2025 Frédéric France * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2022 ATM Consulting * Copyright (C) 2022 OpenDSI @@ -298,12 +298,12 @@ class PropaleLigne extends CommonObjectLine public $total_localtax2; /** - * @var int|string + * @var int|'' */ public $date_start; /** - * @var int|string + * @var int|'' */ public $date_end; diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 9c9719c44cd..5a87fa88a8f 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1550,8 +1550,8 @@ class Commande extends CommonOrder * @param int $fk_remise_except Id remise * @param string $price_base_type HT or TTC * @param float $pu_ttc Prix unitaire TTC - * @param int|string $date_start Start date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html) - * @param int|string $date_end End date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html) + * @param int|'' $date_start Start date of the line + * @param int|'' $date_end End date of the line * @param int<0,1> $type Type of line (0=product, 1=service). Not used if fk_product is defined, the type of product is used. * @param int $rang Position of line * @param int $special_code Special code (also used by externals modules!) @@ -1878,8 +1878,8 @@ class Commande extends CommonOrder * @param int $idproduct Product Id * @param float $qty Quantity * @param float $remise_percent Product discount relative - * @param int|string $date_start Start date of the line - * @param int|string $date_end End date of the line + * @param int|'' $date_start Start date of the line + * @param int|'' $date_end End date of the line * @return void * * TODO Remplacer les appels a cette fonction par generation object Ligne @@ -3109,8 +3109,8 @@ class Commande extends CommonOrder * @param float $txlocaltax2 Local tax 2 rate * @param string $price_base_type HT or TTC * @param int $info_bits Miscellaneous information on line - * @param int|string $date_start Start date of the line - * @param int|string $date_end End date of the line + * @param int|'' $date_start Start date of the line + * @param int|'' $date_end End date of the line * @param int $type Type of line (0=product, 1=service) * @param int $fk_parent_line Id of parent line (0 in most cases, used by modules adding sublevels into lines). * @param int $skip_update_total Keep fields total_xxx to 0 (used for special lines by some modules) diff --git a/htdocs/commande/class/orderline.class.php b/htdocs/commande/class/orderline.class.php index 212809062e0..8e286af9851 100644 --- a/htdocs/commande/class/orderline.class.php +++ b/htdocs/commande/class/orderline.class.php @@ -11,7 +11,7 @@ * Copyright (C) 2014-2015 Marcos García * Copyright (C) 2018 Nicolas ZABOURI * Copyright (C) 2016-2022 Ferran Marcet - * Copyright (C) 2021-2024 Frédéric France + * Copyright (C) 2021-2025 Frédéric France * Copyright (C) 2022 Gauthier VERDOL * Copyright (C) 2024-2025 MDW * Copyright (C) 2024 William Mead @@ -130,13 +130,13 @@ class OrderLine extends CommonOrderLine /** * Start date of line - * @var int|string + * @var int|'' */ public $date_start; /** * End date of line - * @var int|string + * @var int|'' */ public $date_end; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 6456be062b8..b07ec34c931 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -4470,8 +4470,8 @@ class Facture extends CommonInvoice * @param float $pu Prix unitaire (HT ou TTC selon price_base_type) (> 0 even for credit note lines) * @param float $qty Quantity * @param float $remise_percent Percentage discount of the line - * @param int $date_start Date de debut de validite du service - * @param int $date_end Date de fin de validite du service + * @param int|'' $date_start Date de debut de validite du service + * @param int|'' $date_end Date de fin de validite du service * @param float|string $txtva VAT Rate (Can be '8.5', '8.5 (ABC)') * @param float $txlocaltax1 Local tax 1 rate * @param float $txlocaltax2 Local tax 2 rate diff --git a/htdocs/compta/facture/class/factureligne.class.php b/htdocs/compta/facture/class/factureligne.class.php index ed0a80d3a22..be3416ea08f 100644 --- a/htdocs/compta/facture/class/factureligne.class.php +++ b/htdocs/compta/facture/class/factureligne.class.php @@ -21,7 +21,7 @@ * Copyright (C) 2023 Gauthier VERDOL * Copyright (C) 2023 Nick Fragoulis * Copyright (C) 2024-2025 MDW - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 Frédéric France * * 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 @@ -157,11 +157,11 @@ class FactureLigne extends CommonInvoiceLine /** - * @var string|int + * @var int|'' */ public $date_start; /** - * @var string|int + * @var int|'' */ public $date_end; diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 1d2c2a28e26..1ab7ee7e8b8 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -366,7 +366,7 @@ class Contrat extends CommonObject * @param User $user Object User who activate contract * @param int $line_id Id of line to activate * @param int $date_start Opening date - * @param int|string $date_end Expected end date + * @param int|'' $date_end Expected end date * @param string $comment A comment typed by user * @return int Return integer <0 if KO, >0 if OK */