Fix: sql syntax error
This commit is contained in:
parent
56a60a7035
commit
3c40b0fd4d
@ -62,10 +62,10 @@ class FactureRec extends Facture
|
||||
var $db_table;
|
||||
var $propalid;
|
||||
var $fk_project;
|
||||
|
||||
|
||||
var $rang;
|
||||
var $special_code;
|
||||
|
||||
|
||||
var $lines=array();
|
||||
|
||||
|
||||
@ -327,7 +327,7 @@ class FactureRec extends Facture
|
||||
{
|
||||
$objp = $this->db->fetch_object($result);
|
||||
$line = new FactureLigne($this->db);
|
||||
|
||||
|
||||
$line->rowid = $objp->rowid;
|
||||
$line->desc = $objp->description; // Description line
|
||||
$line->product_type = $objp->product_type; // Type of line
|
||||
@ -359,7 +359,7 @@ class FactureRec extends Facture
|
||||
$line->remise = $objp->remise;
|
||||
|
||||
$this->lines[$i] = $line;
|
||||
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ class FactureRec extends Facture
|
||||
*/
|
||||
function addline($facid, $desc, $pu_ht, $qty, $txtva, $fk_product=0, $remise_percent=0, $price_base_type='HT', $info_bits=0, $fk_remise_except='', $pu_ttc=0, $type=0, $rang=-1, $special_code=0)
|
||||
{
|
||||
dol_syslog("FactureRec::Addline facid=$facid,desc=$desc,pu_ht=$pu_ht,qty=$qty,txtva=$txtva,fk_product=$fk_product,remise_percent=$remise_percent,date_start=$date_start,date_end=$date_end,ventil=$ventil,info_bits=$info_bits,fk_remise_except=$fk_remise_except,price_base_type=$price_base_type,pu_ttc=$pu_ttc,type=$type", LOG_DEBUG);
|
||||
dol_syslog("FactureRec::addline facid=$facid,desc=$desc,pu_ht=$pu_ht,qty=$qty,txtva=$txtva,fk_product=$fk_product,remise_percent=$remise_percent,date_start=$date_start,date_end=$date_end,ventil=$ventil,info_bits=$info_bits,fk_remise_except=$fk_remise_except,price_base_type=$price_base_type,pu_ttc=$pu_ttc,type=$type", LOG_DEBUG);
|
||||
include_once(DOL_DOCUMENT_ROOT.'/lib/price.lib.php');
|
||||
|
||||
// Check parameters
|
||||
@ -490,9 +490,9 @@ class FactureRec extends Facture
|
||||
$sql.= ", '".price2num($remise)."'";
|
||||
$sql.= ", '".price2num($total_ht)."'";
|
||||
$sql.= ", '".price2num($total_tva)."'";
|
||||
$sql.= ", '".price2num($total_ttc)."') ;";
|
||||
$sql.= ", '".price2num($total_ttc)."'";
|
||||
$sql.= ", ".$rang;
|
||||
$sql.= ", ".$special_code;
|
||||
$sql.= ", ".$special_code.")";
|
||||
|
||||
dol_syslog("FactureRec::addline sql=".$sql, LOG_DEBUG);
|
||||
if ($this->db->query( $sql))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user