Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019153
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 05. Production managementminoralways2011-11-23 15:552012-01-04 11:08
ReportermaiteView Statuspublic 
Assigned Tojonalegriaesarte 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branch2.50Fixed in SCM revision5d67930d2f9e
ProjectionnoneETAnoneTarget Version2.50MP38
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019153: Error in Production Cost Report query

DescriptionError in Production Cost Report query
Steps To ReproduceRealize that ReportProductionCost_data.xsql, in "selectMaterial" query, in "rpn" subquery is multiplying by "pl.MovementQty" when calculating "CalcCost", and it should not.
Proposed Solutionsubstitute "CalcCost" in "rpn" subquery by:

SUM(C_CURRENCY_CONVERT(pl.CalcCost, ?, ?, TO_DATE(p.movementdate), null, pl.ad_client_id, pl.ad_org_id))/SUM(pl.MovementQty) AS CalcCost

instead of

SUM(pl.MovementQty*C_CURRENCY_CONVERT(pl.CalcCost, ?, ?, TO_DATE(p.movementdate), null, pl.ad_client_id, pl.ad_org_id))/SUM(pl.MovementQty) AS CalcCost
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00191523.0MP7 closedjecharri Error in Production Cost Report query 

-  Notes
(0044103)
hgbot (developer)
2012-01-03 18:17

Repository: erp/stable/2.50
Changeset: 5d67930d2f9e84fe32790a58bea02170b4962aba
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Tue Jan 03 18:17:04 2012 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/5d67930d2f9e84fe32790a58bea02170b4962aba [^]

Fixes issue 0019153: Error in Production Cost Report query

---
M src/org/openbravo/erpCommon/ad_reports/ReportProductionCost_data.xsql
---
(0044109)
maite (developer)
2012-01-04 11:08

verified

- Issue History
Date Modified Username Field Change
2011-11-23 16:14 maite Type defect => backport
2011-11-23 16:14 maite fix_in_branch => 2.50
2011-11-23 16:14 maite Target Version 3.0MP7 => 2.50MP38
2012-01-03 18:17 hgbot Checkin
2012-01-03 18:17 hgbot Note Added: 0044103
2012-01-03 18:17 hgbot Status scheduled => resolved
2012-01-03 18:17 hgbot Resolution open => fixed
2012-01-03 18:17 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/5d67930d2f9e84fe32790a58bea02170b4962aba [^]
2012-01-04 11:08 maite Note Added: 0044109
2012-01-04 11:08 maite Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker