FIX : we need to be able to add freeline with qty between 0 & 1 in supplierorder line
This commit is contained in:
parent
917799914e
commit
c72a59ad36
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user