Merge pull request #17152 from marc-dll/FIX_12.0_zero_packaging
FIX: supplier order: error 500 when using packaging with product where it is not defined
This commit is contained in:
commit
e8bf09862f
@ -2707,7 +2707,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
}
|
||||
else
|
||||
{
|
||||
if (($qty % $this->line->packaging) > 0)
|
||||
if (! empty($this->line->packaging) && ($qty % $this->line->packaging) > 0)
|
||||
{
|
||||
$coeff = intval($qty / $this->line->packaging) + 1;
|
||||
$qty = $this->line->packaging * $coeff;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user