Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019153 | Openbravo ERP | 05. Production management | public | 2011-11-23 15:55 | 2012-01-04 11:08 |
|
Reporter | maite | |
Assigned To | jonalegriaesarte | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 2.50MP38 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 13256 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019153: Error in Production Cost Report query |
Description | Error in Production Cost Report query |
Steps To Reproduce | Realize that ReportProductionCost_data.xsql, in "selectMaterial" query, in "rpn" subquery is multiplying by "pl.MovementQty" when calculating "CalcCost", and it should not. |
Proposed Solution | substitute "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 |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0019152 | 3.0MP7 | closed | jecharri | Error in Production Cost Report query |
|
Attached Files | |
|
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 |