Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040324Openbravo ERP04. Warehouse managementpublic2019-03-05 16:222019-03-28 14:56
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR19Q2 
dmiguelez
Core
No
0040324: Bill Of Materials Production should take the stock from same warehouse than the storage bin defined in the Production Plan tab
Bill Of Materials Production should take the stock from same warehouse than the storage bin defined in the Production Plan tab
As group admin role:
   Create a product (BOM_PART) in F&B España, S.A
   Create a new product (BOM) in F&B España, S.A
   Set it as Bill Of Materials
   Add 1 unit of BOM_PART product in Bill Of Materials tab
   Verify BOM

   Increase the stock of BOM_PART product in a storage bin of 'España Región Sur' warehouse

   Create a Bill Of Materials Production for F&B España, S.A
   Add the BOM product, set a quantity and a storage bin of 'España Región Norte' warehouse in Production Plan tab
   Launch Create/Process Production process by selecting the option of
'Product quantity must be on stock'
   Check in I/O Products tab that the stock has been consumed from Region Sur warehouse and produced in Region Norte warehouse
   
No tags attached.
related to defect 0039945 closed rqueralta Retail Modules Get stock call of autbom does not include the process and warehouse ids 
depends on defect 0040450 closed AtulOpenbravo Openbravo ERP API Change: Create/Process Production process parameter to force use of warehouse of selected Storage Bin 
Issue History
2019-03-05 16:22ngarciaNew Issue
2019-03-05 16:22ngarciaAssigned To => Triage Finance
2019-03-05 16:22ngarciaModules => Core
2019-03-05 16:22ngarciaResolution time => 1553554800
2019-03-05 16:22ngarciaTriggers an Emergency Pack => No
2019-03-05 16:23ngarciaRelationship addedrelated to 0039945
2019-03-05 16:23ngarciaIssue Monitored: networkb
2019-03-05 17:29SandrahuguetAssigned ToTriage Finance => AtulOpenbravo
2019-03-11 15:18AtulOpenbravoStatusnew => scheduled
2019-03-22 19:09AtulOpenbravoNote Added: 0110597
2019-03-26 02:26AtulOpenbravoRelationship addeddepends on 0040450
2019-03-26 10:52AtulOpenbravoNote Added: 0110648
2019-03-27 11:37hgbotCheckin
2019-03-27 11:37hgbotNote Added: 0110676
2019-03-27 11:37hgbotStatusscheduled => resolved
2019-03-27 11:37hgbotResolutionopen => fixed
2019-03-27 11:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/685b7fc35b497482fcbd0e8fa531cab7229c031b [^]
2019-03-27 12:27dmiguelezReview Assigned To => dmiguelez
2019-03-27 12:27dmiguelezNote Added: 0110679
2019-03-27 12:27dmiguelezStatusresolved => closed
2019-03-27 12:27dmiguelezFixed in Version => 3.0PR19Q2
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110896

Notes
(0110597)
AtulOpenbravo   
2019-03-22 19:09   
Test Plan

- Login As F&B International group admin role:
- Create a product (BOM_PART) in F&B España, S.A
- Create a new product (BOM) in F&B España, S.A
   Set it as Bill Of Materials
   Add 1 unit of BOM_PART product in Bill Of Materials tab
   Verify BOM

- Increase the stock of BOM_PART product in a storage bin of 'España Región Sur' warehouse
- Create a Bill Of Materials Production for F&B España, S.A
- Add the BOM product, set a quantity and a storage bin of 'España Región Norte' warehouse in Production Plan tab
- Launch Create/Process Production process by selecting the option of
'Product quantity must be on stock' and set Force Use Of Warehouse Of Selected Storage Bin flag = Yes.
- Check in I/O Products tab that the stock has not been consumed from Region Sur warehouse and produced in Region Norte warehouse.

- Follow above all steps by selecting Force Use Of Warehouse Of Selected Storage Bin flag = No.
- Check in I/O Products tab that the stock has been consumed from Region Sur warehouse and produced in Region Norte warehouse.
(0110648)
AtulOpenbravo   
2019-03-26 10:52   
A new parameter forceUseOfWHOfSelectedLocator flag is added in Create/Process Production button process, this flag decides whether to prioritize warehouse of the selected storage bin in Production Plan to be used while calling m_get_stock_param. Hence this serves our two purposes.
1. Existing functionality can be achieved by default. (flag = No)
2. User can pick only stock of consumed product from the warehouse of storage bin set in Production Plan. (flag = Yes)
(0110676)
hgbot   
2019-03-27 11:37   
Repository: erp/devel/pi
Changeset: 685b7fc35b497482fcbd0e8fa531cab7229c031b
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Mar 26 09:56:06 2019 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/685b7fc35b497482fcbd0e8fa531cab7229c031b [^]

Fixes Issue 40324: Bill Of Materials Production should take
the stock from same warehouse than the storage bin defined
in the Production Plan tab

** New optional flag is provided in order to force use of warehouse
of selected storage bin in production plan to be used as priority
warehouse for all the production line for picking stock of prodcuts
to be consumed and produced ones.

---
M src-db/database/model/functions/M_PRODUCTION_RUN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_PROCESS_PARA.xml
---
(0110679)
dmiguelez   
2019-03-27 12:27   
Code Review + Testing Ok
(0110896)
hudsonbot   
2019-03-28 14:56   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b2fbc1588df4 [^]
Maturity status: Test