Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0042870 | Openbravo ERP | 04. Warehouse management | public | 2020-01-14 12:43 | 2020-01-20 12:38 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | AtulOpenbravo | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR19Q3.4 | Fixed in Version | 3.0PR19Q3.4 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | dmiguelez | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | 14168 | |||||||||||
Regression level | Production - Confirmed Stable | |||||||||||
Regression date | ||||||||||||
Regression introduced in release | 3.0PR19Q3 | |||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/e4ecb0f34be7fcdd0626f218bf39fe5573ea0fff [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0042870: Inventory Amount Update process tries to create Physical Inventories in organizations no trx allowed | |||||||||||
Description | The Inventory Amount Update process generates closing and init inventories to adjust the cost. These inventories as per fix of issue 0040539 are created on the organization where the warehouse adjusted is created. If the warehouse is defined in a organization of type "Organization" that do not allow transaction the process fails. As it is trying to generate the Physical Inventories on that organization. In this scenario it should search the first parent organization that allows transactions (business unit or legal entity) and generate the physical inventories on it. | |||||||||||
Steps To Reproduce | On F&B client. 1. Create a new organization (name: Org A) child of F&B España, S.A of type Organization. 2. Create a new organization (name: Generic) child of "Org A" of type Generic. 3. Create a new warehouse (name: Test WH) on organization "Org A" 3. Create a new Product (name: Test) of type item and stocked. 4. Create a physical inventory to initialize the stock of the product "Test" on the warehouse "Test WH" set a cost of 10 EUR before processing the inventory. 5. Ensure that the coting background process is executed and that the transaction of the physical inventory is calculated. 6. Create a new Inventory Amount Update headed on "F&B España, S.A" 7. Create a new line of product "Test" and change the cost to 15. 8. Process the Inventory Amount Update. The process fails as it is trying to create an inventory on the organization "Org A" which is not allowed. | |||||||||||
Proposed Solution | In case the warehouse is defined on a organization that does not allow transactions the process should search the first parent organization that allow transactions and create the physical inventory on it. This parent organization can be a Business Unit or the Legal Organization. Initialize a OrganziationStructureProvider and calculate the org as: invOrg = osp.getLegalEntityOrBusinessUnit(closeInv.getWarehouse().getOrganization()); | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-01-14 16:48 | AtulOpenbravo | Type | defect => backport | |||||||||
2020-01-14 16:48 | AtulOpenbravo | Target Version | => 3.0PR19Q3.4 | |||||||||
2020-01-15 20:14 | AtulOpenbravo | Note Added: 0116912 | ||||||||||
2020-01-17 05:22 | AtulOpenbravo | Note Added: 0116955 | ||||||||||
2020-01-20 12:27 | hgbot | Checkin | ||||||||||
2020-01-20 12:27 | hgbot | Note Added: 0117058 | ||||||||||
2020-01-20 12:27 | hgbot | Status | scheduled => resolved | |||||||||
2020-01-20 12:27 | hgbot | Resolution | open => fixed | |||||||||
2020-01-20 12:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR19Q3.4/rev/1d4371e10299996a651ce92cd969bcb2013ab9a8 [^] | |||||||||
2020-01-20 12:27 | hgbot | Checkin | ||||||||||
2020-01-20 12:27 | hgbot | Note Added: 0117059 | ||||||||||
2020-01-20 12:38 | dmiguelez | Review Assigned To | => dmiguelez | |||||||||
2020-01-20 12:38 | dmiguelez | Note Added: 0117066 | ||||||||||
2020-01-20 12:38 | dmiguelez | Status | resolved => closed | |||||||||
2020-01-20 12:38 | dmiguelez | Fixed in Version | => 3.0PR19Q3.4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|