FIX: esupplier order: error 500 when using packaging with product where it is not defined
This commit is contained in:
parent
a0e423f1b8
commit
7df09b6e9e
@ -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