mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
FIX: Success message when add a product line that has packaging
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user