This is an automated email from the ASF dual-hosted git repository.
surajk pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 4cb9fc7 Improved: Converted all TechDataCalendarWeek related CRUD services from simple to entity-auto (#109)
4cb9fc7 is described below
commit 4cb9fc7e8090cd2123f09986bbe25badcf0570f0
Author: Suraj Khurana <
[hidden email]>
AuthorDate: Wed May 6 18:56:19 2020 +0530
Improved: Converted all TechDataCalendarWeek related CRUD services from simple to entity-auto (#109)
(OFBIZ-11644)
---
.../manufacturing/minilang/techdata/RoutingSimpleServices.xml | 11 -----------
applications/manufacturing/servicedef/services_calendar.xml | 4 ++--
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/applications/manufacturing/minilang/techdata/RoutingSimpleServices.xml b/applications/manufacturing/minilang/techdata/RoutingSimpleServices.xml
index a8a6933..f58f278 100644
--- a/applications/manufacturing/minilang/techdata/RoutingSimpleServices.xml
+++ b/applications/manufacturing/minilang/techdata/RoutingSimpleServices.xml
@@ -107,17 +107,6 @@ under the License.
</else>
</if-not-empty>
</simple-method>
-
- <simple-method method-name="updateCalendarWeek" short-description="Update CalendarWeek">
- <check-permission permission="MANUFACTURING" action="_UPDATE"><fail-property resource="ManufacturingUiLabels" property="ManufacturingCalendarPermissionError"/></check-permission>
- <check-errors/>
- <make-value entity-name="TechDataCalendarWeek" value-field="lookupPKMap"/>
- <set-pk-fields map="parameters" value-field="lookupPKMap"/>
- <find-by-primary-key entity-name="TechDataCalendarWeek" map="lookupPKMap" value-field="lookedUpValue"/>
- <set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
- <store-value value-field="lookedUpValue"/>
- </simple-method>
-
<simple-method method-name="removeCalendarWeek" short-description="Remove CalendarWeek">
<check-permission permission="MANUFACTURING" action="_DELETE"><fail-property resource="ManufacturingUiLabels" property="ManufacturingCalendarPermissionError"/></check-permission>
<check-errors/>
diff --git a/applications/manufacturing/servicedef/services_calendar.xml b/applications/manufacturing/servicedef/services_calendar.xml
index d162a5c..ffd3238 100644
--- a/applications/manufacturing/servicedef/services_calendar.xml
+++ b/applications/manufacturing/servicedef/services_calendar.xml
@@ -48,9 +48,9 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
- <service name="updateCalendarWeek" engine="simple" default-entity-name="TechDataCalendarWeek"
- location="component://manufacturing/minilang/techdata/RoutingSimpleServices.xml" invoke="updateCalendarWeek">
+ <service name="updateCalendarWeek" engine="entity-auto" default-entity-name="TechDataCalendarWeek" invoke="update">
<description>Update a Calendar Week</description>
+ <permission-service service-name="manufacturingPermissionService" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>