Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046496Retail ModulesWeb POSpublic2021-05-04 17:362021-07-14 11:55
0046496: Incorrect payment rounding for partial payments
The payment rounding is incorrectly applied in case the payment rounded is partial under the rounded amount. Then if the payment is completed, the order generates an EWI in the backoffice.

Video: [^]
-Login the backoffice and configure a rounding payment for cash
-Set a rounding down sor sales and up for returns to 0.05 Multiple
-Login the webpos till configured
-Add a product in order to have a total amount of X.99€ (edit it's price if needed)
-Pay X.98€ in a payment method not applying rounding (for example: voucher, card)
-Select the cash payment and press the exact button
-Check that the payment in cash is 0.00 and the rounding is 0.01
-Complete the payment
-Check that an EWI has been generated in the backoffice
There should not be an EWI as above mentioned rouning is correct.

Moreover, we should think on a functional approach to decide about the behavior in this kind of scenario, if required

That approach could be not to round down if the amount to pay (or to be rounded) is less than the amount set as "Rounding multiple in sales/purchase".

For instance a product with a price of 0,03€ (plastic bug) can not be rounded down to 0,00€, but remain as 0.03€, unless rounding up to 0.05€ is configured.
Or, another solution could be not to allow cash payments of such quantities.

See FR related
No tags attached.
related to feature request 0047050 new psanjuan Openbravo Localizations Payment rounding in case of a paid amount smaller than rounding multiple 
Issue History
2021-05-04 17:36ucarrionNew Issue
2021-05-04 17:36ucarrionAssigned To => Retail
2021-05-04 17:36ucarrionResolution time => 1621461600
2021-05-04 17:36ucarrionTriggers an Emergency Pack => No
2021-05-04 17:58ucarrionAssigned ToRetail => vmromanos
2021-05-05 09:27psanjuanProposed Solution updated
2021-05-05 11:35psanjuanProposed Solution updated
2021-05-05 11:49ucarrionResolution time1621461600 => 1621893600
2021-05-05 11:49ucarrionAssigned Tovmromanos => Retail
2021-05-05 13:41psanjuanNote Added: 0127830
2021-05-05 15:45rqueraltaAssigned ToRetail => rqueralta
2021-05-06 15:58hgbotNote Added: 0127862
2021-05-24 07:25hgbotNote Added: 0128529
2021-05-24 07:25hgbotResolutionopen => fixed
2021-05-24 07:25hgbotStatusnew => closed
2021-05-24 07:25hgbotFixed in Version => RR21Q3
2021-05-24 07:25hgbotNote Added: 0128530
2021-06-10 09:53psanjuanRelationship addedrelated to 0047050
2021-07-14 09:50psanjuanProposed Solution updated
2021-07-14 09:54psanjuanProposed Solution updated
2021-07-14 09:54psanjuanNote Edited: 0127830bug_revision_view_page.php?bugnote_id=0127830#r22878
2021-07-14 11:55psanjuanProposed Solution updated

2021-05-05 13:41   
(edited on: 2021-07-14 09:54)
Inquiry sent to double check if the proposed solution is legally complaint, but no news. Review full rounding.

2021-05-06 15:58   
Merge Request created: [^]
2021-05-24 07:25   
Merge request merged: [^]
2021-05-24 07:25   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 232a6eb49b157c800fd6e8c0bb39d7bf6cb205e6
Author: Rafael Queralta <>
Date: 2021-05-24T05:24:35+00:00
URL: [^]

Fixed BUG-46496: If the amount to pay (or to be rounded) is less than the amount set as "Rounding multiple in sales/purchase" not rounding payment will be created

M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddPaymentUtils.js