Skip to content
Snippets Groups Projects
Commit 43a20a62 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] pos_cash_rounding : Unpaid orders when using cash rounding


Current behavior :
When using cash rouding method "HALF-UP" if the difference between the rounded price and the original price was exactly the half of the cash rounding, the order would appear as unpaid.

Steps to reproduce :
- Create a rounding method of 0.5 (half-up)
- Sell a product for 11.25
- The order appears unpaid in the PoS orders list view

opw-2593687

closes odoo/odoo#81642

Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
parent 24d32f3d
Branches
Tags
No related merge requests found
......@@ -99,5 +99,5 @@ class PosOrder(models.Model):
maxDiff = currency.round(self.config_id.rounding_method.rounding)
diff = currency.round(self.amount_total - self.amount_paid)
res = abs(diff) < maxDiff
res = abs(diff) <= maxDiff
return res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment