-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into develop
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* Copyright (C) 2014-2015 Marcos García <[email protected]> | ||
* Copyright (C) 2014-2017 Francis Appels <[email protected]> | ||
* Copyright (C) 2015 Claudio Aschieri <[email protected]> | ||
* Copyright (C) 2016-2022 Ferran Marcet <[email protected]> | ||
* Copyright (C) 2016-2024 Ferran Marcet <[email protected]> | ||
* Copyright (C) 2018 Nicolas ZABOURI <[email protected]> | ||
* Copyright (C) 2018-2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2020 Lenin Rivas <[email protected]> | ||
|
@@ -921,7 +921,7 @@ public function addline($entrepot_id, $id, $qty, $array_options = []) | |
if (isModEnabled('stock') && !empty($orderline->fk_product)) { | ||
$fk_product = $orderline->fk_product; | ||
|
||
if (!($entrepot_id > 0) && !getDolGlobalString('STOCK_WAREHOUSE_NOT_REQUIRED_FOR_SHIPMENTS')) { | ||
if (!($entrepot_id > 0) && !getDolGlobalString('STOCK_WAREHOUSE_NOT_REQUIRED_FOR_SHIPMENTS') && !(getDolGlobalString('SHIPMENT_SUPPORTS_SERVICES') && $line->product_type == Product::TYPE_SERVICE)) { | ||
$langs->load("errors"); | ||
$this->error = $langs->trans("ErrorWarehouseRequiredIntoShipmentLine"); | ||
return -1; | ||
|