Openbravo Issue Tracking System - POS2
View Issue Details
0051163POS2Corepublic2022-12-15 09:352023-07-25 09:16
dorian_robillard 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0051163: Refunds limit V2 : Error in the amount limit when doing a return of several product in the same verified return
Error in the amount limit when doing a return of several product in the same verified return from the same sales order
1) sell 3 items
product 1 - 115€
product 2 - 145€
product 3 - 145€
2) pay
- 100€ in cash
- 305€ per credit card
3) Do a verified return on this ticket
4) Select only product 1 to return
5) Limit payment is -115€ for all payment method available as a refund
6) Add the second & third items of the same ticket
7) Limit payment is 290€ instead of 405€ for credit card, 405€ for other
 
I think the POS is calculating the limit only on the last item added to the return and not the whole basket : 145 + 145 = 290€ and don’t take in account the previous item at 115€ to have 405€

 
No tags attached.
Issue History
2022-12-15 09:35dorian_robillardNew Issue
2022-12-15 09:35dorian_robillardAssigned To => Triage Platform Base
2022-12-15 09:35dorian_robillardTriggers an Emergency Pack => No
2022-12-18 23:56rafarodaSeverityminor => major
2022-12-22 14:31AugustoMauchAssigned ToTriage Platform Base => Retail
2022-12-29 08:47ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-12-29 08:47ranjith_qualiantech_comStatusnew => scheduled
2022-12-30 08:24dorian_robillardNote Added: 0145094
2023-01-02 06:56hgbotNote Added: 0145109
2023-07-05 09:47hgbotNote Added: 0152122
2023-07-05 09:47hgbotResolutionopen => fixed
2023-07-05 09:47hgbotStatusscheduled => closed
2023-07-05 09:47hgbotFixed in Version => RR23Q4
2023-07-05 09:47hgbotNote Added: 0152123
2023-07-20 13:12ranjith_qualiantech_comNote Added: 0152725
2023-07-20 13:12ranjith_qualiantech_comStatusclosed => new
2023-07-20 13:12ranjith_qualiantech_comResolutionfixed => open
2023-07-20 13:12ranjith_qualiantech_comFixed in VersionRR23Q4 =>
2023-07-20 13:12ranjith_qualiantech_comStatusnew => scheduled
2023-07-25 08:05hgbotNote Added: 0152855
2023-07-25 09:16hgbotNote Added: 0152856
2023-07-25 09:16hgbotResolutionopen => fixed
2023-07-25 09:16hgbotStatusscheduled => closed
2023-07-25 09:16hgbotFixed in Version => RR23Q4
2023-07-25 09:16hgbotNote Added: 0152857

Notes
(0145094)
dorian_robillard   
2022-12-30 08:24   
To reproduce this ticket, the configuration need to be :

- In organisation set allow mixing verified returns with 'nothing"

- In channel touchpoint type set allowed PM for refund = "Only thise defined"
for cash ad in PM for refund tab add "Cash" and "credit card" + unselect allow to exceed paid amount in pm for refund

- In channel touchpoint type set allowed PM for refund = "Only thise defined"
for credit card and in PM for refund tab add "credit card" + unselect allow to exceed paid amount in pm for refund
(0145109)
hgbot   
2023-01-02 06:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1023 [^]
(0152122)
hgbot   
2023-07-05 09:47   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1023 [^]
(0152123)
hgbot   
2023-07-05 09:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d1ff3fbef443ab5ad74e6a300b7aec65dc30be53
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 04-07-2023 05:57:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d1ff3fbef443ab5ad74e6a300b7aec65dc30be53 [^]

Fixed ISSUE-51163: Ticket lines should be used to calculated refund payment limit
* Refund payment limit should be calculated using ticket lines
  instead of selected lines in verified returns

---
M web-test/model/business-object/ticket/TicketUtils.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
---
(0152725)
ranjith_qualiantech_com   
2023-07-20 13:12   
Error occurs when opening the paid receipt
Backoffice
1) Update Cash Payment Method's "Allow PMs for Refund" as "Only those defined"
2) Add Cash & Voucher in "PM for Refund"
POS2
1) Add Product and complete it with Cash
2) Do VR of last ticket with Cash
3) Open the Return ticket, Error occurred
(0152855)
hgbot   
2023-07-25 08:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1291 [^]
(0152856)
hgbot   
2023-07-25 09:16   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1291 [^]
(0152857)
hgbot   
2023-07-25 09:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: b6efdc2f8ae96371f920051877ac1c5a26d254e6
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 25-07-2023 11:29:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/b6efdc2f8ae96371f920051877ac1c5a26d254e6 [^]

Fixed ISSUE-51163: Refund information should be calculated for VR and PaidReceipt
* When opening paid return receipt (or) creating verified return, then
  Refund information should be calculated

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