Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011020Openbravo ERP04. Warehouse managementpublic2009-10-16 17:432009-10-27 00:00
networkb 
gorkaion 
immediateminoralways
closedno change required 
5
2.40MP3 
2.40MP11 
Core
No
0011020: 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.

250MP8, main
related to defect 00107492.40MP11 closed gorkaion Generate average cost does not calculate properly end date 
depends on backport 00110222.40MP11 closed gorkaion Generate Average cost does not work properly if products have ad_client_id = 0 
Issue History
2009-10-16 17:43networkbNew Issue
2009-10-16 17:43networkbAssigned To => rafaroda
2009-10-16 17:47gorkaionProposed Solution updated
2009-10-16 17:47gorkaionRelationship addedrelated to 0010749
2009-10-16 17:48gorkaionStatusnew => scheduled
2009-10-16 17:48gorkaionAssigned Torafaroda => gorkaion
2009-10-16 17:48gorkaionfix_in_branch => pi
2009-10-16 17:52hgbotCheckin
2009-10-16 17:52hgbotNote Added: 0021129
2009-10-16 17:52hgbotStatusscheduled => resolved
2009-10-16 17:52hgbotResolutionopen => fixed
2009-10-16 17:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a96e3ff5ea0d550eb0154520deedd0cc97f05200 [^]
2009-10-22 19:26psarobeTag Attached: main
2009-10-22 19:33psarobeTag Attached: 250MP8
2009-10-26 18:53plujanStatusresolved => new
2009-10-26 18:53plujanResolutionfixed => open
2009-10-26 18:55plujanStatusnew => closed
2009-10-26 18:55plujanNote Added: 0021376
2009-10-26 18:55plujanResolutionopen => no change required
2009-10-27 00:00anonymoussf_bug_id0 => 2886772

Notes
(0021129)
hgbot   
2009-10-16 17:52   
Repository: erp/devel/pi
Changeset: a96e3ff5ea0d550eb0154520deedd0cc97f05200
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Fri Oct 16 17:49:59 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a96e3ff5ea0d550eb0154520deedd0cc97f05200 [^]

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

---
M src-db/database/model/functions/M_GENERATE_AVERAGE_COSTS.xml
---
(0021376)
plujan   
2009-10-26 18:55   
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.