Merge pull request #21555 from FHenry/15_fix_message_only_when_updtae

fix: display message only if change (with emballage on)
This commit is contained in:
Laurent Destailleur 2022-07-24 11:36:39 +02:00 committed by GitHub
commit 336960453f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1882,9 +1882,9 @@ class CommandeFournisseur extends CommonOrder
if (!empty($prod->packaging) && ($qty % $prod->packaging) > 0) {
$coeff = intval($qty / $prod->packaging) + 1;
$qty = $prod->packaging * $coeff;
setEventMessage($langs->trans('QtyRecalculatedWithPackaging'), 'mesgs');
}
}
setEventMessage($langs->trans('QtyRecalculatedWithPackaging'), 'mesgs');
}
}