Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025644Openbravo ERP05. Production managementpublic2014-02-03 15:242014-02-15 02:00
ngarcia 
pramakrishnan 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q33.0PR14Q2 
ngarcia
Core
No
0025644: Cannot create a work effort from a work requirement if operation time / quantity returns a repeating decimal value
Cannot create a work effort from a work requirement if operation time / quantity returns a repeating decimal value and the operation is defined as Create Standards
As group admin role:
   Create an Activity
   Create a Process Plan, Version, Operation and I/O Products
   Create a Work Requirement referring to the previously created Process Plan
   Create an Operation referring to the previously created Version:
      Quantity: 24
      Estimated Time: 1
      Create Standards: Y
   Click on the Create Work Effort button and check that the following error message appears:
      Non-terminating decimal expansion; no exact representable decimal result.
   
The error is launched in the following piece of code of the CreateWorkEffort.java function:

estimatedTime = wrOp.getEstimatedTime().divide(wrOp.getQuantity()).multiply(requeriedQty);

I think the division should be rounded
No tags attached.
Issue History
2014-02-03 15:24ngarciaNew Issue
2014-02-03 15:24ngarciaAssigned To => jonalegriaesarte
2014-02-03 15:24ngarciaModules => Core
2014-02-03 15:24ngarciaResolution time => 1395183600
2014-02-03 15:24ngarciaTriggers an Emergency Pack => No
2014-02-03 15:24ngarciaIssue Monitored: networkb
2014-02-03 15:35ngarciaProposed Solution updated
2014-02-03 16:26jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-02-03 17:12pramakrishnanStatusnew => scheduled
2014-02-03 17:12pramakrishnanfix_in_branch => pi
2014-02-10 10:08pramakrishnanReview Assigned To => ngarcia
2014-02-10 10:08pramakrishnanfix_in_branchpi =>
2014-02-10 10:10hgbotCheckin
2014-02-10 10:10hgbotNote Added: 0064025
2014-02-10 10:10hgbotStatusscheduled => resolved
2014-02-10 10:10hgbotResolutionopen => fixed
2014-02-10 10:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/618294c2a0b7891270a01fa647a76976cc3355f6 [^]
2014-02-12 17:43ngarciaStatusresolved => closed
2014-02-12 17:43ngarciaFixed in Version => 3.0MP32
2014-02-12 18:07ngarciaStatusclosed => new
2014-02-12 18:07ngarciaResolutionfixed => open
2014-02-12 18:07ngarciaFixed in Version3.0MP32 =>
2014-02-12 18:30hudsonbotCheckin
2014-02-12 18:30hudsonbotNote Added: 0064177
2014-02-13 16:32hgbotCheckin
2014-02-13 16:32hgbotNote Added: 0064230
2014-02-13 16:33pramakrishnanStatusnew => scheduled
2014-02-13 16:33pramakrishnanfix_in_branch => pi
2014-02-13 16:33pramakrishnanStatusscheduled => resolved
2014-02-13 16:33pramakrishnanFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/618294c2a0b7891270a01fa647a76976cc3355f6 [^] => https://code.openbravo.com/erp/devel/pi/rev/e510966c00fd0eed6979b3b63595d168c2919e47 [^]
2014-02-13 16:33pramakrishnanResolutionopen => fixed
2014-02-13 18:10ngarciaStatusresolved => closed
2014-02-13 18:10ngarciaFixed in Version => 3.0MP32
2014-02-15 02:00hudsonbotCheckin
2014-02-15 02:00hudsonbotNote Added: 0064275
2014-06-02 18:43caristuRelationship addedrelated to 0026763
2014-06-02 18:43caristuRelationship deletedrelated to 0026763

Notes
(0064025)
hgbot   
2014-02-10 10:10   
Repository: erp/devel/pi
Changeset: 618294c2a0b7891270a01fa647a76976cc3355f6
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Mon Feb 03 21:41:52 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/618294c2a0b7891270a01fa647a76976cc3355f6 [^]

Fixes Issue 25644: Cannot create a work effort from a work requirement

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateWorkEffort.java
---
(0064177)
hudsonbot   
2014-02-12 18:30   
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/d1a5bb862230 [^]
Maturity status: Test
(0064230)
hgbot   
2014-02-13 16:32   
Repository: erp/devel/pi
Changeset: e510966c00fd0eed6979b3b63595d168c2919e47
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Thu Feb 13 21:00:30 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e510966c00fd0eed6979b3b63595d168c2919e47 [^]

Related to Issue 25644: Cannot create a work effort from a work requirement if operation time / quantity returns a repeating decimal value

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateWorkEffort.java
---
(0064275)
hudsonbot   
2014-02-15 02:00   
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/90b0b23defc9 [^]
Maturity status: Test