Skip to content

Commit

Permalink
Allow qty to be negative
Browse files Browse the repository at this point in the history
  • Loading branch information
dolibarr95 committed Apr 26, 2018
1 parent 45c8bbb commit 14e68ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/class/fournisseur.commande.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ public function dispatchProduct($user, $product, $qty, $entrepot, $price=0, $com
$this->error='ErrorBadValueForParameterWarehouse';
return -1;
}
if ($qty <= 0)
if ($qty == 0)
{
$this->error='ErrorBadValueForParameterQty';
return -1;
Expand Down

0 comments on commit 14e68ea

Please sign in to comment.