Allow qty to be negative

This commit is contained in:
dolibarr95 2018-04-26 16:42:08 +02:00 committed by GitHub
parent 45c8bbbf74
commit 14e68ea8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1703,7 +1703,7 @@ class CommandeFournisseur extends CommonOrder
$this->error='ErrorBadValueForParameterWarehouse';
return -1;
}
if ($qty <= 0)
if ($qty == 0)
{
$this->error='ErrorBadValueForParameterQty';
return -1;