Skip to content

Commit

Permalink
Merge pull request #1325 from FHenry/3.5
Browse files Browse the repository at this point in the history
[ bug #1153 ] SQL Error on the VAT main screen (with pgsql)
  • Loading branch information
eldy committed Nov 28, 2013
2 parents c3af8b6 + 5f8e896 commit 74d6698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/tva/index.php
Expand Up @@ -222,7 +222,7 @@ function pt ($db, $sql, $date)
$sql.= " WHERE f.entity = ".$conf->entity;
$sql.= " AND f.datev >= '".$db->idate(dol_get_first_day($y,1,false))."'";
$sql.= " AND f.datev <= '".$db->idate(dol_get_last_day($y,12,false))."'";
$sql.= " GROUP BY dm ASC";
$sql.= " GROUP BY dm ORDER BY dm ASC";

pt($db, $sql,$langs->trans("Year")." $y");

Expand Down
2 changes: 1 addition & 1 deletion htdocs/contrat/class/contrat.class.php
Expand Up @@ -2089,7 +2089,7 @@ function update($user, $notrigger=0)
$sql.= " total_localtax1='".$this->total_localtax1."',";
$sql.= " total_localtax2='".$this->total_localtax2."',";
$sql.= " total_ttc='".$this->total_ttc."',";
$sql.= " fk_product_fournisseur_price='".$this->fk_fournprice."',";
$sql.= " fk_product_fournisseur_price=".(!empty($this->fk_fournprice)?$this->fk_fournprice:"NULL").",";
$sql.= " buy_price_ht='".price2num($this->pa_ht)."',";
$sql.= " info_bits='".$this->info_bits."',";
$sql.= " fk_user_author=".($this->fk_user_author >= 0?$this->fk_user_author:"NULL").",";
Expand Down

0 comments on commit 74d6698

Please sign in to comment.