Ajoute la fonction classin pour classer une facture dans un projet
This commit is contained in:
parent
6911dc885f
commit
37f14f37ea
@ -324,6 +324,25 @@ class Facture
|
|||||||
$sql = "UPDATE llx_facture SET fk_statut = 1, date_valid=now(), fk_user_valid=$userid";
|
$sql = "UPDATE llx_facture SET fk_statut = 1, date_valid=now(), fk_user_valid=$userid";
|
||||||
$sql .= " WHERE rowid = $this->id AND fk_statut = 0 ;";
|
$sql .= " WHERE rowid = $this->id AND fk_statut = 0 ;";
|
||||||
|
|
||||||
|
if ($this->db->query($sql) )
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $this->db->error() . ' in ' . $sql;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Class la facture
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
Function classin($cat_id)
|
||||||
|
{
|
||||||
|
$sql = "UPDATE llx_facture SET fk_projet = $cat_id";
|
||||||
|
$sql .= " WHERE rowid = $this->id;";
|
||||||
|
|
||||||
if ($this->db->query($sql) )
|
if ($this->db->query($sql) )
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user