Openbravo Issue Tracking System - POS2
View Issue Details
0047282POS2POSpublic2021-06-29 15:552021-07-09 07:07
jmelin 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
No
0047282: JIRA 2119 - Integration in BO - transaction linked to first user connected
All the sales order are linked to the first user that logged to the POS until the POS is closed.
Pre-requisite:

Have 2 users that can connect to the same POS

Step to reproduce:
1. Connect to POS with user 1
2. Do sales order on your POS
3. Check in BO that the sales order are linked to user 1 (created/modified by)
4. Log out
5. Connect to POS with user 2
6. Do sales order
7. Check in BO that the sales order are linked to user 2 (created/modified by)
=> KO. it shows that order was made by the user 1
8. Close the till
9. Log with user 2
10. Do sales order
11. Check in BO that the sales order are linked to user 2 (created/modified by)
=> OK, the sales order are correctly to user 2

No tags attached.
depends on backport 0047284TAP closed AtulOpenbravo JIRA 2119 - Integration in BO - transaction linked to first user connected 
Issue History
2021-06-29 15:55jmelinNew Issue
2021-06-29 15:55jmelinAssigned To => Retail
2021-06-29 15:55jmelinTriggers an Emergency Pack => No
2021-06-29 16:05guilleaerStatusnew => scheduled
2021-06-29 16:06guilleaerResolution time => 1626127200
2021-06-29 16:07guilleaerAssigned ToRetail => AtulOpenbravo
2021-06-30 12:56guilleaerResolution time1626127200 => 1626213600
2021-07-06 15:19AtulOpenbravoNote Added: 0130184
2021-07-06 20:04hgbotNote Added: 0130201
2021-07-08 20:04hgbotNote Added: 0130334
2021-07-09 07:06hgbotNote Added: 0130335
2021-07-09 07:06hgbotResolutionopen => fixed
2021-07-09 07:06hgbotStatusscheduled => closed
2021-07-09 07:06hgbotFixed in Version => RR21Q4
2021-07-09 07:06hgbotNote Added: 0130336
2021-07-09 07:06hgbotNote Added: 0130337
2021-07-09 07:06hgbotNote Added: 0130338
2021-07-09 07:07hgbotNote Added: 0130339

Notes
(0130184)
AtulOpenbravo   
2021-07-06 15:19   
Test Plan

- Connect to POS with user 1
- Create a ticket in POS.
- Check in Back Office that the sales order are linked to user 1 (createdBy / updatedBy). This is correct.
- Log out
- Connect to POS with user 2
- Create Ticket in POS.
- Check in Back Office that the sales order are linked to user 2 (createdBy / modifiedBy)
- Realize that it shows order was made by the user 2. This is correct.
- Close the till
- Log with user 2
- Create Ticket in POS
- Check in Back Office that the sales order are linked to user 2 (createdBy / updatedBy)
- Realize that the sales order is correctly linked to user 2 as Created By and Updated By.
(0130201)
hgbot   
2021-07-06 20:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/507 [^]
(0130334)
hgbot   
2021-07-08 20:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/251 [^]
(0130335)
hgbot   
2021-07-09 07:06   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/507 [^]
(0130336)
hgbot   
2021-07-09 07:06   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d0df2e410ec9f1d0e5d7fc44b220c49497af4297
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 2021-07-08T18:19:46+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d0df2e410ec9f1d0e5d7fc44b220c49497af4297 [^]

Fixes BUG-0047282: JIRA 2119 - Integration in BO - transaction
linked to first user connected

**Update createdBy with logged in user when editable
ticket is processed.

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/CompleteTicketUtils.js
---
(0130337)
hgbot   
2021-07-09 07:06   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 66a01ab4dc125baefac55304d355683754da0202
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 2021-07-08T18:19:46+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/66a01ab4dc125baefac55304d355683754da0202 [^]

Related To BUG-0047282: JIRA 2119 - Integration in BO -
transaction linked to first user connected

**Set updatedBy with logged in user when ticket is processed.

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/CompleteTicketUtils.js
---
(0130338)
hgbot   
2021-07-09 07:06   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 8f641514de6a0d99cef2088270a64189a7e45c2b
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 2021-07-08T18:18:49+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/8f641514de6a0d99cef2088270a64189a7e45c2b [^]

Related To BUG-0047282: JIRA 2119 - Integration in BO -
transaction linked to first user connected

**Set context user using request record property updatedBy if it
exists

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
---
(0130339)
hgbot   
2021-07-09 07:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/251 [^]