Merge pull request #11519 from atm-gauthier/8.0_fix_addline_cmdfourn_qty_inf_0

FIX : we need to be able to add freeline with qty between 0 & 1 in su…
This commit is contained in:
Laurent Destailleur 2019-07-16 17:02:59 +03:00 committed by GitHub
commit a03a8da2fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1485,7 +1485,7 @@ class CommandeFournisseur extends CommonOrder
$desc=trim($desc);
// Check parameters
if ($qty < 1 && ! $fk_product)
if ($qty < 0 && ! $fk_product)
{
$this->error=$langs->trans("ErrorFieldRequired",$langs->trans("Product"));
return -1;