Skip to content

Commit

Permalink
Fix bug on update invoice line in PgSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Apr 19, 2013
1 parent ce60e50 commit 738ed46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facture.class.php
Expand Up @@ -3553,7 +3553,7 @@ function update($user='',$notrigger=0)
$sql.= ",total_localtax1=".price2num($this->total_localtax1)."";
$sql.= ",total_localtax2=".price2num($this->total_localtax2)."";
}
$sql.= " , fk_product_fournisseur_price='".$this->fk_fournprice."'";
$sql.= " , fk_product_fournisseur_price=".(! empty($this->fk_fournprice)?"'".$this->db->escape($this->fk_fournprice)."'":"null");
$sql.= " , buy_price_ht='".price2num($this->pa_ht)."'";
$sql.= ",fk_parent_line=".($this->fk_parent_line>0?$this->fk_parent_line:"null");
if (! empty($this->rang)) $sql.= ", rang=".$this->rang;
Expand Down

0 comments on commit 738ed46

Please sign in to comment.