Fix sql error
This commit is contained in:
parent
13cb806436
commit
69c47aa7d9
@ -2531,15 +2531,10 @@ class SupplierInvoiceLine extends CommonObjectLine
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
if (empty($this->tva_tx)) {
|
if (empty($this->remise_percent)) $this->remise_percent = 0;
|
||||||
$this->tva_tx = 0;
|
if (empty($this->tva_tx)) $this->tva_tx = 0;
|
||||||
}
|
if (empty($this->localtax1_tx)) $this->localtax1_tx = 0;
|
||||||
if (empty($this->localtax1_tx)) {
|
if (empty($this->localtax2_tx)) $this->localtax2_tx = 0;
|
||||||
$this->localtax1_tx = 0;
|
|
||||||
}
|
|
||||||
if (empty($this->localtax2_tx)) {
|
|
||||||
$this->localtax2_tx = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user