From 3393b1c5fbdd7d665393fa93d3432da9953c2004 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 May 2014 12:15:54 +0200 Subject: [PATCH] Fix: Date of invoice is set to current date when cloning. // TODO Best is to ask date into confirm box. --- htdocs/compta/facture/class/facture.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index d1e495edd54..8a2907c3522 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -617,6 +617,7 @@ class Facture extends CommonInvoice $this->statut=0; // Clear fields + $this->date = dol_now(); // Date of invoice is set to current date when cloning. // TODO Best is to ask date into confirm box $this->user_author = $user->id; $this->user_valid = ''; $this->fk_facture_source = 0;