Openbravo Issue Tracking System - POS2
View Issue Details
0051942POS2POSpublic2023-03-22 09:532023-04-17 16:23
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q1.223Q1.2 
No
0051942: 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.
blocks defect 0051941 closed meriem_azaf Dysfunction when linking several categories in Keymap 
Issue History
2023-03-22 10:21guilleaerTypedefect => backport
2023-03-22 10:21guilleaerTarget Version => 23Q1.1
2023-03-22 14:06hgbotNote Added: 0147844
2023-03-28 18:44AugustoMauchTarget Version23Q1.1 => 23Q1.2
2023-04-17 16:23hgbotResolutionopen => fixed
2023-04-17 16:23hgbotStatusscheduled => closed
2023-04-17 16:23hgbotFixed in Version => 23Q1.2
2023-04-17 16:23hgbotNote Added: 0148496
2023-04-17 16:23hgbotNote Added: 0148497

Notes
(0147844)
hgbot   
2023-03-22 14:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1622 [^]
(0148496)
hgbot   
2023-04-17 16:23   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-51942: 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
---
(0148497)
hgbot   
2023-04-17 16:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1622 [^]