Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0022763 | Openbravo ERP | 05. Production management | public | 2013-01-10 11:15 | 2013-03-05 13:29 | |||||||
Reporter | VictorVillar | |||||||||||
Assigned To | ngarcia | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | pi | |||||||||||
Target Version | 3.0MP21 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | VictorVillar | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | 18563 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0022763: Wrong calculation of Cost value on Sales invoice dimensional Report | |||||||||||
Description | Wrong calculation of Cost value on Sales invoice dimensional Report. When there are invoices for a product which their cost has not been calculated and they have different lines net amounts, the cost is calculated in a proportional manner from transactions with cost, and the formula used is: SUM(CONVCOST)*SUM(CONVAMOUNT)/SUM(COSTEDAMT) END AS CONVCOST Now the COSTEDAMT is calculated by the sum of all the line net amount for the invoices (transactions) which their cost has been calculated by the costing engine, but should be the sum of all the lines net amount of all the invoices. On the subquery ZZ, it is possible to check it | |||||||||||
Steps To Reproduce | As group admin role, Create two orders/shipments/invoices, for one product, with different line net amount. These transactions will have cost. Date: Today create three invoices without shipments associated, and different lines net amount. one invoice --> Date: today, the other two --> DAte: two days before Now it is possible to check on subquery ZZ of the ReportInvoiceCustomerDimensionalAnalysesJRData.java that the COSTEDAMT value is not correct, should be the sum of all the lines net amount of all the invoices grouped in this moment. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-01-10 11:15 | VictorVillar | New Issue | ||||||||||
2013-01-10 11:15 | VictorVillar | Assigned To | => dmiguelez | |||||||||
2013-01-10 11:15 | VictorVillar | Modules | => Core | |||||||||
2013-01-10 11:15 | VictorVillar | OBNetwork customer | => Yes | |||||||||
2013-01-10 11:15 | VictorVillar | Support ticket | => 18563 | |||||||||
2013-01-10 11:15 | VictorVillar | Resolution time | => 1359846000 | |||||||||
2013-01-10 11:15 | VictorVillar | Triggers an Emergency Pack | => No | |||||||||
2013-01-10 11:16 | VictorVillar | Issue Monitored: networkb | ||||||||||
2013-01-10 18:42 | jonalegriaesarte | Assigned To | dmiguelez => ngarcia | |||||||||
2013-02-04 16:52 | jonalegriaesarte | Target Version | 3.0MP20 => 3.0MP21 | |||||||||
2013-02-20 18:39 | hgbot | Checkin | ||||||||||
2013-02-20 18:39 | hgbot | Note Added: 0056652 | ||||||||||
2013-02-20 18:39 | hgbot | Status | new => resolved | |||||||||
2013-02-20 18:39 | hgbot | Resolution | open => fixed | |||||||||
2013-02-20 18:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9cc2d186f5adfc50cbb3c22501524e195b357938 [^] | |||||||||
2013-02-21 17:48 | hudsonbot | Checkin | ||||||||||
2013-02-21 17:48 | hudsonbot | Note Added: 0056700 | ||||||||||
2013-03-01 13:21 | ioritzCia | Relationship added | related to 0022756 | |||||||||
2013-03-05 13:29 | VictorVillar | Review Assigned To | => VictorVillar | |||||||||
2013-03-05 13:29 | VictorVillar | Note Added: 0057047 | ||||||||||
2013-03-05 13:29 | VictorVillar | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|