Openbravo Issue Tracking System - POS2
View Issue Details
0049774POS2POSpublic2022-07-11 10:082022-08-16 13:48
noemieroussel 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
22Q4 
No
0049774: [SALES] - When scanning a product, product description remains after checkout
In the main screen of the WebPOS2, after closing a ticket with product(s) scanned, the description of the product(s) remain on the screen

See video here: https://drive.google.com/file/d/1w3pigyrSMnN9sTzgB7GDxMm12PQyytaA/view?usp=sharing [^]
Go to the WebPOS2

Past a previously copied UPC/EAN. For example :0000001688191

Pay the ticket

See that in the main screen, the description is still displayed.
FASH
Issue History
2022-07-11 10:08noemierousselNew Issue
2022-07-11 10:08noemierousselAssigned To => Retail
2022-07-11 10:08noemierousselTriggers an Emergency Pack => No
2022-07-13 00:28rafarodaTag Attached: FASH
2022-07-13 00:29rafarodaSeverityminor => major
2022-08-10 23:45AugustoMauchAssigned ToRetail => meriem_azaf
2022-08-10 23:45AugustoMauchStatusnew => scheduled
2022-08-11 14:36hgbotNote Added: 0140072
2022-08-16 13:48hgbotResolutionopen => fixed
2022-08-16 13:48hgbotStatusscheduled => closed
2022-08-16 13:48hgbotNote Added: 0140154
2022-08-16 13:48hgbotFixed in Version => 22Q4
2022-08-16 13:48hgbotNote Added: 0140155

Notes
(0140072)
hgbot   
2022-08-11 14:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1141 [^]
(0140154)
hgbot   
2022-08-16 13:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1141 [^]
(0140155)
hgbot   
2022-08-16 13:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f52cf6028d40e3afb73672eb20219ea42b9831b1
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 16-08-2022 12:15:05
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f52cf6028d40e3afb73672eb20219ea42b9831b1 [^]

Fixes ISSUE-49774: [SALES] - When scanning a product, product description remains after checkout

In the main screen of the WebPOS2, after closing a ticket with product(s) scanned, the description of the product(s) remain on the screen.

The problem was that the state it's not updating after the checkout and still keeping the last scanned product.

To fix this, we had create a post hook to reset the last scanned product in the state after the checkout and we did the same for deleteTicket, newTicket and also cancelTicket.

---
M web-jspack/org.openbravo.pos2/src/components/ProductScan/ProductScanProductInfo/ProductScanProductInfo.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/CompleteTicketHooks.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/__test__/CompleteTicketHooks.test.js
---