Ajout début de doc pour doxygen
This commit is contained in:
parent
dc38e57065
commit
6a262562a0
@ -21,49 +21,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
class FactureLigne
|
* Gestion des factures
|
||||||
{
|
*
|
||||||
Function FactureLigne($DB)
|
* @author Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
{
|
* @author Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
$this->db= $DB ;
|
* @see http://www.dolibarr.com/
|
||||||
}
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Facture
|
class Facture
|
||||||
{
|
{
|
||||||
@ -85,7 +49,7 @@ class Facture
|
|||||||
var $projetid;
|
var $projetid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialisation de la class
|
* Initialisation de la classe
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Function Facture($DB, $soc_idp="", $facid="")
|
Function Facture($DB, $soc_idp="", $facid="")
|
||||||
@ -104,7 +68,7 @@ class Facture
|
|||||||
$this->id = $facid;
|
$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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user