From 674e668b78a78b431e1359b70561f96cf633fb4d Mon Sep 17 00:00:00 2001 From: Florent Poinsaut <1256948+FlorentPoinsaut@users.noreply.github.com> Date: Mon, 4 Mar 2024 08:57:52 +0000 Subject: [PATCH] FIX cloned supplier order creation date as now --- .../class/fournisseur.commande.class.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 2e128bcd7ec..2ab1ce0ef0d 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;