Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026666Openbravo ERP05. Production managementpublic2014-05-22 17:282014-07-02 16:47
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q33.0PR14Q3 
daniOpenbravo
Core
No
0026666: Cost wrongly distributed when more than one P+ are defined in the WR and 0 quantity is defined on the WE
Cost wrongly distributed when more than one P+ are defined in the WR and 0 quantity is defined on the WE
As group admin role:
   Create an Activity
   Create a Process Plan, Version and Operation
   Add two produced products to it and one consumed product
   Create a Work Requirement for that Process Plan
   Process it and create a Work Effort from it
   Add the Cost Center Version to the Production Run
   Change the quantity of one produced product to 0 in the Production Run lines
   Validate the Work Effort
   Launch the Costing Background process
   Navigate to the Transaction associated to the Production Run line with produced quantity and check the transaction cost is half the total cost of the work effort
   If you repeat the steps but instead of changing the quantity to 0 you delete the Production line, the transaction cost will be the total cost (which is correct)
No tags attached.
Issue History
2014-05-22 17:28ngarciaNew Issue
2014-05-22 17:28ngarciaAssigned To => jonalegriaesarte
2014-05-22 17:28ngarciaModules => Core
2014-05-22 17:28ngarciaResolution time => 1403560800
2014-05-22 17:28ngarciaTriggers an Emergency Pack => No
2014-05-22 17:28ngarciaIssue Monitored: networkb
2014-05-28 11:18jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-06-26 08:23AtulOpenbravoAssigned Topramakrishnan => AtulOpenbravo
2014-06-26 08:24AtulOpenbravoStatusnew => scheduled
2014-06-26 08:24AtulOpenbravofix_in_branch => pi
2014-07-01 12:51hgbotCheckin
2014-07-01 12:51hgbotNote Added: 0068480
2014-07-01 12:51hgbotStatusscheduled => resolved
2014-07-01 12:51hgbotResolutionopen => fixed
2014-07-01 12:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4ed38c38dea25b5867ae33dc056387d811051e6c [^]
2014-07-01 12:54daniOpenbravoReview Assigned To => daniOpenbravo
2014-07-01 12:54daniOpenbravoNote Added: 0068481
2014-07-01 12:54daniOpenbravoStatusresolved => closed
2014-07-01 12:54daniOpenbravoFixed in Version => PR14Q3
2014-07-02 16:47hudsonbotCheckin
2014-07-02 16:47hudsonbotNote Added: 0068509

Notes
(0068480)
hgbot   
2014-07-01 12:51   
Repository: erp/devel/pi
Changeset: 4ed38c38dea25b5867ae33dc056387d811051e6c
Author: Daniel Ruiz <daniel.ruiz <at> openbravo.com>
Date: Tue Jul 01 12:49:36 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4ed38c38dea25b5867ae33dc056387d811051e6c [^]

Fixes issue 26666: wrong cost when more than one P+ and 0 quantity on WE

---
M src-db/database/model/functions/MA_PRODUCTION_COST.xml
M src/org/openbravo/erpCommon/ad_forms/DocLineProduction_data.xsql
---
(0068481)
daniOpenbravo   
2014-07-01 12:54   
Verified.
(0068509)
hudsonbot   
2014-07-02 16:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/e8fdcd7d974b [^]
Maturity status: Test