2
0
forked from Wavyzz/dolibarr

Module BOM have now status DRAFT, VALIDATED, DISABLED

This commit is contained in:
Laurent Destailleur
2019-10-16 01:20:58 +02:00
parent 12f1962085
commit b0355dd149
5 changed files with 252 additions and 54 deletions

View File

@@ -647,7 +647,7 @@ class Commande extends CommonOrder
$now=dol_now();
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande';
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
$sql.= ' SET fk_statut = '.self::STATUS_CLOSED.',';
$sql.= ' fk_user_cloture = '.$user->id.',';
$sql.= " date_cloture = '".$this->db->idate($now)."'";