Minor fixes

This commit is contained in:
Laurent Destailleur
2016-05-27 14:56:59 +02:00
parent 7278d1f2c6
commit c653acd4ce
4 changed files with 10 additions and 4 deletions

View File

@@ -1394,6 +1394,11 @@ class Commande extends CommonOrder
return -2;
}
}
else
{
dol_syslog(get_class($this)."::addline status of order must be Draft to allow use of ->addline()", LOG_ERR);
return -3;
}
}