applied patch from Joe Eckard (Party Serialized Inventory Summary) for JIRA issue OFBIZ-949
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@533848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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.
|
||||
-->
|
||||
|
||||
<div id="serialized-inventory-summary" class="screenlet">
|
||||
<div class="screenlet-header">
|
||||
<span class="boxhead">${uiLabelMap.ProductSerializedInventorySummary}</span>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<table id="serialized-inventory" class="basic-table" cellspacing="0" cellpadding="2">
|
||||
<thead>
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.ProductInventoryItemId}</td>
|
||||
<td>${uiLabelMap.ProductProductName}</td>
|
||||
<td>${uiLabelMap.ProductSerialNumber}</td>
|
||||
<td>${uiLabelMap.ProductSoftIdentifier}</td>
|
||||
<td>${uiLabelMap.ProductActivationNumber}</td>
|
||||
<td>${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#list inventoryItemList as inventoryItem>
|
||||
<#assign product = inventoryItem.getRelatedOne('Product')?if_exists>
|
||||
<tr>
|
||||
<td>${inventoryItem.inventoryItemId}</td>
|
||||
<td>
|
||||
<#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>
|
||||
<#if product?has_content>
|
||||
<#assign productName = Static['org.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request)?if_exists>
|
||||
<a href="<@ofbizUrl>product?product_id=${product.productId}</@ofbizUrl>">${productName?default(product.productId)}</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</td>
|
||||
<td>${inventoryItem.serialNumber?if_exists}</td>
|
||||
<td>${inventoryItem.softIdentifier?if_exists}</td>
|
||||
<td>${inventoryItem.activationNumber?if_exists}</td>
|
||||
<td>${inventoryItem.activationValidThru?if_exists}</td>
|
||||
</tr>
|
||||
</#list>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
<div class="head3">${uiLabelMap.PartyNoPartyForCurrentUserName}: ${userLogin.userLoginId}</div>
|
||||
</#if>
|
||||
|
||||
@@ -447,4 +447,38 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="SerializedInventorySummary">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<entity-condition entity-name="InventoryItem" list-name="inventoryItemList">
|
||||
<condition-list>
|
||||
<condition-expr field-name="inventoryItemTypeId" operator="equals" value="SERIALIZED_INV_ITEM"/>
|
||||
<condition-expr field-name="ownerPartyId" operator="equals" env-name="userLogin.partyId"/>
|
||||
</condition-list>
|
||||
<order-by field-name="-createdStamp"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field-name="inventoryItemList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
|
||||
@@ -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.
|
||||
-->
|
||||
|
||||
<div id="serialized-inventory-summary" class="screenlet">
|
||||
<div class="screenlet-header">
|
||||
<span class="boxhead">${uiLabelMap.ProductSerializedInventorySummary}</span>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<table id="serialized-inventory" class="basic-table" cellspacing="0" cellpadding="2">
|
||||
<thead>
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.ProductInventoryItemId}</td>
|
||||
<td>${uiLabelMap.ProductProductName}</td>
|
||||
<td>${uiLabelMap.ProductSerialNumber}</td>
|
||||
<td>${uiLabelMap.ProductSoftIdentifier}</td>
|
||||
<td>${uiLabelMap.ProductActivationNumber}</td>
|
||||
<td>${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#list inventoryItemList as inventoryItem>
|
||||
<#assign product = inventoryItem.getRelatedOne('Product')?if_exists>
|
||||
<tr>
|
||||
<td>${inventoryItem.inventoryItemId}</td>
|
||||
<td>
|
||||
<#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>
|
||||
<#if product?has_content>
|
||||
<#assign productName = Static['org.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request)?if_exists>
|
||||
<a href="/catalog/control/EditProduct?productId=${product.productId}&externalLoginKey=${requestAttributes.externalLoginKey?if_exists}">${productName?default(product.productId)}</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</td>
|
||||
<td>${inventoryItem.serialNumber?if_exists}</td>
|
||||
<td>${inventoryItem.softIdentifier?if_exists}</td>
|
||||
<td>${inventoryItem.activationNumber?if_exists}</td>
|
||||
<td>${inventoryItem.activationValidThru?if_exists}</td>
|
||||
</tr>
|
||||
</#list>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -667,6 +667,9 @@ under the License.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#-- Serialized Inventory Summary -->
|
||||
${screens.render('component://party/widget/partymgr/PartyScreens.xml#SerializedInventorySummary')}
|
||||
|
||||
<#else>
|
||||
${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId?if_exists}
|
||||
</#if>
|
||||
|
||||
@@ -770,5 +770,38 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="SerializedInventorySummary">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<entity-condition entity-name="InventoryItem" list-name="inventoryItemList">
|
||||
<condition-list>
|
||||
<condition-expr field-name="inventoryItemTypeId" operator="equals" value="SERIALIZED_INV_ITEM"/>
|
||||
<condition-expr field-name="ownerPartyId" operator="equals" env-name="parameters.partyId"/>
|
||||
</condition-list>
|
||||
<order-by field-name="-createdStamp"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field-name="inventoryItemList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://party/webapp/partymgr/party/SerializedInventorySummary.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user