Fix 0 insert instead of null
This commit is contained in:
parent
97ee69e88f
commit
5f08ed84f8
@ -3410,7 +3410,7 @@ class SupplierInvoiceLine extends CommonObjectLine
|
||||
$sql .= ", pu_ttc = ".price2num($this->pu_ttc);
|
||||
$sql .= ", qty = ".price2num($this->qty);
|
||||
$sql .= ", remise_percent = ".price2num($this->remise_percent);
|
||||
if ($this->fk_remise_except) $sql .= ", fk_remise_except=".((int) $this->fk_remise_except);
|
||||
if ($this->fk_remise_except > 0) $sql .= ", fk_remise_except=".((int) $this->fk_remise_except);
|
||||
else $sql .= ", fk_remise_except=null";
|
||||
$sql .= ", vat_src_code = '".$this->db->escape(empty($this->vat_src_code) ? '' : $this->vat_src_code)."'";
|
||||
$sql .= ", tva_tx = ".price2num($this->tva_tx);
|
||||
@ -3423,7 +3423,7 @@ class SupplierInvoiceLine extends CommonObjectLine
|
||||
$sql .= ", total_localtax1= ".price2num($this->total_localtax1);
|
||||
$sql .= ", total_localtax2= ".price2num($this->total_localtax2);
|
||||
$sql .= ", total_ttc = ".price2num($this->total_ttc);
|
||||
$sql .= ", fk_product = ".((int) $fk_product);
|
||||
$sql .= ", fk_product = ".($fk_product > 0 ? (int) $fk_product : 'null');
|
||||
$sql .= ", product_type = ".((int) $this->product_type);
|
||||
$sql .= ", info_bits = ".((int) $this->info_bits);
|
||||
$sql .= ", fk_unit = ".($fk_unit > 0 ? (int) $fk_unit : 'null');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user