Skip to content

Commit

Permalink
Qual: Remove method SetBilled that is a duplicate of setStatus.
Browse files Browse the repository at this point in the history
Fix: Better management of option SendInterventionRef.
  • Loading branch information
eldy committed Aug 15, 2014
1 parent 2eb01cf commit 25cc27c
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 187 deletions.
25 changes: 0 additions & 25 deletions htdocs/fichinter/class/fichinter.class.php
Expand Up @@ -463,31 +463,6 @@ function setValid($user)
}
}

/**
* Set intervetnion as billed
*
* @return int <0 si ko, >0 si ok
*/
function setBilled()
{
global $conf;

$sql = 'UPDATE '.MAIN_DB_PREFIX.'fichinter SET fk_statut = 2';
$sql.= ' WHERE rowid = '.$this->id;
$sql.= " AND entity = ".$conf->entity;
$sql.= " AND fk_statut = 1";

if ($this->db->query($sql) )
{
return 1;
}
else
{
dol_print_error($this->db);
return -1;
}
}


/**
* Returns the label status
Expand Down

0 comments on commit 25cc27c

Please sign in to comment.