Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051907Retail ModulesQuotationspublic2023-03-17 14:372023-05-15 09:35
rfacon 
alainperez 
normalmajoralways
closedfixed 
5
 
RR23Q3 
aaroncalero
No
0051907: Not enough cash when a refund with rounding is done
When a sale is done with a rounding, the WebPOS splits the lines to apply the rounding and calculates the correct amount the customer has to pay.

But when a return is done, the amount to refund is based on the total without rounding amount calculation (rounding mechanism is triggered too late).

If the terminal doesn’t have the enough money at this step, an error message is displayed.
Taking a terminal with rounding payment activated :

1. Do a cash up to open the terminal with 0€ in cash
2. Add an article, click on the product line and change the price to 2.61€
3. Click on the total amount, select cash as payment method and click on 'Pay total' button
-> The rounding mechanism is applied, payment is splitted in two lines : Cash 2.60 and Rounding 0.01
4. Finish the sale by clicking on 'Done'

At this step, the terminal has 2.60€ in cash.

5. Click on Menu / Verified Returns and select to return the 2.61€ sale previously done
6. Click on the total amount, select cash as payment method : Message 'There is not enough cash available' appears in red.

-> The rounding mechanism is not applied at this step, the WebPOS asks to refund the customer 2.61€ when it should be 2.60€
Amount to refund should be considered after the application of the rounding mechanism
No tags attached.
png Rounding return.PNG (57,887) 2023-03-17 14:37
https://issues.openbravo.com/file_download.php?file_id=18273&type=bug
png
Issue History
2023-03-17 14:37rfaconNew Issue
2023-03-17 14:37rfaconAssigned To => Retail
2023-03-17 14:37rfaconFile Added: Rounding return.PNG
2023-03-17 14:37rfaconTriggers an Emergency Pack => No
2023-03-22 13:27aaroncaleroAssigned ToRetail => alainperez
2023-03-22 14:41alainperezStatusnew => scheduled
2023-03-27 03:19hgbotNote Added: 0147972
2023-05-15 09:34hgbotResolutionopen => fixed
2023-05-15 09:34hgbotStatusscheduled => resolved
2023-05-15 09:34hgbotFixed in Version => RR23Q3
2023-05-15 09:34hgbotNote Added: 0149689
2023-05-15 09:34hgbotNote Added: 0149690
2023-05-15 09:35aaroncaleroReview Assigned To => aaroncalero
2023-05-15 09:35aaroncaleroStatusresolved => closed

Notes
(0147972)
hgbot   
2023-03-27 03:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1115 [^]
(0149689)
hgbot   
2023-05-15 09:34   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1a2b7ffe68f6e0aa76da1b01a97bd507b2b73d4a
Author: Alain Perez Balart <alain.perez@openbravo.com>
Date: 15-05-2023 09:31:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1a2b7ffe68f6e0aa76da1b01a97bd507b2b73d4a [^]

Fixed ISSUE-51907: Not enough cash when a refund with rounding is done

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0149690)
hgbot   
2023-05-15 09:34   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1115 [^]