mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
NEW - replenishment if the warehouse is set to the default selected user (#31229)
* NEW - replenishment if the warehouse is set to the default selected user * FIX --------- Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
This commit is contained in:
parent
a0b6e9522e
commit
94de6f5ea7
|
|
@ -86,6 +86,10 @@ while ($tmpobj = $db->fetch_object($resWar)) {
|
|||
if ($count == 1 && (empty($fk_entrepot) || $fk_entrepot <= 0) && getDolGlobalString('MULTICOMPANY_PRODUCT_SHARING_ENABLED')) {
|
||||
$fk_entrepot = $lastWarehouseID;
|
||||
}
|
||||
//If the warehouse is set to the default selected user
|
||||
if (!GETPOSTISSET('fk_warehouse') && (empty($fk_entrepot) || $fk_entrepot <= 0) && getDolGlobalString('MAIN_DEFAULT_WAREHOUSE_USER')) {
|
||||
$fk_entrepot = $user->fk_warehouse;
|
||||
}
|
||||
|
||||
$texte = '';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user