Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011022Openbravo ERP04. Warehouse managementpublic2009-10-16 17:432009-10-26 18:56
networkb 
gorkaion 
immediateminoralways
closedno change required 
5
2.40MP3 
2.40MP11 
Core
No
0011022: Generate Average cost does not work properly if products have ad_client_id = 0
If products were registered into Application, in System client, generate average cost does not work properly (in fact, end dates, are not well calculated)
Create a product in System client with System Administrator role and create 2 clients with the initial client setup.

Create several shipments in client one and generate average costs.

Change to client two, generate several shipments and generate average costs.

Notice that when the same product has costs generated in both clients the dates are wrongly calculated.

No tags attached.
blocks defect 00110202.40MP11 closed gorkaion Generate Average cost does not work properly if products have ad_client_id = 0 
Issue History
2009-10-16 17:48gorkaionTypedefect => backport
2009-10-16 17:48gorkaionfix_in_branch => 2.40
2009-10-16 17:51hgbotCheckin
2009-10-16 17:51hgbotNote Added: 0021128
2009-10-16 17:51hgbotStatusscheduled => resolved
2009-10-16 17:51hgbotResolutionopen => fixed
2009-10-16 17:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/e99891d3e9f82aa87557d3cf854044b0cc71b8c7 [^]
2009-10-22 19:26psarobeTag Attached: main
2009-10-26 18:50psarobeTag Detached: main
2009-10-26 18:56plujanAssigned Torafaroda => gorkaion
2009-10-26 18:56plujanStatusresolved => new
2009-10-26 18:56plujanResolutionfixed => open
2009-10-26 18:56plujanStatusnew => closed
2009-10-26 18:56plujanNote Added: 0021378
2009-10-26 18:56plujanResolutionopen => no change required

Notes
(0021128)
hgbot   
2009-10-16 17:51   
Repository: erp/stable/2.40
Changeset: e99891d3e9f82aa87557d3cf854044b0cc71b8c7
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Fri Oct 16 17:48:48 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/e99891d3e9f82aa87557d3cf854044b0cc71b8c7 [^]

Fixed issue 11022. Added filters by ad_client_id in some queries.

---
M src-db/database/model/functions/GENERATE_AVERAGE_COSTS.xml
---
(0021378)
plujan   
2009-10-26 18:56   
Products can not be inserted with ad_client_id=0 since m_product access level is Client/Organization.
Bug is rejected and changeset is reverted.