Add confirm message when going back to draft

This commit is contained in:
Laurent Destailleur
2011-11-14 16:23:59 +01:00
parent 7384096d56
commit 12963265d7
8 changed files with 58 additions and 29 deletions

View File

@@ -317,10 +317,11 @@ class Commande extends CommonObject
/**
* Set draft status
*
* @param User $user Object user that modify
* @return int <0 if KO, >0 if OK
* @param User $user Object user that modify
* @param int $idwarehouse Id warehouse to use for stock change.
* @return int <0 if KO, >0 if OK
*/
function set_draft($user, $idwarehouse=1)
function set_draft($user, $idwarehouse=-1)
{
global $conf,$langs;