Merge pull request #22651 from fappels/develop_supplier_order_sharing

Allow use of shared entity on supplier order create
This commit is contained in:
Laurent Destailleur 2022-10-24 19:13:14 +02:00 committed by GitHub
commit cf9ba09354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1398,7 +1398,7 @@ class CommandeFournisseur extends CommonOrder
$sql .= ", '".$this->db->escape($this->ref_supplier)."'";
$sql .= ", '".$this->db->escape($this->note_private)."'";
$sql .= ", '".$this->db->escape($this->note_public)."'";
$sql .= ", ".((int) $conf->entity);
$sql .= ", ".setEntity($this);
$sql .= ", ".((int) $this->socid);
$sql .= ", ".($this->fk_project > 0 ? ((int) $this->fk_project) : "null");
$sql .= ", '".$this->db->idate($date)."'";