Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014297Openbravo ERP03. Procurement managementpublic2010-08-25 11:022010-09-13 12:38
networkb 
sivaraman 
highminoralways
closedfixed 
5
2.50MP20 
2.50MP23 
Core
No
0014297: Is possible to create a document for an organization with a warehouse defined for another organization
Is possible to create a document for an organization with a warehouse defined for another different organization
1. Go to Warehouse Management || Setup || Warehouse and Storage Bins || Warehouse and define:
  * Secondary Warehouse only for Organization A
  * Main Warehouse only for Organization B
2. Go to Procurement Management || Transactions || Purchase Order || Header : create new record and choose Organization A --> realize that only Secondary Warehouse appears available in Warehouse combo
3. In the same Order choose Partner McGiver --> realize that both Main and Secondary Warehouse appears available in Warehouse combo and Main Warehouse is selected by default.
4. Save the record and realize that a document for Organization A with a non valid Warehouse has been created
No tags attached.
Issue History
2010-08-25 11:02networkbNew Issue
2010-08-25 11:02networkbAssigned To => adrianromero
2010-08-26 13:06adrianromeroStatusnew => scheduled
2010-08-26 13:06adrianromerofix_in_branch => pi
2010-09-07 10:31sivaramanAssigned Toadrianromero => sivaraman
2010-09-07 10:39hgbotCheckin
2010-09-07 10:39hgbotNote Added: 0030729
2010-09-07 10:39hgbotStatusscheduled => resolved
2010-09-07 10:39hgbotResolutionopen => fixed
2010-09-07 10:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/85e7ba79d184d39537481bfde41c1f8e18fbcb70 [^]
2010-09-07 11:01sivaramanNote Added: 0030733
2010-09-07 18:32hudsonbotCheckin
2010-09-07 18:32hudsonbotNote Added: 0030785
2010-09-13 08:45sureshbabuNote Added: 0030967
2010-09-13 08:45sureshbabuStatusresolved => closed
2010-09-13 12:38anonymoussf_bug_id0 => 3065183

Notes
(0030729)
hgbot   
2010-09-07 10:39   
Repository: erp/devel/pi
Changeset: 85e7ba79d184d39537481bfde41c1f8e18fbcb70
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Tue Sep 07 14:08:29 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/85e7ba79d184d39537481bfde41c1f8e18fbcb70 [^]

Fixes issue 14297: Is possible to create a document for an organization with a warehouse defined for another organization

Solution:
SE_Order_BPartner is the callout which is responsible for populating warehouse field. There, I just followed the same way of populating warehouse as it's used in ComboReloads294 (callout for Organization).

Impacts:
As SE_Order_BPartner is used in both Purchase Order and Sales Order windows, This modified functionality can also be seen in Sales Order too.

---
M src/org/openbravo/erpCommon/ad_callouts/SE_Order_BPartner.java
---
(0030733)
sivaraman   
2010-09-07 11:01   
Steps to test:

1. Go to Warehouse Management || Setup || Warehouse and Storage Bins || Warehouse
2. Define as follows
     Secondary Warehouse only for Organization A
     Main Warehouse only for Organization B
3. Go to Procurement Management || Transactions || Purchase Order
4. Create new record and choose Organization A
5. Realize that only Secondary Warehouse appears available in Warehouse field
6. Choose McGiver in Business Partner and verify if Secondary Warehouse still appears in Warehouse field

* Also verify the same in Sales Order as the fix is common for both
(0030785)
hudsonbot   
2010-09-07 18:32   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/85e7ba79d184 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/97993c1961c4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18352.obx [^]
(0030967)
sureshbabu   
2010-09-13 08:45   
verified in Purchase order window, system responds as expected