Merge pull request #26967 from DaBootO/develop

FIX #26965 add check for global variable VARIANT_ALLOW_STOCK_MOVEMEMENT
This commit is contained in:
Laurent Destailleur 2023-12-06 16:02:07 +01:00 committed by GitHub
commit b56688706b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -959,7 +959,7 @@ if (empty($reshook)) {
}
if (!$variants) {
if (!$variants || getDolGlobalString('VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT')) {
/*
* Stock detail (by warehouse). May go down into batch details.
*/