Openbravo Issue Tracking System - POS2
View Issue Details
0052231POS2POSpublic2023-04-25 16:232023-05-11 10:26
jayala 
jayala 
normaltrivialhave not tried
closedfixed 
5
 
23Q3 
approved
No
No
0052231: 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.
depends on backport 005224223Q2.1 closed jayala Open order in the most adecuated schema 
depends on backport 005224323Q1.3 closed jayala Open order in the most adecuated schema 
Issue History
2023-04-25 16:23jayalaNew Issue
2023-04-25 16:23jayalaAssigned To => Retail
2023-04-25 16:23jayalaOBNetwork customer => No
2023-04-25 16:23jayalaTriggers an Emergency Pack => No
2023-04-26 10:54jayalaSummaryPrevent load an order when schema isn't compatible => Open order in the most adecuated schema
2023-04-26 10:54jayalaDescription Updatedbug_revision_view_page.php?rev_id=25951#r25951
2023-04-26 10:54jayalaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25953#r25953
2023-04-26 10:54jayalaProposed Solution updated
2023-04-26 10:54jayalaTypedefect => feature request
2023-04-26 10:55jayalaStatusnew => scheduled
2023-04-26 10:56jayalaAssigned ToRetail => jayala
2023-04-26 16:26hgbotMerge Request Status => open
2023-04-26 16:26hgbotNote Added: 0148944
2023-05-09 10:29hgbotMerge Request Statusopen => approved
2023-05-09 10:30hgbotResolutionopen => fixed
2023-05-09 10:30hgbotStatusscheduled => closed
2023-05-09 10:30hgbotNote Added: 0149479
2023-05-09 10:30hgbotFixed in Version => 23Q3
2023-05-09 10:30hgbotNote Added: 0149480
2023-05-09 13:29hgbotNote Added: 0149492
2023-05-09 16:54hgbotNote Added: 0149506
2023-05-11 10:26hgbotNote Added: 0149598
2023-05-11 10:26hgbotNote Added: 0149599

Notes
(0148944)
hgbot   
2023-04-26 16:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1730 [^]
(0149479)
hgbot   
2023-05-09 10:30   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1730 [^]
(0149480)
hgbot   
2023-05-09 10:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: fa0239203f9207155957c63dd51653112355ea23
Author: Javier Ayala <javier.ayala@openbravo.com>
Date: 09-05-2023 08:30:05
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/fa0239203f9207155957c63dd51653112355ea23 [^]

Fixed ISSUE-52231: 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
---
(0149492)
hgbot   
2023-05-09 13:29   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 130e9dfbe7f9d37e8345620f22e64dccf8e309cc
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 09-05-2023 13:27:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/130e9dfbe7f9d37e8345620f22e64dccf8e309cc [^]

Revert "Fixed ISSUE-52231: Open order in the most adecuated schema"

This reverts commit fa0239203f9207155957c63dd51653112355ea23.

---
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
---
(0149506)
hgbot   
2023-05-09 16:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1773 [^]
(0149598)
hgbot   
2023-05-11 10:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c34b7803d74b6ab97f91d2bc55810e71ae4d321a
Author: Javier Ayala <javier.ayala@openbravo.com>
Date: 11-05-2023 08:26:05
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c34b7803d74b6ab97f91d2bc55810e71ae4d321a [^]

Fixed ISSUE-52231: 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
---
(0149599)
hgbot   
2023-05-11 10:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1773 [^]