Fix test on qty for stock move
This commit is contained in:
parent
6e2aaf7408
commit
f291e1c470
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ class MouvementStock extends CommonObject
|
|||
|
||||
// Check if stock is enough when qty is < 0
|
||||
// Note that qty should be > 0 with type 0 or 3, < 0 with type 1 or 2.
|
||||
if ($qty < 0 && empty($conf->global->STOCK_ALLOW_NEGATIVE_TRANSFER))
|
||||
if ($movestock && $qty < 0 && empty($conf->global->STOCK_ALLOW_NEGATIVE_TRANSFER))
|
||||
{
|
||||
if (! empty($conf->productbatch->enabled) && $product->hasbatch() && ! $skip_batch)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue