Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015070Openbravo ERP04. Warehouse managementpublic2010-10-28 15:132011-01-11 12:43
networkb 
adrianromero 
highmajoralways
closedno change required 
5
2.50MP22 
2.50MP25 
Core
No
0015070: Generate Average Costs per Organization
Generate Average Costs is not distinguishing between organizations.
1) Create a generic organization A as a child to a legal with accounting organization MAIN.
2) Create a warehouse A and storage bin A1 within organization A.
3) Create a generic organization B as a child to a legal with accounting organization MAIN.
4) Create a warehouse B and storage bin B1 within organization B.
5) Create a purchase order with a line for a product P and price 100 (that has Cost Type 'Average') in Warehouse A for organization A.
6) Create a purchase order with a line for a product P and price 200 (that has Cost Type 'Average') in Warehouse B for organization B.
7) Go to Pending Goods Receipt and process those 2 orders, each in its corresponding warehouse.
8) Run Generate Average Costs process.
9) Go to Product P, tab Costing an see the two lines: notice that the Cost has been calculating not distinguishing between organizations. The valid cost (one that has ending date = '31-12-9999' in DD-MM-YYYY format) for product P is 150.
No tags attached.
related to design defect 0012346 closed gorkaion Generate Average Costs per Organization 
depends on defect 0015604 closed adrianromero Generate Average Costs per Organization 
related to defect 00150072.50MP25 closed adrianromero the accounting of shipments don't obtain the correct costs per organization 
diff avgcostsbyorg.diff (23,156) 2010-11-08 18:25
https://issues.openbravo.com/file_download.php?file_id=3304&type=bug
Issue History
2010-10-28 15:13networkbNew Issue
2010-10-28 15:13networkbAssigned To => adrianromero
2010-10-28 15:13networkbIssue generated from0012346
2010-10-28 15:13networkbRelationship addedrelated to 0012346
2010-11-08 17:07adrianromeroNote Added: 0032475
2010-11-08 18:25adrianromeroFile Added: avgcostsbyorg.diff
2010-11-08 18:28adrianromeroNote Added: 0032482
2010-11-08 18:28adrianromeroStatusnew => closed
2010-11-08 18:28adrianromeroResolutionopen => no change required
2010-11-08 18:29adrianromeroRelationship addedrelated to 0015007
2010-11-09 22:46anonymoussf_bug_id0 => 3106264
2011-01-11 12:42adrianromeroTypedefect => backport
2011-01-11 12:43adrianromeroIssue cloned0015604
2011-01-11 12:43adrianromeroRelationship addeddepends on 0015604

Notes
(0032475)
adrianromero   
2010-11-08 17:07   
This issue is related to the following project: http://wiki.openbravo.com/wiki/Projects/Org_based_avg_costing [^]
(0032482)
adrianromero   
2010-11-08 18:28   
Openbravo ERP always calculate costs by client, not by organization. The attached diff adds a new cost option that allows to calculate costs by organization. This diff is part of the ongoing project http://wiki.openbravo.com/wiki/Projects/Org_based_avg_costing [^] but that will not be merged into the main branch until finished.

In the mean time, the attached diff does the job.