mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #9607 from atm-gauthier/7.0_fix_replenish_entity
FIX : need to filter on current entity on replenish
This commit is contained in:
commit
46363a7705
|
|
@ -185,6 +185,7 @@ if ($action == 'order' && isset($_POST['valid']))
|
|||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."commande_fournisseur";
|
||||
$sql.= " WHERE fk_soc = ".$suppliersid[$i];
|
||||
$sql.= " AND source = 42 AND fk_statut = 0";
|
||||
$sql.= " AND entity IN (".getEntity('commande_fournisseur').")";
|
||||
$sql.= " ORDER BY date_creation DESC";
|
||||
$resql = $db->query($sql);
|
||||
if($resql && $db->num_rows($resql) > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user