Skip to content

Commit

Permalink
Merge pull request #9891 from frederic34/patch-17
Browse files Browse the repository at this point in the history
Update brouillon when validate order
  • Loading branch information
eldy committed Oct 30, 2018
2 parents 7c81124 + a30091f commit 38396e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdocs/commande/class/commande.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class Commande extends CommonOrder
public $facturee;
public $billed; // billed or not

/**
* @var int Draft Status of the order
*/
public $brouillon;
public $cond_reglement_code;

Expand Down Expand Up @@ -226,7 +229,7 @@ function getNextNumRef($soc)
$mybool|=@include_once $dir.$file;
}

if (! $mybool)
if ($mybool === false)
{
dol_print_error('',"Failed to include file ".$file);
return '';
Expand Down Expand Up @@ -400,6 +403,7 @@ function valid($user, $idwarehouse=0, $notrigger=0)
{
$this->ref = $num;
$this->statut = self::STATUS_VALIDATED;
$this->brouillon = 0;
}

if (! $error)
Expand Down

0 comments on commit 38396e4

Please sign in to comment.