Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027876Openbravo ERP08. Project and service managementpublic2014-10-15 13:232015-06-08 17:52
daniOpenbravo 
Triage Omni OMS 
highminoralways
newopen 
5
pi 
 
Core
No
0027876: Warehouse is not changed when processing Expense Sheet.
After receiving an error when launching "Create Sales Order from Expenses" (Error: There is no warehouse defined for expense organization) process, if user solves it adding a new Warehouse to Expense Sheet´s Organization, "Unprocess Expenses" and "Process Expenses" again, the same error will appear again.
As group admin role:
   Create a product with Product Type = Expense for *.
   Delete F&B US East Coast Organization´s warehouse. Be sure that there is no warehouse on hand now int that Organization.
   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:
      Error:
      Created: 0
      Expense Sheet No. XXXXXXX: There is no warehouse defined for expense organization.
   Try to solve the problem by adding the warehouse deleted on previous steps to F&B US East Coast Organization.
   Unprocess Expense Sheet.
   Process Expense Sheet again.
   Check that if we launch "Create Sales Order from Expenses" again, the same error message will appear.
The error message appears again because we have not saved the Expense Sheet record one more time, so database has m_warehouse_id=null for that record (as it was saved when there was no Warehouse defined for that Organization).

So, we should check when Processing Expense Sheet that, if that Expense Sheet record does not have a warehouse related, assign Expense sheet´s Organization Warehouse.
No tags attached.
depends on defect 00268933.0PR15Q1 closed reinaldoguerra Wrong warehouse selected when creating a sales order from an expense 
Issue History
2014-10-15 13:23daniOpenbravoNew Issue
2014-10-15 13:23daniOpenbravoAssigned To => dmiguelez
2014-10-15 13:23daniOpenbravoModules => Core
2014-10-15 13:23daniOpenbravoTriggers an Emergency Pack => No
2014-10-15 13:24daniOpenbravoRelationship addeddepends on 0026893
2014-12-22 17:06SandrahuguetTarget Version3.0PR15Q1 => 3.0PR15Q2
2015-03-30 18:21eduardo_ArgalTarget Version3.0PR15Q2 => 3.0PR15Q3
2015-04-14 12:48Triage FinanceAssigned Todmiguelez => Triage Finance
2015-06-08 17:52vmromanosTarget Version3.0PR15Q3 =>

There are no notes attached to this issue.