Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046496Retail ModulesWeb POSpublic2021-05-04 17:362021-06-10 09:53
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
We should think on a functional approach to decide about the behavior in this kind of scenario.

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 only up to 0.05€ in case a rounding up is configured.
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: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: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

Notes
(0127830)
psanjuan   
2021-05-05 13:41   
Inquiry sent to double check if the proposed solution is legally complaint.
(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
---