From 1cfd32680aacd0c6a5e0215735046808e9a760ca Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Wed, 13 Feb 2013 15:43:27 +0100 Subject: [PATCH] Fix : set some vars when invoice is back to draft status --- htdocs/compta/facture/class/facture.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index b96fd57916d..8618c729592 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1829,6 +1829,8 @@ class Facture extends CommonInvoice if ($error == 0) { + $this->brouillon = 1; + $this->statut = 0; $this->db->commit(); return 1; }