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

ASF subversion and git services commented on OFBIZ-13248:
---------------------------------------------------------

Commit e0823deddfe20443fafb77c7c81c4c9a23cb364f in ofbiz-framework's branch 
refs/heads/trunk from Divesh Dutta
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e0823deddf ]

OFBIZ-13248 Calculate labor cost when production run is completed (#1026)

OFBIZ-13248 Calculate labor cost when production run is completed

Implemented the automatic calculation and recording of labor costs when
a production run is completed. This is achieved by creating TimeEntry
records associated with the production run task, using a specific labor
rate type.

**Changes made:** 

**Data (Seed/Demo):**

- Added FLC (Factory Labor Cost) RateType in ManufacturingSeedData.xml.
- Added sample PartyRate data in ManufacturingDemoData.xml to support
testing of labor cost calculations.

**UI Labels:**

- Introduced new UI labels in ManufacturingUiLabels.xml for labor cost
visibility.

**Service Logic (ProductionRunServices.java):**

- Enhanced the production run completion flow to calculate labor hours
from the reported task time.
- Automatically invokes the createTimeEntry service with
rateTypeId="FLC" to record the labor cost for the work effort.


Thanks Pierre Smits and Jacopo for design details on ticket.

> Labor costs are missing from cost calculations in the Manufacturing module, 
> leading to incomplete production run accounting.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13248
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13248
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: manufacturing
>    Affects Versions: Upcoming Branch
>            Reporter: Yashwant Dhakad
>            Assignee: Divesh Dutta
>            Priority: Minor
>
> In the Manufacturing module, during cost calculation, labor costs are not 
> included or recorded for respective production runs, even though features to 
> record the workers’ hourly rates and logged hours are available. This 
> omission of labourer’s wages from the final cost calculation, results in 
> incomplete cost reporting, as labor expenses are missing from the “Actual 
> Costs” section of production run’s respective routing tasks. To address this, 
> the system should:
>  * Calculate labor costs by multiplying the worker’s hourly rate by their 
> logged hours.
>  * Record these costs as a labor cost entry in the production run’s cost 
> records.
>  * Include labor costs in the total production run cost displayed in the 
> Manufacturing module.
> These changes will ensure accurate cost reporting, improve financial 
> analysis, and eliminate manual calculations.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to