Openbravo Issue Tracking System - POS2
View Issue Details
0052756POS2POSpublic2023-06-15 16:222023-06-19 16:01
charlotte_vasseur 
sreehari 
normalcriticalhave not tried
closedfixed 
5
 
23Q3 
marvintm
No
0052756: [SALES] [VERIFIED RETURN] Cannot complete a verified return after selecting payment method for refund
'Done' button is grayed out even if exact amount refunded when doing a verified return
In POS, create and finalize a sale

Go to Orders menu

Create a verified return on the previous order

Select a payment method to refund totally

The payment method is well added in the list of payment methods with ‘Exact amount refunded’ displayed but

=> ‘Done’ button is grayed out and we cannot click on it and finalize the return
See Done button grayed for verified return.png
No tags attached.
caused by defect 0052539 closed sreehari RM-6309 Overpayment Not Allowed: this condition is not properly evaluated in the case of removing products 
png Done button grayed for verified return.png (179,079) 2023-06-15 16:22
https://issues.openbravo.com/file_download.php?file_id=18649&type=bug
png
Issue History
2023-06-15 16:22charlotte_vasseurNew Issue
2023-06-15 16:22charlotte_vasseurAssigned To => Retail
2023-06-15 16:22charlotte_vasseurFile Added: Done button grayed for verified return.png
2023-06-15 16:22charlotte_vasseurTriggers an Emergency Pack => No
2023-06-15 16:50marvintmRelationship addedcaused by 0052539
2023-06-16 07:23sreehariAssigned ToRetail => sreehari
2023-06-16 07:23sreehariStatusnew => scheduled
2023-06-19 14:26hgbotNote Added: 0151306
2023-06-19 16:00hgbotResolutionopen => fixed
2023-06-19 16:00hgbotStatusscheduled => resolved
2023-06-19 16:00hgbotFixed in Version => 23Q3
2023-06-19 16:00hgbotNote Added: 0151313
2023-06-19 16:00hgbotNote Added: 0151314
2023-06-19 16:01marvintmReview Assigned To => marvintm
2023-06-19 16:01marvintmStatusresolved => closed

Notes
(0151306)
hgbot   
2023-06-19 14:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1902 [^]
(0151313)
hgbot   
2023-06-19 16:00   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 36ec827151b2a983f98c6e2bac541c519fe0bff0
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 19-06-2023 13:16:37
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/36ec827151b2a983f98c6e2bac541c519fe0bff0 [^]

Fixes ISSUE-52756: Added validateOverPayments function in TicketUtils
*Fixed jest test failures, added payments:[]
*Added tests for validateOverPayments with multiple scenarios

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentKeypad/PaymentKeypad.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentKeypad/__test__/PaymentKeypad.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentKeypad/stories/PaymentKeypad.stories.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketUtils.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/TicketUtils.test.js
---
(0151314)
hgbot   
2023-06-19 16:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1902 [^]