Openbravo Issue Tracking System - POS2
View Issue Details
0047690POS2Restaurantspublic2021-09-14 14:532021-09-15 11:01
timothee_catteeuw 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
 
TAP 
No
0047690: Error when selecting product after removing a line
An error appears after removing a line thanks to directly set this line to 0.
Able to reproduce on livebuilds :
https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/web/pos/?terminal=VBS-2 [^]

this error appears and it is mandatory to delete ticket or open a new ticket:

Cannot destructure property 'qty' of 'n.a.App.State.getState(...).Ticket.lines.find(...)' as it is undefined.
1. go to WePos 2
2. Select several products
3. click on one of them
4. click on qty (between - and +)
5. press 0
6. Press ok
7 try to add other items
--> error described below appears
No tags attached.
has duplicate defect 0047592 closed AtulOpenbravo Error when updating ticket line quantity to zero and adding a new product 
png error.png (93,739) 2021-09-14 14:53
https://issues.openbravo.com/file_download.php?file_id=16195&type=bug
png
Issue History
2021-09-14 14:53timothee_catteeuwNew Issue
2021-09-14 14:53timothee_catteeuwAssigned To => Retail
2021-09-14 14:53timothee_catteeuwFile Added: error.png
2021-09-14 14:53timothee_catteeuwTriggers an Emergency Pack => No
2021-09-14 16:50dmiguelezStatusnew => scheduled
2021-09-14 16:50dmiguelezStatusscheduled => acknowledged
2021-09-14 18:15AtulOpenbravoAssigned ToRetail => AtulOpenbravo
2021-09-14 18:15AtulOpenbravoStatusacknowledged => scheduled
2021-09-15 08:19hgbotNote Added: 0131797
2021-09-15 08:26AtulOpenbravoNote Added: 0131798
2021-09-15 11:01hgbotResolutionopen => fixed
2021-09-15 11:01hgbotStatusscheduled => closed
2021-09-15 11:01hgbotNote Added: 0131809
2021-09-15 11:01hgbotNote Added: 0131810
2021-09-15 12:07AtulOpenbravoRelationship addedhas duplicate 0047592

Notes
(0131797)
hgbot   
2021-09-15 08:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/676 [^]
(0131798)
AtulOpenbravo   
2021-09-15 08:26   
Test Plan

- Login to WebPOS2
- Select several products
- click on any one of them
- click on qty (between - and +)
- Press 0
- Press ok
- Try to add other items
- Realize that items are added successfully
(0131809)
hgbot   
2021-09-15 11:01   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 87dff6f71400e6cb36a4bd04495dec94a8fed30d
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 2021-09-15T11:50:32+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/87dff6f71400e6cb36a4bd04495dec94a8fed30d [^]

Fixes BUG-47690: Error when selecting product after removing a
line

**In checkForLineDeletion while adding product, get qty and id
from ticketLine only if the selectedLine exists in Ticket.

---
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/AddProduct.js
---
(0131810)
hgbot   
2021-09-15 11:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/676 [^]