Ajoute la fonction classin pour classer une facture dans un projet

This commit is contained in:
Rodolphe Quiedeville 2003-10-22 15:39:28 +00:00
parent 6911dc885f
commit 37f14f37ea

View File

@ -324,6 +324,25 @@ class Facture
$sql = "UPDATE llx_facture SET fk_statut = 1, date_valid=now(), fk_user_valid=$userid";
$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) )
{
return 1;