Fix sql error
This commit is contained in:
parent
13cb806436
commit
69c47aa7d9
1 changed files with 4 additions and 9 deletions
|
|
@ -2531,15 +2531,10 @@ class SupplierInvoiceLine extends CommonObjectLine
|
|||
}
|
||||
|
||||
// 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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue