Fix bad rounding when spliting discounts (#37354)
* Fix bad rounding when spliting discounts * fix ci --------- Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
This commit is contained in:
parent
e1dedd638b
commit
f09e8916c3
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ if ($action == 'confirm_split' && GETPOST("confirm", "alpha") == 'yes' && $permi
|
|||
$error++;
|
||||
setEventMessages($langs->trans("ErrorFailedToLoadDiscount"), null, 'errors');
|
||||
}
|
||||
if (!$error && price2num((float) $amount_ttc_1 + (float) $amount_ttc_2) != $discount->amount_ttc) {
|
||||
if (!$error && price2num((float) $amount_ttc_1 + (float) $amount_ttc_2, 'MT') != $discount->amount_ttc) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("TotalOfTwoDiscountMustEqualsOriginal"), null, 'errors');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue