You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Divesh Dutta (JIRA)" <ji...@apache.org> on 2014/11/15 13:56:34 UTC

[jira] [Updated] (OFBIZ-5766) Error when adding/modifying a task to a Production Run - field type error

     [ https://issues.apache.org/jira/browse/OFBIZ-5766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Divesh Dutta updated OFBIZ-5766:
--------------------------------
    Attachment: OFBIZ-5766.patch

Here is the patch which fix this issue. Here we are getting estimatedSetupMillis as BigDecimal in service implementation of addProductionRunRoutingTask service and converting it into Double using doubleValue method of BigDecimal class. 

This fixed the issue. After fixing this issue, also found error in getEstimatedTaskTime method of ProductionRun class. Fixed that as well in this patch. 

Also fixed code in Update Production run routing task process as same error was in returned in that process. 

> Error when adding/modifying a task to a Production Run - field type error
> -------------------------------------------------------------------------
>
>                 Key: OFBIZ-5766
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5766
>             Project: OFBiz
>          Issue Type: Bug
>          Components: manufacturing
>    Affects Versions: Release Branch 13.07, Trunk
>            Reporter: Guillaume Sigoigne
>            Assignee: Nicolas Malin
>            Priority: Trivial
>         Attachments: Add-Task-To-Production-Run-13.07.patch, Add-Task-To-Production-Run-trunk.patch, OFBIZ-5766.patch
>
>
> You select a production run, then you click on "Task" tab to list tasks included in the production run.
> You are not able to add a new task or modify any of already included tasks because of field type error.
> Following events and services are waiting estimatedMilliseconds and estimatedSetupMillis as BigDecimal instead of Double.
> Events : 
> ProductionRunSimpleEvents.editProductionRunRoutingTask
> ProductionRunSimpleEvents.addProductionRunRoutinsTask
> Services : 
> services_production_run.addProductionRunRoutingTask
> services_production_run.checkUpdatePrunRoutingTask
> Add-Task-To-Production-Run (13.07 and trunk releases) change fields type from BigDecimal to Double.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)