Fix regression
This commit is contained in:
parent
8ab9c96b7e
commit
feb2e71f0c
@ -3387,20 +3387,11 @@ class SupplierInvoiceLine extends CommonObjectLine
|
|||||||
$this->multicurrency_total_ttc = 0;
|
$this->multicurrency_total_ttc = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$fk_product = (int) $this->fk_product;
|
||||||
|
$fk_unit = (int) $this->fk_unit;
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
if (empty($this->fk_product)) {
|
|
||||||
$fk_product = "null";
|
|
||||||
} else {
|
|
||||||
$fk_product = (int) $this->fk_product;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($this->fk_unit)) {
|
|
||||||
$fk_unit = "null";
|
|
||||||
} else {
|
|
||||||
$fk_unit = (int) $this->fk_unit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det SET";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det SET";
|
||||||
$sql .= " description ='".$this->db->escape($this->description)."'";
|
$sql .= " description ='".$this->db->escape($this->description)."'";
|
||||||
$sql .= ", ref ='".$this->db->escape($this->ref_supplier ? $this->ref_supplier : $this->ref)."'";
|
$sql .= ", ref ='".$this->db->escape($this->ref_supplier ? $this->ref_supplier : $this->ref)."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user