mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix regression
This commit is contained in:
@@ -3387,20 +3387,11 @@ class SupplierInvoiceLine extends CommonObjectLine
|
||||
$this->multicurrency_total_ttc = 0;
|
||||
}
|
||||
|
||||
$fk_product = (int) $this->fk_product;
|
||||
$fk_unit = (int) $this->fk_unit;
|
||||
|
||||
$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 .= " description ='".$this->db->escape($this->description)."'";
|
||||
$sql .= ", ref ='".$this->db->escape($this->ref_supplier ? $this->ref_supplier : $this->ref)."'";
|
||||
|
||||
Reference in New Issue
Block a user