Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027361Openbravo ERP04. Warehouse managementpublic2014-08-18 16:312014-12-30 23:25
VictorVillar 
reinaldoguerra 
immediatemajoralways
closedfixed 
5
pi 
3.0PR15Q1 
pramakrishnan
Core
No
0027361: Bill of Material production should change the way that populate the storage bin
Bill of Material production should change the way that populate the storage bin
As group admin role,
Go to Warehouse and Storage bin window,
 select Región Norte storage bin as default (RN 1-0-0)
log out and log in.

Go to Bill Of Material Production window.
  Create a new register for Organization España Región Sur
 Navigate to Production PLan tab
   realise that the storage bin is populated automatically


Please check how the query takes the storage bin in

function fillSessionArguments() in LoginUtils.java:

      if (ds != null && ds.length > 0) {
        for (int i = 0; i < ds.length; i++) {
          String value = DefaultValuesData.select(conn, ds[i].columnname, ds[i].tablename,
              Utility.getContext(conn, vars, "#User_Client", "LoginHandler"),
              Utility.getContext(conn, vars, "#User_Org", "LoginHandler"));
          if (ds[i].tablename.equals("C_DocType"))
            vars.setSessionValue("#C_DocTypeTarget_ID", value);
          vars.setSessionValue("#" + ds[i].columnname, value);
        }
      }
This is wrong, the storage bin should be the one define as Default for the organization in the header of any document.
No tags attached.
Issue History
2014-08-18 16:31VictorVillarNew Issue
2014-08-18 16:31VictorVillarAssigned To => jonalegriaesarte
2014-08-18 16:31VictorVillarModules => Core
2014-08-18 16:31VictorVillarTriggers an Emergency Pack => No
2014-08-18 16:32VictorVillarIssue Monitored: networkb
2014-09-08 11:45VictorVillarNote Added: 0070008
2014-09-08 11:46VictorVillarProposed Solution updated
2014-09-08 11:58VictorVillarNote Deleted: 0070008
2014-10-02 11:03jonalegriaesarteAssigned Tojonalegriaesarte => AtulOpenbravo
2014-10-02 11:03jonalegriaesarteResolution time => 1413324000
2014-10-02 11:03jonalegriaesarteTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-11-03 22:56reinaldoguerraAssigned ToAtulOpenbravo => reinaldoguerra
2014-11-03 22:56reinaldoguerraStatusnew => scheduled
2014-11-05 02:33reinaldoguerraNote Added: 0071412
2014-11-19 07:29hgbotCheckin
2014-11-19 07:29hgbotNote Added: 0071797
2014-11-19 07:29hgbotStatusscheduled => resolved
2014-11-19 07:29hgbotResolutionopen => fixed
2014-11-19 07:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/331b598e6c620bc47f2e15380b06dea7e75e7018 [^]
2014-11-19 07:33pramakrishnanReview Assigned To => pramakrishnan
2014-11-19 07:33pramakrishnanNote Added: 0071799
2014-11-19 07:33pramakrishnanStatusresolved => closed
2014-12-30 23:25hudsonbotCheckin
2014-12-30 23:25hudsonbotNote Added: 0073082

Notes
(0071412)
reinaldoguerra   
2014-11-05 02:33   
Test plan used:
1- Login into Openbravo ERP
2- Go to Warehouse and Storage bin window
3- Select a Region Norte warehouse and then go to storage bin lines
4- Check RN 1-0-0 default flag.
5- Log out and log in
6- Go to Bill Of Material Production window
7- Create a new register for Organization España Región Sur
8- Navigate to Production PLan tab
9- Create a new one and realise that the storage bin is populated depending on selected organization in the header.
10- Now go to Warehouse and Storage bin window again
11- Select a España Región Sur warehouse and then go again to storage bin lines
12- Check RS 2-0-0 default flag.
13- Go to Bill Of Material Production window and select previous created record
14- Navigate to Production PLan tab
15- Create a new one and realise that the storage bin selected is RS 2-0-0 which is defined as default for organization's warehouse.
(0071797)
hgbot   
2014-11-19 07:29   
Repository: erp/devel/pi
Changeset: 331b598e6c620bc47f2e15380b06dea7e75e7018
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Tue Nov 04 15:15:12 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/331b598e6c620bc47f2e15380b06dea7e75e7018 [^]

Fixed bug 27361: BOM production should change how to populates the storage bin.

Default value logic for storage bin column in Production PLan tab of Bill Of Material Production window, was changed to set the storage bin value depending on header organization's warehouse.
Storage bins defined as default have priority so when new Production Plan is created, the default storage bin for organization's warehouse is shown.

---
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0071799)
pramakrishnan   
2014-11-19 07:33   
Code Review + Testing - OK.
(0073082)
hudsonbot   
2014-12-30 23:25   
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/6525fe229e06 [^]
Maturity status: Test