FIX : we need to be able to add freeline with qty between 0 & 1 in supplierorder line

This commit is contained in:
gauthier 2019-07-16 14:55:19 +02:00
parent 917799914e
commit c72a59ad36

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;