Openbravo Issue Tracking System - POS2
View Issue Details
0051683POS2POSpublic2023-02-23 13:342023-05-22 18:03
dorian_robillard 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
23Q3 
approved
Gold
No
0051683: It s possible to refund more quantities as quantity salt in a verified return
I can do it by 2 different way

Create several return from a same sales order
https://drive.google.com/file/d/17IWm03Uhn9M1aI3ch9VuApTLXc3_QZEV/view?usp=share_link [^]

Create only one return but with more product as quantities sold
https://drive.google.com/file/d/1ZJ7KetkzVMlZCsMZ7dfoeUO_JuxEKHiq/view?usp=share_link [^]
Case 1 : Create several return from a same sales order
1) Make a return ticket and put the ticket on hold
2) Make a return with the same product for the same ticket and put the ticket on hold
3) Return the 1st ticket on hold => the product is successfully returned
4) Return the 2nd ticket on hold => the product is returned twice

Case 2 : Create only one return but with more product as quantities sold
1) Complete an order with same products ( ex : quantity 7)
2) Do a partial verify return on this ticket without refunding
3) select the quantity to return according to this ticket
4) DO an other partial verified return without refunding
5) Do an other partial verified return without refunding
result : it’s possible to return more than initial quantity ( ex : quantity return= 13)
FASH
related to defect 0051499 closed Retail can return more items than the original ticket had 
Issue History
2023-02-23 13:34dorian_robillardNew Issue
2023-02-23 13:34dorian_robillardAssigned To => Triage Platform Base
2023-02-23 13:34dorian_robillardTriggers an Emergency Pack => No
2023-04-17 16:24rafarodaOBNetwork customer => Gold
2023-04-17 16:24rafarodaTag Attached: FASH
2023-04-17 18:23marvintmAssigned ToTriage Platform Base => Retail
2023-04-17 18:23marvintmCategoryCore => POS
2023-04-18 06:52ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-04-18 14:44ranjith_qualiantech_comStatusnew => scheduled
2023-04-26 15:42hgbotMerge Request Status => open
2023-04-26 15:42hgbotNote Added: 0148932
2023-04-26 15:42hgbotNote Added: 0148933
2023-04-27 15:28lorenzofidalgoRelationship addedrelated to 0051499
2023-05-22 18:03hgbotMerge Request Statusopen => approved
2023-05-22 18:03hgbotNote Added: 0150092
2023-05-22 18:03hgbotNote Added: 0150093
2023-05-22 18:03hgbotResolutionopen => fixed
2023-05-22 18:03hgbotStatusscheduled => closed
2023-05-22 18:03hgbotNote Added: 0150094
2023-05-22 18:03hgbotFixed in Version => 23Q3
2023-05-22 18:03hgbotNote Added: 0150095

Notes
(0148932)
hgbot   
2023-04-26 15:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/52 [^]
(0148933)
hgbot   
2023-04-26 15:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1729 [^]
(0150092)
hgbot   
2023-05-22 18:03   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns [^]
Changeset: 8910fe9cfe280d25056b0a389537f77b333db9df
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 22-05-2023 11:36:03
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/8910fe9cfe280d25056b0a389537f77b333db9df [^]

Related to ISSUE-51683: Qty should be validated in all tickets when doing VR
* When validating VR lines with current ticket list,
  linedId should be used instead of id. Since lineId has info of original order lineId

---
M web-test/model/business-object/ticket/actions/ReturnVerifiedTicket-actionPreparation.test.js
M web/org.openbravo.retail.returns/app/model/business-object/ticket/actions/ReturnVerifiedTicket.js
---
(0150093)
hgbot   
2023-05-22 18:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/52 [^]
(0150094)
hgbot   
2023-05-22 18:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1729 [^]
(0150095)
hgbot   
2023-05-22 18:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 92f033137ef1f42b3ba25e5de13f603522090c15
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 22-05-2023 15:53:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/92f033137ef1f42b3ba25e5de13f603522090c15 [^]

Fixed ISSUE-51683: RemainingQty in VR Popup should be updated based on current ticket
* If current ticket has multiple VR lines, then remaining qty in VR popup
  should be updated based on all VR lines from current ticket

---
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsGrid/VerifiedReturnsGridDataSource.js
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsGrid/__test__/VerifiedReturnsGridDataSource.test.js
---