Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033402Openbravo ERP07. Sales managementpublic2016-06-29 22:062016-07-01 09:35
rbianchini 
Sanjota 
highmajorsometimes
closedfixed 
5
3.0PR16Q1.3 
3.0PR16Q33.0PR16Q3 
aferraz
Core
Production - Confirmed Stable
2015-10-28
3.0PR16Q1.3
https://code.openbravo.com/erp/devel/pi/rev/e1c26dc9a819 [^]
No
0033402: Wrong Storage Bin in Goods Receipt Lines
In some cases, when you create a goods receipt line the storage bin's defaul value don't belongs to the warehouse defined in the header.
It works fine in 15Q4.6 but don't in 16Q1.3 or 16Q2
1 - Log in ERP as Openbravo with the following configuration:
Role: The White Valley Group Admin
Client: The White Valley Group
Organization: Vall Blanca Store
Warehouse: Vall Blanca Store Warehouse

2 - Open the Goods Receipt window and create a new header (in form view) as follows:
Organization: Vall Blanca Store
Document Type: Spain MM Receipt
Warehouse: White Valley Spain Distribution Center
BP: Mountains and Snow S.L

3 - Save the header and create a new line in form view
4A - In 15Q4.6 The storage bin loaded as default is WVS/001 0-0-0 --> OK
4B - In 16Q1.3 and 16Q2 The storage bin loaded as default is CMS/001 0-0-0. The storage bin is wrong since it don't belongs to the White Valley Spain Distribution Center warehouse defined in the header


Steps to Reproduce with F & B Internation Group Admin Role:
1 - Log in ERP as Openbravo with the following configuration:
Role: F & B International group Admin
Client: F & B International group

2. - Open Warehouse and Storage bin:
--Create New Warehouse :
Organization : "F&B España, S.A"
Name : "Test"
Search Key : "Test"
Save
--Create Storage bin Under newly created warehouse "Test"
Search Key : "NewTestBin"

3 - Open the Goods Receipt window and create a new header (in form view) as follows:
Organization: "F&B España - Región Norte"
Warehouse: "Test"

4 - Save the header and create a new line in form view
Check that in Storage Bin field there is no default value means it's blank.

Note: It should show newly created "NewTestBin" in Storage Bin field.
Review why the default value OnHandLocatorDefault is not executing, since if you execute the OnHandLocatorDefault's query, it returns the correct value
No tags attached.
blocks defect 0033382 closed Sanjota Wrong Storage Bin in Goods Receipt Lines 
Issue History
2016-07-01 08:53aferrazTypedefect => backport
2016-07-01 08:53aferrazTarget Version => 3.0PR16Q3
2016-07-01 09:23hgbotCheckin
2016-07-01 09:23hgbotNote Added: 0088126
2016-07-01 09:23hgbotStatusscheduled => resolved
2016-07-01 09:23hgbotResolutionopen => fixed
2016-07-01 09:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3/rev/3f6e4a7da3623e394812e323bca9418193aa36a3 [^]
2016-07-01 09:35aferrazReview Assigned To => aferraz
2016-07-01 09:35aferrazNote Added: 0088131
2016-07-01 09:35aferrazStatusresolved => closed
2016-07-01 09:35aferrazFixed in Version => 3.0PR16Q3

Notes
(0088126)
hgbot   
2016-07-01 09:23   
Repository: erp/backports/3.0PR16Q3
Changeset: 3f6e4a7da3623e394812e323bca9418193aa36a3
Author: Sanjota <sanjota.nelagi <at> promantia.com>
Date: Thu Jun 30 18:04:33 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3/rev/3f6e4a7da3623e394812e323bca9418193aa36a3 [^]

Fixes issue 33402: Wrong Storage Bin in Goods Receipt Lines

In some cases, when you create a goods receipt line the storage bin's defaul value don't belongs to the warehouse defined in the header.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
---
(0088131)
aferraz   
2016-07-01 09:35   
Code review + Testing OK