diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 07bdd50e7a5..2f8723a7c8b 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -714,6 +714,7 @@ class Propal extends CommonObject $result = $tmpproduct->fetch($fk_product); if (abs($qty) < $tmpproduct->packaging) { $qty = (float) $tmpproduct->packaging; + setEventMessages($langs->trans('QtyRecalculatedWithPackaging'), null, 'mesgs'); } else { if (!empty($tmpproduct->packaging) && $qty > $tmpproduct->packaging) { $coeff = intval(abs($qty) / $tmpproduct->packaging) + 1; diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 0f3df74824f..05c18321cf7 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1662,6 +1662,7 @@ class Commande extends CommonOrder $result = $tmpproduct->fetch($fk_product); if (abs($qty) < $tmpproduct->packaging) { $qty = (float) $tmpproduct->packaging; + setEventMessages($langs->trans('QtyRecalculatedWithPackaging'), null, 'mesgs'); } else { if (!empty($tmpproduct->packaging) && $qty > $tmpproduct->packaging) { $coeff = intval(abs($qty) / $tmpproduct->packaging) + 1; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index d11023de8a8..1524465bcca 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -4019,6 +4019,7 @@ class Facture extends CommonInvoice $result = $tmpproduct->fetch($fk_product); if (abs($qty) < $tmpproduct->packaging) { $qty = (float) $tmpproduct->packaging; + setEventMessages($langs->trans('QtyRecalculatedWithPackaging'), null, 'mesgs'); } else { if (!empty($tmpproduct->packaging) && $qty > $tmpproduct->packaging) { $coeff = intval(abs($qty) / $tmpproduct->packaging) + 1;