Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0019152 | Openbravo ERP | 05. Production management | public | 2011-11-23 15:55 | 2011-12-22 03:53 |
|
| Reporter | maite | |
| Assigned To | jecharri | |
| Priority | high | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | 3.0MP7 | Fixed in Version | 3.0MP7 | |
| 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 | 0019152: 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 | | depends on | backport | 0019153 | 2.50MP38 | closed | jonalegriaesarte | Error in Production Cost Report query |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2011-11-23 15:55 | maite | New Issue | |
| 2011-11-23 15:55 | maite | Assigned To | => jonalegriaesarte |
| 2011-11-23 15:55 | maite | Modules | => Core |
| 2011-11-23 15:55 | maite | OBNetwork customer | => Yes |
| 2011-11-23 15:55 | maite | Support ticket | => 13256 |
| 2011-11-23 15:55 | maite | Issue Monitored: networkb | |
| 2011-11-23 16:14 | maite | Status | new => scheduled |
| 2011-11-23 16:14 | maite | fix_in_branch | => pi |
| 2011-12-16 11:19 | jonalegriaesarte | Assigned To | jonalegriaesarte => jecharri |
| 2011-12-19 17:54 | hgbot | Checkin | |
| 2011-12-19 17:54 | hgbot | Note Added: 0043953 | |
| 2011-12-19 17:54 | hgbot | Status | scheduled => resolved |
| 2011-12-19 17:54 | hgbot | Resolution | open => fixed |
| 2011-12-19 17:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6a8a0f555ee54cb71b7056cbebc5ab6f96d8bbb7 [^] |
| 2011-12-20 11:35 | maite | Note Added: 0043971 | |
| 2011-12-20 11:35 | maite | Status | resolved => closed |
| 2011-12-20 11:35 | maite | Fixed in Version | => 3.0MP7 |
| 2011-12-22 03:53 | hudsonbot | Checkin | |
| 2011-12-22 03:53 | hudsonbot | Note Added: 0043993 | |