Update commande.class.php
This commit is contained in:
parent
7c81124e66
commit
a30091fd74
@ -76,6 +76,9 @@ class Commande extends CommonOrder
|
|||||||
public $facturee;
|
public $facturee;
|
||||||
public $billed; // billed or not
|
public $billed; // billed or not
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int Draft Status of the order
|
||||||
|
*/
|
||||||
public $brouillon;
|
public $brouillon;
|
||||||
public $cond_reglement_code;
|
public $cond_reglement_code;
|
||||||
|
|
||||||
@ -226,7 +229,7 @@ class Commande extends CommonOrder
|
|||||||
$mybool|=@include_once $dir.$file;
|
$mybool|=@include_once $dir.$file;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $mybool)
|
if ($mybool === false)
|
||||||
{
|
{
|
||||||
dol_print_error('',"Failed to include file ".$file);
|
dol_print_error('',"Failed to include file ".$file);
|
||||||
return '';
|
return '';
|
||||||
@ -400,6 +403,7 @@ class Commande extends CommonOrder
|
|||||||
{
|
{
|
||||||
$this->ref = $num;
|
$this->ref = $num;
|
||||||
$this->statut = self::STATUS_VALIDATED;
|
$this->statut = self::STATUS_VALIDATED;
|
||||||
|
$this->brouillon = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user