Skip to content

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

Merged
diveshdut merged 3 commits into
apache:trunkfrom
diveshdut:feature/calculate-labor-cost-of-production-run
Mar 26, 2026
Merged

OFBIZ-13248 Calculate labor cost when production run is completed#1026
diveshdut merged 3 commits into
apache:trunkfrom
diveshdut:feature/calculate-labor-cost-of-production-run

Conversation

@diveshdut

Copy link
Copy Markdown
Contributor

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.

@diveshdut diveshdut merged commit e0823de into apache:trunk Mar 26, 2026
@diveshdut diveshdut deleted the feature/calculate-labor-cost-of-production-run branch March 26, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant