Fix: sql syntax error
This commit is contained in:
parent
6e90b6c082
commit
e1db0ef946
@ -62,10 +62,10 @@ class FactureRec extends Facture
|
|||||||
var $db_table;
|
var $db_table;
|
||||||
var $propalid;
|
var $propalid;
|
||||||
var $fk_project;
|
var $fk_project;
|
||||||
|
|
||||||
var $rang;
|
var $rang;
|
||||||
var $special_code;
|
var $special_code;
|
||||||
|
|
||||||
var $lines=array();
|
var $lines=array();
|
||||||
|
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ class FactureRec extends Facture
|
|||||||
{
|
{
|
||||||
$objp = $this->db->fetch_object($result);
|
$objp = $this->db->fetch_object($result);
|
||||||
$line = new FactureLigne($this->db);
|
$line = new FactureLigne($this->db);
|
||||||
|
|
||||||
$line->rowid = $objp->rowid;
|
$line->rowid = $objp->rowid;
|
||||||
$line->desc = $objp->description; // Description line
|
$line->desc = $objp->description; // Description line
|
||||||
$line->product_type = $objp->product_type; // Type of line
|
$line->product_type = $objp->product_type; // Type of line
|
||||||
@ -359,7 +359,7 @@ class FactureRec extends Facture
|
|||||||
$line->remise = $objp->remise;
|
$line->remise = $objp->remise;
|
||||||
|
|
||||||
$this->lines[$i] = $line;
|
$this->lines[$i] = $line;
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,9 +490,9 @@ class FactureRec extends Facture
|
|||||||
$sql.= ", '".price2num($remise)."'";
|
$sql.= ", '".price2num($remise)."'";
|
||||||
$sql.= ", '".price2num($total_ht)."'";
|
$sql.= ", '".price2num($total_ht)."'";
|
||||||
$sql.= ", '".price2num($total_tva)."'";
|
$sql.= ", '".price2num($total_tva)."'";
|
||||||
$sql.= ", '".price2num($total_ttc)."') ;";
|
$sql.= ", '".price2num($total_ttc)."'";
|
||||||
$sql.= ", ".$rang;
|
$sql.= ", ".$rang;
|
||||||
$sql.= ", ".$special_code;
|
$sql.= ", ".$special_code.")";
|
||||||
|
|
||||||
dol_syslog("FactureRec::addline sql=".$sql, LOG_DEBUG);
|
dol_syslog("FactureRec::addline sql=".$sql, LOG_DEBUG);
|
||||||
if ($this->db->query( $sql))
|
if ($this->db->query( $sql))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user