fix: display message only if change
This commit is contained in:
parent
252c581ea6
commit
c342d0cde9
@ -1880,9 +1880,9 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
if (!empty($prod->packaging) && ($qty % $prod->packaging) > 0) {
|
if (!empty($prod->packaging) && ($qty % $prod->packaging) > 0) {
|
||||||
$coeff = intval($qty / $prod->packaging) + 1;
|
$coeff = intval($qty / $prod->packaging) + 1;
|
||||||
$qty = $prod->packaging * $coeff;
|
$qty = $prod->packaging * $coeff;
|
||||||
|
setEventMessage($langs->trans('QtyRecalculatedWithPackaging'), 'mesgs');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setEventMessage($langs->trans('QtyRecalculatedWithPackaging'), 'mesgs');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user