Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046496Retail ModulesWeb POSpublic2021-05-04 17:362021-07-14 11:55
ucarrion 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q3 
No
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: https://drive.google.com/file/d/1_DOgpWRk-hKsTgUrrlugitw5T-791PG5/view [^]
-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

Notes
(0127830)
psanjuan   
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.

(0127862)
hgbot   
2021-05-06 15:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/400 [^]
(0128529)
hgbot   
2021-05-24 07:25   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/400 [^]
(0128530)
hgbot   
2021-05-24 07:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 232a6eb49b157c800fd6e8c0bb39d7bf6cb205e6
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-05-24T05:24:35+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/232a6eb49b157c800fd6e8c0bb39d7bf6cb205e6 [^]

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
---