Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025270Openbravo ERP07. Sales managementpublic2013-12-04 11:042014-02-12 18:28
VictorVillar 
gauravdeshmukh 
urgentmajoralways
closedfixed 
5
pi 
3.0PR14Q2 
pramakrishnan
Core
No
0025270: It is possible to have different warehouses between the Sales Order header and the Sales order lines
It is possible to have different warehouses between the Sales Order header and the Sales order lines
As group admin role,
Go to Sales order window
 Create a new register for org: España
   warehouse: Región norte
Create one line and save

Go to the header again and change the warehouse, realise that the m_warehouse_id in the lines has not updated with the new warehouse header value.
Do not use a simple trigger.
It should be applied the same logic as in the promised delivery date
No tags attached.
related to defect 00248703.0PR14Q2 closed gauravdeshmukh Create shipment from orders does not respect the warehouse defined in the sales order when the process creates the shipment 
Issue History
2013-12-04 11:04VictorVillarNew Issue
2013-12-04 11:04VictorVillarAssigned To => dmiguelez
2013-12-04 11:04VictorVillarModules => Core
2013-12-04 11:04VictorVillarResolution time => 1389740400
2013-12-04 11:04VictorVillarTriggers an Emergency Pack => No
2013-12-05 12:26VictorVillarIssue Monitored: networkb
2013-12-10 11:21VictorVillarProposed Solution updated
2013-12-10 11:21VictorVillarAssigned Todmiguelez => VictorVillar
2013-12-10 11:21VictorVillarAssigned ToVictorVillar => jonalegriaesarte
2013-12-10 11:22VictorVillarProposed Solution updated
2014-01-02 12:38jonalegriaesarteTarget Version3.0MP31 => 3.0MP32
2014-01-07 12:51jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-01-08 07:35pramakrishnanRelationship addedrelated to 0024870
2014-01-08 07:35pramakrishnanAssigned Topramakrishnan => gauravdeshmukh
2014-01-20 06:52hgbotCheckin
2014-01-20 06:52hgbotNote Added: 0063523
2014-01-20 06:52hgbotStatusnew => resolved
2014-01-20 06:52hgbotResolutionopen => fixed
2014-01-20 06:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/16607feff4249d31e079324f1f261acd0b45d09a [^]
2014-01-20 07:05gauravdeshmukhNote Added: 0063524
2014-01-20 07:31gauravdeshmukhStatusresolved => new
2014-01-20 07:31gauravdeshmukhResolutionfixed => open
2014-01-20 07:32gauravdeshmukhNote Edited: 0063524bug_revision_view_page.php?bugnote_id=0063524#r5349
2014-01-20 07:41pramakrishnanStatusnew => scheduled
2014-01-20 07:41pramakrishnanfix_in_branch => pi
2014-01-20 07:41pramakrishnanStatusscheduled => resolved
2014-01-20 07:41pramakrishnanResolutionopen => fixed
2014-01-20 07:41pramakrishnanReview Assigned To => pramakrishnan
2014-01-20 07:41pramakrishnanNote Added: 0063525
2014-01-20 07:41pramakrishnanStatusresolved => closed
2014-02-12 18:28hudsonbotCheckin
2014-02-12 18:28hudsonbotNote Added: 0064090

Notes
(0063523)
hgbot   
2014-01-20 06:52   
Repository: erp/devel/pi
Changeset: 16607feff4249d31e079324f1f261acd0b45d09a
Author: Gaurav Deshmukh <gaurav.deshmukh <at> openbravo.com>
Date: Wed Jan 15 17:49:56 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/16607feff4249d31e079324f1f261acd0b45d09a [^]

Fixes Issue 25270:It is possible to have different warehouses btw the SO Header and line

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/event/OrderEventHandler.java
---
(0063524)
gauravdeshmukh   
2014-01-20 07:05   
(edited on: 2014-01-20 07:32)
As group admin role
-Go to Sales order window
-Create a new register for org: España warehouse: Región norte
-Create one line and save
-Change the warehouse in the header
-Check that the warehouse in the header and lines are the same

Now,
-Go to Preference window and add the property "DoNotSyncWarehouse" with the value "Y"
-Go to Sales order window
-Create a new register for org: España warehouse: Región norte
-Create one line and save
-Change the warehouse in the header
-Notice that the warehouse in the header and the lines are not synced

When the warehouse are different in the lines and the header, the shipment will be created with line's warehouse.
Refer issue https://issues.openbravo.com/view.php?id=24870 [^]

(0063525)
pramakrishnan   
2014-01-20 07:41   
Code Review + Testing - OK.
(0064090)
hudsonbot   
2014-02-12 18:28   
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/d1a5bb862230 [^]
Maturity status: Test