Skip to content

Commit

Permalink
Fix: sql syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 11, 2011
1 parent 6e90b6c commit e1db0ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/compta/facture/class/facture-rec.class.php
Expand Up @@ -62,10 +62,10 @@ class FactureRec extends Facture
var $db_table;
var $propalid;
var $fk_project;

var $rang;
var $special_code;

var $lines=array();


Expand Down Expand Up @@ -327,7 +327,7 @@ function fetch_lines()
{
$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
Expand Down Expand Up @@ -359,7 +359,7 @@ function fetch_lines()
$line->remise = $objp->remise;

$this->lines[$i] = $line;

$i++;
}

Expand Down Expand Up @@ -490,9 +490,9 @@ function addline($facid, $desc, $pu_ht, $qty, $txtva, $fk_product=0, $remise_per
$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))
Expand Down

0 comments on commit e1db0ef

Please sign in to comment.