Fix : set some vars when invoice is back to draft status

This commit is contained in:
Maxime Kohlhaas 2013-02-13 15:43:27 +01:00
parent bfc5cfebce
commit 1cfd32680a

View File

@ -1829,6 +1829,8 @@ class Facture extends CommonInvoice
if ($error == 0) if ($error == 0)
{ {
$this->brouillon = 1;
$this->statut = 0;
$this->db->commit(); $this->db->commit();
return 1; return 1;
} }