Merge pull request #9891 from frederic34/patch-17

Update brouillon when validate order
This commit is contained in:
Laurent Destailleur 2018-10-30 14:17:29 +01:00 committed by GitHub
commit 38396e490a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
@ -226,7 +229,7 @@ class Commande extends CommonOrder
$mybool|=@include_once $dir.$file;
}
if (! $mybool)
if ($mybool === false)
{
dol_print_error('',"Failed to include file ".$file);
return '';
@ -400,6 +403,7 @@ class Commande extends CommonOrder
{
$this->ref = $num;
$this->statut = self::STATUS_VALIDATED;
$this->brouillon = 0;
}
if (! $error)