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:
commit
a03a8da2fd
@ -1485,7 +1485,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$desc=trim($desc);
|
$desc=trim($desc);
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if ($qty < 1 && ! $fk_product)
|
if ($qty < 0 && ! $fk_product)
|
||||||
{
|
{
|
||||||
$this->error=$langs->trans("ErrorFieldRequired",$langs->trans("Product"));
|
$this->error=$langs->trans("ErrorFieldRequired",$langs->trans("Product"));
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user