insert fields order (#29272)

This commit is contained in:
Mohamed DAOUD
2024-04-08 11:02:53 +02:00
committed by GitHub
parent 0a48d1ad56
commit fcabb3d37f

View File

@@ -856,10 +856,10 @@ class Product extends CommonObject
$sql .= ", ".(!empty($this->label) ? "'".$this->db->escape($this->label)."'" : "null");
$sql .= ", ".((int) $user->id);
$sql .= ", ".((int) $this->type);
$sql .= ", ".(!empty($this->price_label) ? "'".$this->db->escape($this->price_label)."'" : "null");
$sql .= ", ".price2num($price_ht, 'MT');
$sql .= ", ".price2num($price_ttc, 'MT');
$sql .= ", '".$this->db->escape($this->price_base_type)."'";
$sql .= ", ".(!empty($this->price_label) ? "'".$this->db->escape($this->price_label)."'" : "null");
$sql .= ", ".((int) $this->status);
$sql .= ", ".((int) $this->status_buy);
if (!getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {