Skip to content

Commit

Permalink
Fix sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 4, 2017
1 parent 13cb806 commit 69c47aa
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions htdocs/fourn/class/fournisseur.facture.class.php
Expand Up @@ -2531,15 +2531,10 @@ public function update($notrigger = 0)
}

// Clean parameters
if (empty($this->tva_tx)) {
$this->tva_tx = 0;
}
if (empty($this->localtax1_tx)) {
$this->localtax1_tx = 0;
}
if (empty($this->localtax2_tx)) {
$this->localtax2_tx = 0;
}
if (empty($this->remise_percent)) $this->remise_percent = 0;
if (empty($this->tva_tx)) $this->tva_tx = 0;
if (empty($this->localtax1_tx)) $this->localtax1_tx = 0;
if (empty($this->localtax2_tx)) $this->localtax2_tx = 0;

$this->db->begin();

Expand Down

0 comments on commit 69c47aa

Please sign in to comment.