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 218de8d511b01eabda0cb7b9e9c7f0331922eee3 Author: diveshdut <[email protected]> AuthorDate: Tue Aug 11 16:23:47 2026 +0530 OFBIZ-13422: Add manufacturing display helpers Add shared display fallback helpers for manufacturing API payloads, covering facility, role type, status, and UOM values. This lets production run responses reuse the same label fallback style as existing product and fixed asset helpers. --- .../manufacturing/api/ManufacturingServiceUtil.groovy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/applications/manufacturing/src/main/groovy/org/apache/ofbiz/manufacturing/api/ManufacturingServiceUtil.groovy b/applications/manufacturing/src/main/groovy/org/apache/ofbiz/manufacturing/api/ManufacturingServiceUtil.groovy index e807272a77..2e4dd55a57 100644 --- a/applications/manufacturing/src/main/groovy/org/apache/ofbiz/manufacturing/api/ManufacturingServiceUtil.groovy +++ b/applications/manufacturing/src/main/groovy/org/apache/ofbiz/manufacturing/api/ManufacturingServiceUtil.groovy @@ -32,4 +32,20 @@ final class ManufacturingServiceUtil { return fixedAsset?.fixedAssetName ?: fixedAsset?.fixedAssetId } + static String displayFacilityName(GenericValue facility) { + return facility?.facilityName ?: facility?.facilityId + } + + static String displayRoleTypeDescription(GenericValue roleType) { + return roleType?.description ?: roleType?.roleTypeId + } + + static String displayStatusDescription(GenericValue status) { + return status?.description ?: status?.statusId + } + + static String displayUomDescription(GenericValue uom) { + return uom?.description ?: uom?.uomId + } + }

