diff --git a/applications/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl b/applications/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl new file mode 100644 index 0000000000..07dd4bd702 --- /dev/null +++ b/applications/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl @@ -0,0 +1,62 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
+
+ ${uiLabelMap.ProductSerializedInventorySummary} +
+
+ + + + + + + + + + + + + <#list inventoryItemList as inventoryItem> + <#assign product = inventoryItem.getRelatedOne('Product')?if_exists> + + + + + + + + + + +
${uiLabelMap.ProductInventoryItemId}${uiLabelMap.ProductProductName}${uiLabelMap.ProductSerialNumber}${uiLabelMap.ProductSoftIdentifier}${uiLabelMap.ProductActivationNumber}${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}
${inventoryItem.inventoryItemId} + <#if product?has_content> + <#if product.isVariant?default('N') == 'Y'> + <#assign product = Static['org.ofbiz.product.product.ProductWorker'].getParentProduct(product.productId, delegator)?if_exists> + + <#if product?has_content> + <#assign productName = Static['org.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request)?if_exists> + ${productName?default(product.productId)} + + + ${inventoryItem.serialNumber?if_exists}${inventoryItem.softIdentifier?if_exists}${inventoryItem.activationNumber?if_exists}${inventoryItem.activationValidThru?if_exists}
+
+
+ diff --git a/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl b/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl index 9afb5354f9..a8c0e67c82 100644 --- a/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl +++ b/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl @@ -561,6 +561,9 @@ ${screens.render("component://ecommerce/widget/CustomerScreens.xml#messagelist-i ${screens.render("component://ecommerce/widget/CustomerScreens.xml#FinAccountList-include")} +<#-- Serialized Inventory Summary --> +${screens.render('component://ecommerce/widget/CustomerScreens.xml#SerializedInventorySummary')} + <#else>
${uiLabelMap.PartyNoPartyForCurrentUserName}: ${userLogin.userLoginId}
diff --git a/applications/ecommerce/widget/CustomerScreens.xml b/applications/ecommerce/widget/CustomerScreens.xml index 168169e380..5037ac3112 100644 --- a/applications/ecommerce/widget/CustomerScreens.xml +++ b/applications/ecommerce/widget/CustomerScreens.xml @@ -447,4 +447,38 @@ under the License. + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+
+
+ diff --git a/applications/party/webapp/partymgr/party/SerializedInventorySummary.ftl b/applications/party/webapp/partymgr/party/SerializedInventorySummary.ftl new file mode 100644 index 0000000000..9de37c0f84 --- /dev/null +++ b/applications/party/webapp/partymgr/party/SerializedInventorySummary.ftl @@ -0,0 +1,62 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
+
+ ${uiLabelMap.ProductSerializedInventorySummary} +
+
+ + + + + + + + + + + + + <#list inventoryItemList as inventoryItem> + <#assign product = inventoryItem.getRelatedOne('Product')?if_exists> + + + + + + + + + + +
${uiLabelMap.ProductInventoryItemId}${uiLabelMap.ProductProductName}${uiLabelMap.ProductSerialNumber}${uiLabelMap.ProductSoftIdentifier}${uiLabelMap.ProductActivationNumber}${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}
${inventoryItem.inventoryItemId} + <#if product?has_content> + <#if product.isVariant?default('N') == 'Y'> + <#assign product = Static['org.ofbiz.product.product.ProductWorker'].getParentProduct(product.productId, delegator)?if_exists> + + <#if product?has_content> + <#assign productName = Static['org.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request)?if_exists> + ${productName?default(product.productId)} + + + ${inventoryItem.serialNumber?if_exists}${inventoryItem.softIdentifier?if_exists}${inventoryItem.activationNumber?if_exists}${inventoryItem.activationValidThru?if_exists}
+
+
+ diff --git a/applications/party/webapp/partymgr/party/viewprofile.ftl b/applications/party/webapp/partymgr/party/viewprofile.ftl index 90a2f46df2..b28699d7fc 100644 --- a/applications/party/webapp/partymgr/party/viewprofile.ftl +++ b/applications/party/webapp/partymgr/party/viewprofile.ftl @@ -667,6 +667,9 @@ under the License. + <#-- Serialized Inventory Summary --> + ${screens.render('component://party/widget/partymgr/PartyScreens.xml#SerializedInventorySummary')} + <#else> ${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId?if_exists} diff --git a/applications/party/widget/partymgr/PartyScreens.xml b/applications/party/widget/partymgr/PartyScreens.xml index 0f4151d791..5676ea11df 100644 --- a/applications/party/widget/partymgr/PartyScreens.xml +++ b/applications/party/widget/partymgr/PartyScreens.xml @@ -770,5 +770,38 @@ under the License. + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+
+
+ diff --git a/applications/product/config/ProductUiLabels.properties b/applications/product/config/ProductUiLabels.properties index 8f6fa80e77..4ec67c8f92 100644 --- a/applications/product/config/ProductUiLabels.properties +++ b/applications/product/config/ProductUiLabels.properties @@ -1188,6 +1188,7 @@ ProductSequenceNum=Sequence Num ProductSerialAtpQoh=Serial# or ATP/QOH ProductSerialNumber=Serial Number ProductSerializedInventoryFound=Serialized Inventory Found +ProductSerializedInventorySummary=Serialized Inventory Summary ProductServerDirectory=ServerDirectory ProductServerFileName=Server file name ProductServiceConfig=Service Config