Openbravo Issue Tracking System - POS2
View Issue Details
0052242POS2POSpublic2023-04-25 16:232023-05-24 16:11
jayala 
jayala 
normaltrivialhave not tried
closedfixed 
5
 
23Q2.123Q2.1 
approved
No
No
0052242: Open order in the most adecuated schema
When an order which has a schemaId information is loaded, POS should be able to load it automatically opening the linked schema.
1. Search for a ticket which has the field "obpos2OrgSchema" filled.
2. Open the order.
3. See that order is opened but not in the schema indicated for the order.
We will decide which schema will be selected in the POS based on the following conditions:
 1. Use the schema provided by the order in case it's available in the POS and compatible with the loaded order.
 2. Use the schema which currently is being used in POS in case it's available in the POS and compatible with the loaded order.
 3. Use the default schema defined for the POS in case it's available in the POS and compatible with the loaded order.
 *. If none of the schemas installed on the POS are compatible with the current order then a warning will be shown and the order will be opened using the default schema.
No tags attached.
blocks feature request 0052231 closed jayala Open order in the most adecuated schema 
Issue History
2023-04-26 10:55jayalaTypefeature request => backport
2023-04-26 10:55jayalaTarget Version => 23Q2
2023-04-26 10:55jayalaAssigned ToRetail => jayala
2023-05-02 14:50guilleaerTarget Version23Q2 => 23Q2.1
2023-05-09 10:57hgbotMerge Request Status => open
2023-05-09 10:57hgbotNote Added: 0149481
2023-05-10 09:33hgbotNote Added: 0149540
2023-05-11 10:37hgbotNote Added: 0149600
2023-05-11 11:11hgbotMerge Request Statusopen => approved
2023-05-11 11:11hgbotResolutionopen => fixed
2023-05-11 11:11hgbotStatusscheduled => closed
2023-05-11 11:11hgbotNote Added: 0149610
2023-05-11 11:11hgbotFixed in Version => 23Q2.1
2023-05-11 11:11hgbotNote Added: 0149611
2023-05-24 16:11hgbotNote Added: 0150234

Notes
(0149481)
hgbot   
2023-05-09 10:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1770 [^]
(0149540)
hgbot   
2023-05-10 09:33   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1770 [^]
(0149600)
hgbot   
2023-05-11 10:37   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1780 [^]
(0149610)
hgbot   
2023-05-11 11:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1780 [^]
(0149611)
hgbot   
2023-05-11 11:11   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1d3403192c0f726701f7daf7841a0f12524a0cae
Author: Javier Ayala <javier.ayala@openbravo.com>
Date: 11-05-2023 09:10:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1d3403192c0f726701f7daf7841a0f12524a0cae [^]

Fixed ISSUE-52242: Open order in the most adecuated schema

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SetCurrentSchema.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/LoadRemoteTicket.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/SelectCurrentSchema.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/SelectCurrentSchema.js
---
(0150234)
hgbot   
2023-05-24 16:11   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ef3bed18f737c2c280f36d4dac7adebb51f3347f
Author: ruben.jimenez <ruben.jimenez@openbravo.com>
Date: 24-05-2023 16:11:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ef3bed18f737c2c280f36d4dac7adebb51f3347f [^]

Related to ISSUE-52242: Fixed jest errors

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/SelectCurrentSchema.js
---