Openbravo Issue Tracking System - POS2
View Issue Details
0052735POS2POSpublic2023-06-13 16:472023-06-15 08:40
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
23Q2.223Q2.2 
approved
Gold
No
0052735: CurrentSchemaId property of UI model is not correct in some cases
CurrentSchemaId property of UI model is not correct when cashup is done and the list of orders is cleared.

I have an order is schema A and I execute cashup
UI.CurrentSchemaId is A
When cashup is done all orders are removed and new one created using the default schema B

In that situation the schema of the new order is B but the info iin the UI model is A

When POS starts after cashup the schema A is shown in the screen but the ticket which is being used has the schema B

Both ticket and UI models should has the same value in this case
Having a store with 2 schemas
Schema A
Schema B

Being Schema B the default one (This is configured in touchpoint window)

Login in POS
Do a sale in schema B
move to schema A
execute cashup and finish
Login in POS
Schema A is shown in the screen (wrong)
Add a product to the ticket -> Shows that it was added from schema B (Wrong)
When cashup is done and a new order is created for the defaukt schema, this schema should be set also at the UI model
No tags attached.
blocks defect 0052734 closed guilleaer CurrentSchemaId property of UI model is not correct in some cases 
Issue History
2023-06-13 16:47guilleaerTypedefect => backport
2023-06-13 16:47guilleaerTarget Version => 23Q2.2
2023-06-13 17:19hgbotMerge Request Status => open
2023-06-13 17:19hgbotNote Added: 0151123
2023-06-14 16:06hgbotMerge Request Statusopen => approved
2023-06-15 08:40hgbotResolutionopen => fixed
2023-06-15 08:40hgbotStatusscheduled => closed
2023-06-15 08:40hgbotNote Added: 0151181
2023-06-15 08:40hgbotFixed in Version => 23Q2.2
2023-06-15 08:40hgbotNote Added: 0151182

Notes
(0151123)
hgbot   
2023-06-13 17:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1894 [^]
(0151181)
hgbot   
2023-06-15 08:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1894 [^]
(0151182)
hgbot   
2023-06-15 08:40   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 823844e04a78f11615b0f6a7843189c8273cf1e7
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 15-06-2023 06:40:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/823844e04a78f11615b0f6a7843189c8273cf1e7 [^]

fixed ISSUE-52735: currentSchemaId of UI model is set when new order is created by cashup

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/FinishCashupUserAction.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/user-actions/cashup/FinishCashup.js
---