mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 02:12:33 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user