Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026143Openbravo ERP05. Production managementpublic2014-04-02 12:312014-05-07 18:11
VictorVillar 
pramakrishnan 
urgentmajoralways
closedfixed 
5
pi 
3.0PR14Q3pi 
Core
No
0026143: Division by zero error calculating manufacturing transactions cost
Division by zero error calculating manufacturing transactions cost
As group admin role,
   Go to Product window:
      select one and check it as Production
      Define the Storage Bin in the Manufacturing tab
   Create a Manufacturing Cost Center and version
        Unit: per hour
        Cost: 8
   Create a Process plan
      P+: the product configured before
      Component Cost: 0
   Go to Work Requirement window:
      select the production plan
 Process it. Realise that the component cost is 0

Go to Work Effort window,
  Launch the production for the work requirement created.

Launch the costing background process, check the Process Monitor window: Division by Zero error appears.

In the MA_PRODUCTION_COST: in case that the v_CompCostSum variable is 0, the cost of the produced product (P+) should be 0.
No tags attached.
Issue History
2014-04-02 12:31VictorVillarNew Issue
2014-04-02 12:31VictorVillarAssigned To => dmiguelez
2014-04-02 12:31VictorVillarModules => Core
2014-04-02 12:31VictorVillarResolution time => 1398204000
2014-04-02 12:31VictorVillarTriggers an Emergency Pack => No
2014-04-02 12:54VictorVillarAssigned Todmiguelez => jonalegriaesarte
2014-04-02 12:54VictorVillarIssue Monitored: networkb
2014-04-03 10:29jonalegriaesarteTarget Version => PR14Q3
2014-04-08 19:27jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-04-09 13:13pramakrishnanStatusnew => scheduled
2014-04-09 13:13pramakrishnanfix_in_branch => pi
2014-04-09 13:34hgbotCheckin
2014-04-09 13:34hgbotNote Added: 0066268
2014-04-09 13:34hgbotStatusscheduled => resolved
2014-04-09 13:34hgbotResolutionopen => fixed
2014-04-09 13:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c0638f312efc0b1ba587a2d913b72a926c166e2d [^]
2014-04-11 18:35AtulOpenbravoNote Added: 0066363
2014-04-11 18:35AtulOpenbravoStatusresolved => closed
2014-04-11 18:35AtulOpenbravoFixed in Version => pi
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066906

Notes
(0066268)
hgbot   
2014-04-09 13:34   
Repository: erp/devel/pi
Changeset: c0638f312efc0b1ba587a2d913b72a926c166e2d
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Apr 09 17:01:17 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c0638f312efc0b1ba587a2d913b72a926c166e2d [^]

Fixes Issue 26143: Division by zero error calculating manufacturing transactions cost

---
M src-db/database/model/functions/MA_PRODUCTION_COST.xml
---
(0066363)
AtulOpenbravo   
2014-04-11 18:35   
Code Review + Testing OK
(0066906)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test