diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 7337429110e..407d1c7e0a9 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -5,14 +5,15 @@ * Copyright (C) 2007 Franky Van Liedekerke * Copyright (C) 2010-2020 Juanjo Menent * Copyright (C) 2010-2018 Philippe Grand - * Copyright (C) 2012-2015 Marcos García - * Copyright (C) 2013 Florian Henry - * Copyright (C) 2013 Cédric Salvador - * Copyright (C) 2018 Nicolas ZABOURI - * Copyright (C) 2018-2024 Frédéric France - * Copyright (C) 2018-2022 Ferran Marcet - * Copyright (C) 2021 Josep Lluís Amador - * Copyright (C) 2022 Gauthier VERDOL + * Copyright (C) 2012-2015 Marcos García + * Copyright (C) 2013 Florian Henry + * Copyright (C) 2013 Cédric Salvador + * Copyright (C) 2018 Nicolas ZABOURI + * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2018-2022 Ferran Marcet + * Copyright (C) 2021 Josep Lluís Amador + * Copyright (C) 2022 Gauthier VERDOL + * Copyright (C) 2024 Solution Libre SAS * * 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 @@ -1863,8 +1864,10 @@ class CommandeFournisseur extends CommonOrder // Clear fields $this->user_author_id = $user->id; $this->user_validation_id = 0; + $this->date = dol_now(); $this->date_creation = 0; $this->date_validation = 0; + $this->date_commande = 0; $this->ref_supplier = ''; $this->user_approve_id = 0; $this->user_approve_id2 = 0;