2
0
forked from Wavyzz/dolibarr

renaming of columns impact db access

This commit is contained in:
Christophe Battarel
2024-03-19 15:50:15 +01:00
parent 446b574de5
commit 3f5ffc5e9d

View File

@@ -2501,7 +2501,7 @@ class CommandeFournisseur extends CommonOrder
$sql .= " FROM ".$this->db->prefix()."product as p,";
$sql .= " ".$this->db->prefix()."receptiondet_batch as cfd";
$sql .= " LEFT JOIN ".$this->db->prefix()."entrepot as e ON cfd.fk_entrepot = e.rowid";
$sql .= " WHERE cfd.fk_commande = ".((int) $this->id);
$sql .= " WHERE cfd.fk_element = ".((int) $this->id);
$sql .= " AND cfd.fk_product = p.rowid";
if ($status >= 0) {
$sql .= " AND cfd.status = ".((int) $status);