Openbravo Issue Tracking System - Modules
View Issue Details
0045314ModulesAdvanced Warehouse Operationspublic2020-10-28 02:372020-11-04 12:43
lbressan 
AtulOpenbravo 
highmajoralways
closedfixed 
5
 
 
0045314: On the AWO frontend, when 2 different users initiate a boxing in same time, the reference generated is the same.
On the AWO frontend, when 2 different users initiate a boxing in same time, the reference generated is the same.
With 2 profile : AWOQAADMIN and AWO US E
In attachment 2 pictures to show the same reference on 2 different profile.
STEP 1 Login on the AWO mobile
STEP 2 Click on BOX in the main menu
STEP 3 Click on CREATE NEW REFERENCE
STEP 4 Select a reference type (Sequenced container)
STEP 5 See in the picture in attachment, the same reference is generated for both users.

Recreation steps on https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.warehouse.advancedwarehouseoperations/#tasks [^]
No tags attached.
causes defect 0045464 closed AtulOpenbravo AWO - Box numbers auto incremented twice 
zip Same Boxing Ref.zip (2,624,132) 2020-10-28 02:37
https://issues.openbravo.com/file_download.php?file_id=15051&type=bug
Issue History
2020-10-28 02:37lbressanNew Issue
2020-10-28 02:37lbressanAssigned To => Triage Finance
2020-10-28 02:37lbressanFile Added: Same Boxing Ref.zip
2020-10-28 02:37lbressanResolution time => 1605567600
2020-11-02 19:08AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2020-11-02 19:08AtulOpenbravoStatusnew => scheduled
2020-11-03 18:38AtulOpenbravoNote Added: 0124133
2020-11-03 18:46hgbotNote Added: 0124134
2020-11-04 12:43hgbotResolutionopen => fixed
2020-11-04 12:43hgbotStatusscheduled => closed
2020-11-04 12:43hgbotNote Added: 0124161
2020-11-04 12:43hgbotNote Added: 0124162
2021-01-12 09:11vmromanosRelationship addedcauses 0045464
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0124133)
AtulOpenbravo   
2020-11-03 18:38   
Test Plan
- Login AWO mobile with 2 profile : AWOQAADMIN and AWO US E in different browser and follow below steps simultaneously.
- Click on BOX in the main menu
- Click on CREATE NEW REFERENCE
- Select a reference type (Sequenced container)
- Realize that reference is created with different sequence for both users though they created reference simultaneously.
(0124134)
hgbot   
2020-11-03 18:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/merge_requests/11 [^]
(0124161)
hgbot   
2020-11-04 12:43   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: d3d7a622e41caa3512e71bd1ae6b78c88f55726e
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 2020-11-03T23:10:55+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/d3d7a622e41caa3512e71bd1ae6b78c88f55726e [^]

Fixes BUG-0045314: On the AWO frontend, when 2 different users
initiate a boxing in same time, the reference generated is the
same.

**Whenever sequence no is fetched for any reference type using
its document sequence, set updateNext flag as true so that next
seq is used for simultaneous reference being created by parallel
users.
**Used OBContext admin mode with flush() inorder to avoid write
access check for ADSequence entity.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/datasources/ReferencedInventoryTypeSequenceProvider.java
---
(0124162)
hgbot   
2020-11-04 12:43   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/merge_requests/11 [^]