Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026893Openbravo ERP08. Project and service managementpublic2014-06-18 01:042014-12-30 23:22
ngarcia 
reinaldoguerra 
highminoralways
closedfixed 
5
 
3.0PR15Q1pi 
daniOpenbravo
Core
No
0026893: Wrong warehouse selected when creating a sales order from an expense
Wrong warehouse selected when creating a sales order from an expense
As group admin role:
   Login with España Región Norte warehouse
   Create a product with Product Type = Expense for *
   Create an Expense Sheet for F&B US East Coast
   Add a line to it marked to be reinvoiced and add a business partner and a net unit price
   Process it
   Launch the Create Sales Orders from Expenses process
   Check the following message is shown:
      Sales Order No. <> has been created -> The Warehouse of the document does not belong to the selected Organization
   If you navigate to the sales order, you will observe the warehouse in the header is the one you are logged with
The m_warehouse_id column of s_timeexpense table has the value of the warehouse you are login with when you save the record in the Expense Sheet window, which is incorrect. You should check it through database as the associated field is inactive.
No tags attached.
blocks defect 0027876 new Triage Omni OMS Warehouse is not changed when processing Expense Sheet. 
Issue History
2014-06-18 01:04ngarciaNew Issue
2014-06-18 01:04ngarciaAssigned To => jonalegriaesarte
2014-06-18 01:04ngarciaModules => Core
2014-06-18 01:04ngarciaResolution time => 1406844000
2014-06-18 01:04ngarciaTriggers an Emergency Pack => No
2014-06-18 01:04ngarciaIssue Monitored: networkb
2014-06-30 13:45jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-06-30 13:45jonalegriaesarteTarget VersionPR14Q3 => PR14Q4
2014-08-11 14:57daniOpenbravoAssigned Topramakrishnan => daniOpenbravo
2014-08-11 14:57daniOpenbravoStatusnew => scheduled
2014-09-08 11:16daniOpenbravoReview Assigned To => AtulOpenbravo
2014-09-29 16:12jonalegriaesarteTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-10-01 06:52reinaldoguerraAssigned TodaniOpenbravo => reinaldoguerra
2014-10-01 06:52reinaldoguerraNote Added: 0070595
2014-10-15 12:53hgbotCheckin
2014-10-15 12:53hgbotNote Added: 0070952
2014-10-15 12:53hgbotStatusscheduled => resolved
2014-10-15 12:53hgbotResolutionopen => fixed
2014-10-15 12:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3886667705c24877ddf5521be25ab17a3f9f228a [^]
2014-10-15 12:56daniOpenbravoReview Assigned ToAtulOpenbravo => daniOpenbravo
2014-10-15 12:56daniOpenbravoNote Added: 0070953
2014-10-15 12:56daniOpenbravoStatusresolved => closed
2014-10-15 12:56daniOpenbravoFixed in Version => pi
2014-10-15 13:24daniOpenbravoRelationship addedblocks 0027876
2014-12-30 23:22hudsonbotCheckin
2014-12-30 23:22hudsonbotNote Added: 0072935

Notes
(0070595)
reinaldoguerra   
2014-10-01 06:52   
1- Login into Openbravo ERP with España Región Norte warehouse
2- Create a product with Product Type = Expense for *
3- Create an Expense Sheet for F&B US East Coast
4- Add a line to it, marked to be reinvoiced, add a business partner and a net unit price
5- Process it
6- Launch the Create Sales Orders from Expenses process
7- A shipment and a sales order will be created successfully.
(0070952)
hgbot   
2014-10-15 12:53   
Repository: erp/devel/pi
Changeset: 3886667705c24877ddf5521be25ab17a3f9f228a
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Tue Sep 30 21:55:34 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/3886667705c24877ddf5521be25ab17a3f9f228a [^]

Fixed bug 26893: Wrong warehouse when creating a sales order from an expense.

An auxiliary input was added to associate the created expense sheet warehouse with the selected organization's warehouse.
Now when Create Sales Orders from Expenses process is launched, sales order is associated with the correct expense's warehouse.
Also the process throws an error message if the expense's organization does not have a default warehouse defined.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java
---
(0070953)
daniOpenbravo   
2014-10-15 12:56   
Verified.
(0072935)
hudsonbot   
2014-12-30 23:22   
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