Merge pull request #21866 from fappels/develop_supplier_order_sharing

Work on supplier order sharing
This commit is contained in:
Laurent Destailleur 2022-08-24 17:59:20 +02:00 committed by GitHub
commit 7c515f00dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ if ($id > 0 || !empty($ref)) {
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
}
$sql .= " WHERE c.fk_soc = s.rowid";
$sql .= " AND c.entity = ".$conf->entity;
$sql .= " AND c.entity IN (".getEntity('supplier_order').")";
$sql .= " AND d.fk_commande = c.rowid";
$sql .= " AND d.fk_product = ".((int) $product->id);
if (!empty($search_month)) {