Ajout dbut de doc pour doxygen

This commit is contained in:
Rodolphe Quiedeville 2004-07-12 13:22:19 +00:00
parent dc38e57065
commit 6a262562a0

View File

@ -21,49 +21,13 @@
*
*/
class FactureLigne
{
Function FactureLigne($DB)
{
$this->db= $DB ;
}
/**
* Recupére l'objet ligne de facture
*
*/
Function fetch($rowid, $societe_id=0)
{
$sql = "SELECT fk_product, description, price, qty, rowid, tva_taux, remise, remise_percent, subprice, ".$this->db->pdate("date_start")." as date_start,".$this->db->pdate("date_end")." as date_end";
$sql .= " FROM ".MAIN_DB_PREFIX."facturedet WHERE rowid = ".$rowid;
$result = $this->db->query($sql);
if ($result)
{
$objp = $this->db->fetch_object($i);
$this->desc = stripslashes($objp->description);
$this->qty = $objp->qty;
$this->price = $objp->price;
$this->subprice = $objp->subprice;
$this->tva_taux = $objp->tva_taux;
$this->remise = $objp->remise;
$this->remise_percent = $objp->remise_percent;
$this->produit_id = $objp->fk_product;
$this->date_start = $objp->date_start;
$this->date_end = $objp->date_end;
$i++;
}
else {
print "Erreur ".$this->db->error()."<br>".$sql;
}
$this->db->free();
}
}
/**
* Gestion des factures
*
* @author Rodolphe Quiedeville <rodolphe@quiedeville.org>
* @author Laurent Destailleur <eldy@users.sourceforge.net>
* @see http://www.dolibarr.com/
*/
class Facture
{
@ -85,7 +49,7 @@ class Facture
var $projetid;
/**
* Initialisation de la class
* Initialisation de la classe
*
*/
Function Facture($DB, $soc_idp="", $facid="")
@ -104,7 +68,7 @@ class Facture
$this->id = $facid;
}
/**
* Créé la facture
* Création la facture
*
*
*/
@ -926,4 +890,47 @@ class Facture
}
}
}
class FactureLigne
{
Function FactureLigne($DB)
{
$this->db= $DB ;
}
/**
* Recupére l'objet ligne de facture
*
*/
Function fetch($rowid, $societe_id=0)
{
$sql = "SELECT fk_product, description, price, qty, rowid, tva_taux, remise, remise_percent, subprice, ".$this->db->pdate("date_start")." as date_start,".$this->db->pdate("date_end")." as date_end";
$sql .= " FROM ".MAIN_DB_PREFIX."facturedet WHERE rowid = ".$rowid;
$result = $this->db->query($sql);
if ($result)
{
$objp = $this->db->fetch_object($i);
$this->desc = stripslashes($objp->description);
$this->qty = $objp->qty;
$this->price = $objp->price;
$this->subprice = $objp->subprice;
$this->tva_taux = $objp->tva_taux;
$this->remise = $objp->remise;
$this->remise_percent = $objp->remise_percent;
$this->produit_id = $objp->fk_product;
$this->date_start = $objp->date_start;
$this->date_end = $objp->date_end;
$i++;
}
else {
print "Erreur ".$this->db->error()."<br>".$sql;
}
$this->db->free();
}
}
?>