This is an automated email from the ASF dual-hosted git repository. diveshdut pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit e9be91915cb33a19c36653a21b077f8768cbd4f9 Author: diveshdut <[email protected]> AuthorDate: Tue Aug 4 16:54:40 2026 +0530 OFBIZ-13480 Add WorkEffort cost calculation update service Add the missing WorkEffortCostCalc update service beside the existing create and remove services, using the same entity-auto pattern and accounting cost permission check. Routing task cost rates are date-effective WorkEffortCostCalc records. The routing REST API needs an update service so a client can expire or adjust an existing cost-rate assignment by setting non-primary-key fields such as thruDate, instead of deleting the historical assignment or adding a routing-specific persistence wrapper. This is additive service surface for work effort cost calculation assignments. It does not alter existing cost services or existing manufacturing screens that already use create/remove behavior. --- applications/accounting/servicedef/services_cost.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/applications/accounting/servicedef/services_cost.xml b/applications/accounting/servicedef/services_cost.xml index 40b627face..fff9eea87d 100644 --- a/applications/accounting/servicedef/services_cost.xml +++ b/applications/accounting/servicedef/services_cost.xml @@ -53,6 +53,13 @@ under the License. <override name="fromDate" optional="true"/> </service> + <service name="updateWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="entity-auto" invoke="update" auth="true"> + <description>Update a WorkEffortCostCalc entry so manufacturing applications can change date-effective cost calculation assignments on work efforts without bypassing the service engine, entity validation, or accounting cost permission checks.</description> + <permission-service service-name="acctgCostPermissionCheck" main-action="UPDATE"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="removeWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="entity-auto" invoke="delete" auth="true"> <description>Remove a WorkEffortCostCalc entry</description> <permission-service service-name="acctgCostPermissionCheck" main-action="DELETE"/>

