Openbravo Issue Tracking System - POS2
View Issue Details
0051941POS2POSpublic2023-03-22 09:532023-04-17 16:22
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q3 
No
0051941: Dysfunction when linking several categories in Keymap
The content of linked product category we can see in keymap editor is not correct in webPOS.
1- Go to webPOS.
2- Open keymap editor.
3- Add a new category in Main restaurant keymap (type = alphabetic).
4- Click view products button.
5- Link prod categories.
6- Add 2 product cat for example : Backpacks & TravelOBREST_Food.
7- Save.
8- When you go back click on 1 of them (see screenshot 1).
9- The list is extend like in screenshot 2.
But the content of OBREST_Food is the same as Backpacks & Travel as you can see in screenshot 3.
No tags attached.
depends on backport 005194223Q1.2 closed meriem_azaf Dysfunction when linking several categories in Keymap 
depends on backport 005210923Q2 closed meriem_azaf Dysfunction when linking several categories in Keymap 
png screenshot1.png (72,131) 2023-03-22 09:53
https://issues.openbravo.com/file_download.php?file_id=18292&type=bug
png

png screenshot2.png (72,937) 2023-03-22 09:55
https://issues.openbravo.com/file_download.php?file_id=18293&type=bug
png

png screenshot3.png (74,224) 2023-03-22 09:55
https://issues.openbravo.com/file_download.php?file_id=18294&type=bug
png
Issue History
2023-03-22 09:53meriem_azafNew Issue
2023-03-22 09:53meriem_azafAssigned To => Retail
2023-03-22 09:53meriem_azafFile Added: screenshot1.png
2023-03-22 09:53meriem_azafTriggers an Emergency Pack => No
2023-03-22 09:53meriem_azafAssigned ToRetail => meriem_azaf
2023-03-22 09:53meriem_azafStatusnew => scheduled
2023-03-22 09:55meriem_azafFile Added: screenshot2.png
2023-03-22 09:55meriem_azafFile Added: screenshot3.png
2023-03-22 10:04hgbotNote Added: 0147825
2023-03-22 10:21guilleaerStatusscheduled => acknowledged
2023-03-22 10:21guilleaerStatusacknowledged => scheduled
2023-04-12 15:11guilleaerStatusscheduled => acknowledged
2023-04-12 15:11guilleaerStatusacknowledged => scheduled
2023-04-17 16:22hgbotNote Added: 0148492
2023-04-17 16:22hgbotResolutionopen => fixed
2023-04-17 16:22hgbotStatusscheduled => closed
2023-04-17 16:22hgbotFixed in Version => 23Q3
2023-04-17 16:22hgbotNote Added: 0148493

Notes
(0147825)
hgbot   
2023-03-22 10:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1620 [^]
(0148492)
hgbot   
2023-04-17 16:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1620 [^]
(0148493)
hgbot   
2023-04-17 16:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 525617bf8fd9abb27574fa54134599cd07b9401a
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 17-04-2023 14:00:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/525617bf8fd9abb27574fa54134599cd07b9401a [^]

Fixes ISSUE-51941: Dysfunction when linking several categories in Keymap

The content of linked product category we can see in keymap editor is not correct in webPOS.

The problem here was that when we click in the row we go to get all the details related to the row but we did not check the row id if it's the same sa the id of the row selected and we return the same products for all rows.

To fix this, we added a variable using the state that will contain the id of the row selected just to check the part that I mentionned before.

---
M web-jspack/org.openbravo.pos2/src/components/KeyMapEditor/KeymapEditorLinkedProductCategoriesGrid/KeymapEditorLinkedProductCategoriesGrid.jsx
---