Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0050681 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] [Retail Modules] Web POS | major | have not tried | 2022-10-28 14:24 | 2022-11-07 12:58 | |||
Reporter | meriem_azaf | View Status | public | |||||
Assigned To | meriem_azaf | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 23Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0050681: Error when creating a category in Keymap window | |||||||
Description | Error when creating a category in Keymap window, it doesn't take into account the organization. Because of that, it is not possible to define : - Different default category for each restaurant. - Configure the same name for different categories attached to different restaurants. | |||||||
Steps To Reproduce | 1- Go to backoffice. 2- Open key map window. 3- Go to category tab included in a keymap. 4- Add a category for a specific restaurant. ex : Organization = FLUNCH AMIENS GLISY Search key = TEST Name = TEST Default = Yes → OK, the category can be created. Add a second category Organization = FLUNCH LENS Search key = TEST 2 Name = TEST Default = Yes → KO impossible to add the category because of a second default value, Yet FLUNCH LENS has to be able to have default value and FLUNCH AMIENS GLISY another one. Try again by changing those values : Add a second category Organization = FLUNCH LENS Search key = TEST 2 Name = TEST Default = No → KO impossible to add the category because of a second name = TEST, Yet FLUNCH LENS has to be able to have the same category name as FLUNCH AMIENS GLISY. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0142723) hgbot (developer) 2022-10-28 14:56 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1325 [^] |
(0143152) hgbot (developer) 2022-11-07 12:58 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1325 [^] |
(0143153) hgbot (developer) 2022-11-07 12:58 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: dcf1b2f01162786ccc219c23bad70a97141d4a6b Author: Meriem Azaf <meriem.azaf@openbravo.com> Date: 07-11-2022 12:55:51 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/dcf1b2f01162786ccc219c23bad70a97141d4a6b [^] Fixes ISSUE-50681: Error when creating a category in Keymap window Error when creating a category in Keymap window, it doesn't take into account the organization. Because of that, it is not possible to define : - Different default category for each restaurant. - Configure the same name for different categories attached to different restaurants. To fix this, we added a restriction related to the organization in hasOnlyOneDefaultCategory in OBPOS2KeymapCategoryEventHandler.java and also we added the organization id column to the unique constraint that is containing "OBPOS2_KEYMAP_VERSION_ID" and "NAME". --- M src-db/database/model/tables/OBPOS2_KEYMAP_CATEGORY.xml M src/org/openbravo/pos2/event/OBPOS2KeymapCategoryEventHandler.java M web-jspack/org.openbravo.pos2/src/components/ProductCategoryKeymap/SetDefaultKeymapCategoryId.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2022-10-28 14:24 | meriem_azaf | New Issue | |
2022-10-28 14:24 | meriem_azaf | Assigned To | => Retail |
2022-10-28 14:24 | meriem_azaf | OBNetwork customer | => No |
2022-10-28 14:24 | meriem_azaf | Triggers an Emergency Pack | => No |
2022-10-28 14:24 | meriem_azaf | Assigned To | Retail => meriem_azaf |
2022-10-28 14:24 | meriem_azaf | Status | new => scheduled |
2022-10-28 14:28 | meriem_azaf | Description Updated | View Revisions |
2022-10-28 14:56 | hgbot | Merge Request Status | => open |
2022-10-28 14:56 | hgbot | Note Added: 0142723 | |
2022-10-28 15:00 | meriem_azaf | Project | Retail Modules => POS2 |
2022-11-07 12:58 | hgbot | Merge Request Status | open => approved |
2022-11-07 12:58 | hgbot | Resolution | open => fixed |
2022-11-07 12:58 | hgbot | Status | scheduled => closed |
2022-11-07 12:58 | hgbot | Note Added: 0143152 | |
2022-11-07 12:58 | hgbot | Fixed in Version | => 23Q1 |
2022-11-07 12:58 | hgbot | Note Added: 0143153 |
Copyright © 2000 - 2009 MantisBT Group |