Openbravo Issue Tracking System - POS2
View Issue Details
0048057POS2POSpublic2021-11-12 17:382021-11-24 09:39
timothee_catteeuw 
prakashmurugesan88 
normalmajoralways
closedfixed 
5
 
TAPTAP 
guilleaer
No
0048057: JIRA 2492 - Particular issue when returning products with amount = -1
There is a wrong behavior when you want change the quantity of products during a return ticket and quantity of product = - 1.
In that case it is not possible to change the quantity of product. If you press "-" or "+" on the linked pop-in, the article disappears.
1) Connect to https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/web/pos/?terminal=VBS-2 [^] as vallblanca

2) Open a new ticket and click return order button

3) select once "Avalanche transeiver"
4) select twice "Insect Repellent"
5) select 3 times "Multi-tool"

6) click "Multi-tool" on ticket and press "-" button
--> quantity switch to -2 --> OK

7) click "Avalanche transeiver" on ticket and press "-" button
--> product disappears --> OK

8) click again "Multi-tool" on ticket and press "+" button
--> quantity switch to -3 --> OK

9) select again once "Avalanche transeiver" in order to display it in the ticket

10) click "Avalanche transeiver" on ticket and press "+" button
--> product disappears --> KO
No tags attached.
related to defect 0047633 closed jorge-garcia Deleting qty value leaves the app in an inconsistent state 
related to defect 0046622 closed agonzalez [21Q2] The textbox to update the quantity does not limit the maximum amount 
related to defect 0047447 closed agonzalez Cannot add product to a Return order after a removal 
related to defect 0047507 closed hernan-dp Can't add an already added product to ticket if ticket is Return Order 
has duplicate backport 0048063TAP closed Retail JIRA 2492 - Particular issue when returning products with amount = -1 
Issue History
2021-11-12 17:38timothee_catteeuwNew Issue
2021-11-12 17:38timothee_catteeuwAssigned To => Retail
2021-11-12 17:38timothee_catteeuwTriggers an Emergency Pack => No
2021-11-15 14:00guilleaerStatusnew => acknowledged
2021-11-15 14:00guilleaerStatusacknowledged => scheduled
2021-11-15 14:00guilleaerStatusscheduled => acknowledged
2021-11-16 12:26ebecerraAssigned ToRetail => ebecerra
2021-11-16 12:27ebecerraStatusacknowledged => scheduled
2021-11-20 07:15prakashmurugesan88Relationship addedrelated to 0047633
2021-11-20 07:15prakashmurugesan88Relationship addedrelated to 0046622
2021-11-20 07:15prakashmurugesan88Relationship addedrelated to 0047447
2021-11-20 07:15prakashmurugesan88Relationship addedrelated to 0047507
2021-11-22 12:02prakashmurugesan88Note Added: 0133254
2021-11-22 12:10timothee_catteeuwNote Added: 0133255
2021-11-24 08:51guilleaerNote Added: 0133324
2021-11-24 08:51guilleaerAssigned Toebecerra => prakashmurugesan88
2021-11-24 08:51guilleaerTypedefect => backport
2021-11-24 09:38guilleaerStatusscheduled => resolved
2021-11-24 09:38guilleaerFixed in Version => TAP
2021-11-24 09:38guilleaerResolutionopen => fixed
2021-11-24 09:39guilleaerReview Assigned To => guilleaer
2021-11-24 09:39guilleaerNote Added: 0133326
2021-11-24 09:39guilleaerStatusresolved => closed
2021-12-10 12:37jarmendarizRelationship replacedhas duplicate 0048063

Notes
(0133254)
prakashmurugesan88   
2021-11-22 12:02   
Created following Merge Request,

    https://gitlab.com/obcustomers/AGAP/org.openbravo.core2/-/merge_requests/75 [^]

    https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/merge_requests/132 [^]
(0133255)
timothee_catteeuw   
2021-11-22 12:10   
It is almost fine, behavior is good when switching all the ticket to a return ticket. In that case all the quantities are negative.
--> And then + and - buttons works correctly

But it remains 1 case which does not correctly work, when changing just 1 item of the ticket to a negative quantity.
- Open a new ticket
- add several products
- click on one of them
- Click on button +/- and OK, quantity of this item change to -1
- Click on "-", the item disappears, the quantity should be -2

- Open a new ticket
- add several products
- click on one of them
- Click on button +/- and OK, quantity of this item change to -1
- Click on "+", the quantity is -2, the item should be removed.
(0133324)
guilleaer   
2021-11-24 08:51   
The behavior explained in above note is the expected one. Approving MR and closing issue
(0133326)
guilleaer   
2021-11-24 09:39   
Fixed by backporting all issues related to this issue

    https://gitlab.com/obcustomers/AGAP/org.openbravo.core2/-/merge_requests/75 [^]
    https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/merge_requests/132 [^]