Openbravo Issue Tracking System - POS2
View Issue Details
0052734POS2POSpublic2023-06-13 16:472023-06-15 08:40
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
23Q3 
approved
Gold
No
0052734: 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.
depends on backport 005273523Q2.2 closed guilleaer CurrentSchemaId property of UI model is not correct in some cases 
depends on backport 005273623Q1.4 closed guilleaer CurrentSchemaId property of UI model is not correct in some cases 
Issue History
2023-06-13 16:47guilleaerNew Issue
2023-06-13 16:47guilleaerAssigned To => guilleaer
2023-06-13 16:47guilleaerOBNetwork customer => Gold
2023-06-13 16:47guilleaerTriggers an Emergency Pack => No
2023-06-13 16:47guilleaerStatusnew => scheduled
2023-06-13 16:56hgbotMerge Request Status => open
2023-06-13 16:56hgbotNote Added: 0151121
2023-06-14 16:05hgbotMerge Request Statusopen => approved
2023-06-15 08:40hgbotResolutionopen => fixed
2023-06-15 08:40hgbotStatusscheduled => closed
2023-06-15 08:40hgbotNote Added: 0151179
2023-06-15 08:40hgbotFixed in Version => 23Q3
2023-06-15 08:40hgbotNote Added: 0151180

Notes
(0151121)
hgbot   
2023-06-13 16:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1893 [^]
(0151179)
hgbot   
2023-06-15 08:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1893 [^]
(0151180)
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: af233b1516363af135dab7966a2d22ffc45d60f0
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 15-06-2023 06:40:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/af233b1516363af135dab7966a2d22ffc45d60f0 [^]

fixed ISSUE-52734: 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
---