Openbravo Issue Tracking System - POS2
View Issue Details
0048352POS2POSpublic2021-12-21 16:202022-04-19 09:54
jmelin 
javierRodriguez 
highmajoralways
closedfixed 
5
 
TAP 
migueldejuana
No
0048352: JIRA 2580 - Verified Return - Its popup should set the line quantity to return and update remaining quantity
Current behaviour en POS2:

- Verify returns popup works as a wizard, in terms of the user can select lines and quantities to return. These lines are added to the receipt. This flow DOES NOT override the previous value.

This behaviour is not correct. The application should override the quantity to return if there is a previous line with return any quantity of that product.

Apart from that, in the popup, for each line there is a remaining quantity. This value should be updated if some subset of the line was added before.
Do an order and add a product with a quantity > 1
Complete the order

Look for the order and do a verified return
Select the product and a quantity of 1
=> OK; 1 line with qty 1 to return
Without closing the opened return, do a verified return of the same order and update the qty to 2.
=> KO; in the verified returns popup, the remaining line qty should be the initial quantity - 1
=> KO; 1 line with qtr 3, should be 3
THIS FEATURE ONLY AFFECTS TO NEW POS. THE OLD VERSION WORKS AS EXPECTED

- Instead of launch an add product user action, the line quantity should be set.
- Update remaining quantity after all.
No tags attached.
blocks defect 0048302 closed Retail JIRA 2580 - Verified Return - Its popup should set the line quantity to return and update remaining quantity 
Issue History
2022-01-04 13:04jorge-garciaTypedefect => backport
2022-01-04 13:04jorge-garciaTarget Version => TAP
2022-01-04 13:44jorge-garciaNote Added: 0134107
2022-01-04 15:08jorge-garciaReview Assigned To => migueldejuana
2022-01-05 11:06jorge-garciaStatusscheduled => resolved
2022-01-05 11:06jorge-garciaFixed in Version => TAP
2022-01-05 11:06jorge-garciaResolutionopen => fixed
2022-01-05 11:07jorge-garciaNote Added: 0134130
2022-01-05 11:07jorge-garciaStatusresolved => closed
2022-01-27 16:14guilleaerAssigned Tojorge-garcia => javierRodriguez
2022-01-27 16:14guilleaerStatusclosed => new
2022-01-27 16:14guilleaerResolutionfixed => open
2022-01-27 16:14guilleaerFixed in VersionTAP =>
2022-01-27 16:14guilleaerStatusnew => scheduled
2022-01-28 13:23javierRodriguezSummaryJIRA 2580 - Verified Return - Discount amount is not correct when updating a product qty => JIRA 2580 - Verified Return - Its popup should set the line quantity to return and update remaining quantity
2022-01-28 13:23javierRodriguezDescription Updatedbug_revision_view_page.php?rev_id=23594#r23594
2022-01-28 13:23javierRodriguezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23596#r23596
2022-01-28 13:23javierRodriguezProposed Solution updated
2022-01-31 13:30javierRodriguezProposed Solution updated
2022-04-19 09:54guilleaerStatusscheduled => resolved
2022-04-19 09:54guilleaerResolutionopen => fixed
2022-04-19 09:54guilleaerStatusresolved => closed

Notes
(0134107)
jorge-garcia   
2022-01-04 13:44   
These MR has been created:

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/merge_requests/140 [^]
https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.returns/-/merge_requests/2 [^]
(0134130)
jorge-garcia   
2022-01-05 11:07   
MRs merged:

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/commit/17063c31701f8a8b75aa7e8d34dfe99195b7b34f [^]

https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.returns/-/commit/adf5cbd4669c42e1e969308bb07c4ce94b60e026 [^]