[ 
https://issues.apache.org/jira/browse/OFBIZ-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547593
 ] 

Jacopo Cappellato commented on OFBIZ-1474:
------------------------------------------

The following logic will be added at the beginning of the service developed in 
OFBIZ-1473:

1) retrieve the WorkEffort record using the parameters.workEffortId
2) if (WorkEffort.workEffortTypeId == PROD_ORDER_TASK and 
WorkEffort.workEffortParentId is not empty) then select the first record from 
WorkEffortGoodStandard where (workEffortId == WorkEffort.workEffortParentId and 
workEffortGoodStdTypeId == "PRUN_PROD_DELIV")
3) use the WorkEffortGoodStandard.productId field of this record to fill the 
productId of the *Credit* Account Trans entry.


> Enhance the service described in OFBIZ-1473 to handle in a special way the 
> workEffort that are part of a production run.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1474
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1474
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Jacopo Cappellato
>            Assignee: Jacopo Cappellato
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to