Picking/Shipments/Inventory forms (ftl/widgets screen) has now the same look and feel (Part of issue OFBIZ-1556)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@609427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marco Risaliti
2008-01-06 22:06:04 +00:00
parent e55adb996e
commit db6d76092b
13 changed files with 952 additions and 884 deletions
@@ -396,6 +396,7 @@ ProductAssociationsFromProduct=Associations FROM this Product to
ProductAssociationsToProduct=Associations TO this Product from
ProductAssocs=Assocs
ProductAtp=ATP
ProductAtpQoh=Atp/Qoh
ProductAtpQohSerial=ATP/QOH or Serial#
ProductAttachmentScreenLocation=Attachment Screen Location (XSL-FO)
ProductAttributes=Attributes
@@ -2025,4 +2026,9 @@ FormFieldTitle_inventoryItemLabelTypeId=Inventory Item Label Type Id
FormFieldTitle_parentTypeId=Parent Type Id
FormFieldTitle_reportType=Report Type
FormFieldTitle_availableToPromiseTotal=Available To Promise Total
FormFieldTitle_addtlShippingChargeDesc=Addtl Shipping Charge Desc
FormFieldTitle_addtlShippingChargeDesc=Addtl Shipping Charge Desc
FormFieldTitle_inventoryTransferId=Inventory Transfer Id
FormFieldTitle_locationSeqIdTo=Location Seq Id To
FormFieldTitle_sendDate=Send Date
FormFieldTitle_receiveDate=Receive Date
FormFieldTitle_facilityIdTo=Facility Id To
@@ -391,6 +391,7 @@ ProductAssociationsFromProduct=Associazioni da questo Prodotto a
ProductAssociationsToProduct=Associazioni a questo Prodotto da
ProductAssocs=Associazioni
ProductAtp=ATP
ProductAtpQoh=Atp/Qoh
ProductAtpQohSerial=ATP/QOH o # Seriale
ProductAttachmentScreenLocation=Allegato Locazione Videata (XSL-FO)
ProductAttributes=Attributi
@@ -2008,4 +2009,9 @@ FormFieldTitle_inventoryItemLabelTypeId=Tipo Etichetta Riga
FormFieldTitle_parentTypeId=Tipo Padre
FormFieldTitle_reportType=Tipo Report
FormFieldTitle_availableToPromiseTotal=Totale Disponibilit\u00e0 Promessa
FormFieldTitle_addtlShippingChargeDesc=Descrizione Ricarico Aggiuntivo Spedizione
FormFieldTitle_addtlShippingChargeDesc=Descrizione Ricarico Aggiuntivo Spedizione
FormFieldTitle_inventoryTransferId=Numero Trasferimento Inventario
FormFieldTitle_locationSeqIdTo=Sequenza Locazione Destinazione
FormFieldTitle_sendDate=Data Invio
FormFieldTitle_receiveDate=Data Ricezione
FormFieldTitle_facilityIdTo=Stabilimento Destinazione
@@ -19,7 +19,7 @@ under the License.
<#if !mechMap.facilityContactMech?exists && mechMap.contactMech?exists>
<p><h3>${uiLabelMap.PartyContactInfoNotBelongToYou}.</h3></p>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>" class="buttontext">[${uiLabelMapCommon.Back}]</a>
&nbsp;<a href="<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>" class="buttontext">${uiLabelMapCommon.Back}</a>
<#else>
<#if !mechMap.contactMech?exists>
<#-- When creating a new contact mech, first select the type, then actually create -->
@@ -28,15 +28,15 @@ under the License.
<form method="post" action='<@ofbizUrl>EditContactMech</@ofbizUrl>' name="createcontactmechform">
<input type='hidden' name='facilityId' value='${facilityId}'>
<input type='hidden' name='DONE_PAGE' value='${donePage?if_exists}'>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<table width="90%" class="basic-table" cellspacing="0">
<tr>
<td width="26%"><div class="tabletext">${uiLabelMap.PartySelectContactType}:</div></td>
<td width="26%">${uiLabelMap.PartySelectContactType}</td>
<td width="74%">
<select name="preContactMechTypeId" class="selectBox">
<select name="preContactMechTypeId" >
<#list mechMap.contactMechTypes as contactMechType>
<option value='${contactMechType.contactMechTypeId}'>${contactMechType.get("description",locale)}</option>
</#list>
</select>&nbsp;<a href="javascript:document.createcontactmechform.submit()" class="buttontext">[${uiLabelMap.CommonCreate}]</a>
</select>&nbsp;<a href="javascript:document.createcontactmechform.submit()" class="buttontext">${uiLabelMap.CommonCreate}</a>
</td>
</tr>
</table>
@@ -47,12 +47,12 @@ under the License.
<#if mechMap.contactMechTypeId?has_content>
<#if !mechMap.contactMech?has_content>
<h1>${uiLabelMap.PartyCreateNewContact}</h1>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a>
<#if contactMechPurposeType?exists>
<div>(${uiLabelMap.PartyMsgContactHavePurpose}<b>"${contactMechPurposeType.get("description",locale)?if_exists}"</b>)</div>
<div><span class="label">(${uiLabelMap.PartyMsgContactHavePurpose}</span>"${contactMechPurposeType.get("description",locale)?if_exists}")</div>
</#if>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<table width="90%" class="basic-table" cellspacing="0">
<form method="post" action='<@ofbizUrl>${mechMap.requestName}</@ofbizUrl>' name="editcontactmechform">
<input type='hidden' name='DONE_PAGE' value='${donePage}'>
<input type='hidden' name='contactMechTypeId' value='${mechMap.contactMechTypeId}'>
@@ -63,21 +63,23 @@ under the License.
<#if paymentMethodId?exists><input type='hidden' name='paymentMethodId' value='${paymentMethodId}'></#if>
<#else>
<h1>${uiLabelMap.PartyEditContactInformation}</h1>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class='buttontext'>[${uiLabelMap.CommonGoBack}]</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class='buttontext'>${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a>
<table width="90%" class="basic-table" cellspacing="0">
<#if mechMap.purposeTypes?has_content>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyContactPurposes}</div></td>
<td width="26%" align="right" valign="top"><span class="label">${uiLabelMap.PartyContactPurposes}</span></td>
<td width="5">&nbsp;</td>
<td width="74%">
<table border='0' cellspacing='1' bgcolor='black'>
<table class="basic-table" cellspacing="0">
<#if mechMap.facilityContactMechPurposes?has_content>
<#assign alt_row = false>
<#list mechMap.facilityContactMechPurposes as facilityContactMechPurpose>
<#assign contactMechPurposeType = facilityContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")>
<tr>
<td bgcolor='white'>
<div class="tabletext">&nbsp;
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td>
<div>
&nbsp;
<#if contactMechPurposeType?has_content>
<b>${contactMechPurposeType.get("description",locale)}</b>
<#else>
@@ -85,18 +87,21 @@ under the License.
</#if>
(${uiLabelMap.CommonSince}:${facilityContactMechPurpose.fromDate.toString()})
<#if facilityContactMechPurpose.thruDate?has_content>(${uiLabelMap.CommonExpires}: ${facilityContactMechPurpose.thruDate.toString()}</#if>
&nbsp;</div></td>
<td bgcolor='white'><div><a href='<@ofbizUrl>deleteFacilityContactMechPurpose?facilityId=${facilityId}&contactMechId=${contactMechId}&contactMechPurposeTypeId=${facilityContactMechPurpose.contactMechPurposeTypeId}&fromDate=${facilityContactMechPurpose.fromDate.toString()}&DONE_PAGE=${donePage}&useValues=true</@ofbizUrl>' class='buttontext'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a></div></td>
&nbsp;
</div>
</td>
<td><a href='<@ofbizUrl>deleteFacilityContactMechPurpose?facilityId=${facilityId}&contactMechId=${contactMechId}&contactMechPurposeTypeId=${facilityContactMechPurpose.contactMechPurposeTypeId}&fromDate=${facilityContactMechPurpose.fromDate.toString()}&DONE_PAGE=${donePage}&useValues=true</@ofbizUrl>' class='buttontext'>&nbsp;${uiLabelMap.CommonDelete}&nbsp;</a></td>
</tr>
<#-- toggle the row color -->
<#assign alt_row = !alt_row>
</#list>
</#if>
<tr>
<form method="post" action='<@ofbizUrl>createFacilityContactMechPurpose?DONE_PAGE=${donePage}&useValues=true</@ofbizUrl>' name='newpurposeform'>
<input type="hidden" name='facilityId' value='${facilityId}'>
<input type="hidden" name='contactMechId' value='${contactMechId?if_exists}'>
<td bgcolor='white'>
<select name='contactMechPurposeTypeId' class="selectBox">
<td>
<select name='contactMechPurposeTypeId'>
<option></option>
<#list mechMap.purposeTypes as contactMechPurposeType>
<option value='${contactMechPurposeType.contactMechPurposeTypeId}'>${contactMechPurposeType.get("description",locale)}</option>
@@ -104,7 +109,7 @@ under the License.
</select>
</td>
</form>
<td bgcolor='white'><div><a href='javascript:document.newpurposeform.submit()' class='buttontext'>${uiLabelMap.PartyAddPurpose}</a></div></td>
<td><a href='javascript:document.newpurposeform.submit()' class='buttontext'>${uiLabelMap.PartyAddPurpose}</a></td>
</tr>
</table>
</td>
@@ -118,45 +123,45 @@ under the License.
<#if "POSTAL_ADDRESS" = mechMap.contactMechTypeId?if_exists>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyToName}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyToName}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="toName" value="${(mechMap.postalAddress.toName)?default(request.getParameter('toName')?if_exists)}">
<input type="text" size="30" maxlength="60" name="toName" value="${(mechMap.postalAddress.toName)?default(request.getParameter('toName')?if_exists)}">
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyAttentionName}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyAttentionName}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="60" name="attnName" value="${(mechMap.postalAddress.attnName)?default(request.getParameter('attnName')?if_exists)}">
<input type="text" size="30" maxlength="60" name="attnName" value="${(mechMap.postalAddress.attnName)?default(request.getParameter('attnName')?if_exists)}">
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyAddressLine1}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyAddressLine1}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="30" name="address1" value="${(mechMap.postalAddress.address1)?default(request.getParameter('address1')?if_exists)}">
<input type="text" size="30" maxlength="30" name="address1" value="${(mechMap.postalAddress.address1)?default(request.getParameter('address1')?if_exists)}">
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyAddressLine2}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyAddressLine2}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="30" name="address2" value="${(mechMap.postalAddress.address2)?default(request.getParameter('address2')?if_exists)}">
<input type="text" size="30" maxlength="30" name="address2" value="${(mechMap.postalAddress.address2)?default(request.getParameter('address2')?if_exists)}">
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyCity}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyCity}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="30" maxlength="30" name="city" value="${(mechMap.postalAddress.city)?default(request.getParameter('city')?if_exists)}">
<input type="text" size="30" maxlength="30" name="city" value="${(mechMap.postalAddress.city)?default(request.getParameter('city')?if_exists)}">
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyState}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyState}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<select name="stateProvinceGeoId" class="selectBox">
<select name="stateProvinceGeoId">
<option>${(mechMap.postalAddress.stateProvinceGeoId)?if_exists}</option>
<option></option>
${screens.render("component://common/widget/CommonScreens.xml#states")}
@@ -164,14 +169,14 @@ under the License.
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyZipCode}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyZipCode}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="12" maxlength="10" name="postalCode" value="${(mechMap.postalAddress.postalCode)?default(request.getParameter('postalCode')?if_exists)}">
<input type="text" size="12" maxlength="10" name="postalCode" value="${(mechMap.postalAddress.postalCode)?default(request.getParameter('postalCode')?if_exists)}">
*</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyCountry}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyCountry}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<select name="countryGeoId" class="selectBox">
@@ -183,43 +188,43 @@ under the License.
</tr>
<#elseif "TELECOM_NUMBER" = mechMap.contactMechTypeId?if_exists>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyPhoneNumber}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyPhoneNumber}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="4" maxlength="10" name="countryCode" value="${(mechMap.telecomNumber.countryCode)?default(request.getParameter('countryCode')?if_exists)}">
-&nbsp;<input type="text" class="inputBox" size="4" maxlength="10" name="areaCode" value="${(mechMap.telecomNumber.areaCode)?default(request.getParameter('areaCode')?if_exists)}">
-&nbsp;<input type="text" class="inputBox" size="15" maxlength="15" name="contactNumber" value="${(mechMap.telecomNumber.contactNumber)?default(request.getParameter('contactNumber')?if_exists)}">
&nbsp;ext&nbsp;<input type="text" class="inputBox" size="6" maxlength="10" name="extension" value="${(mechMap.facilityContactMech.extension)?default(request.getParameter('extension')?if_exists)}">
<input type="text" size="4" maxlength="10" name="countryCode" value="${(mechMap.telecomNumber.countryCode)?default(request.getParameter('countryCode')?if_exists)}">
-&nbsp;<input type="text" size="4" maxlength="10" name="areaCode" value="${(mechMap.telecomNumber.areaCode)?default(request.getParameter('areaCode')?if_exists)}">
-&nbsp;<input type="text" size="15" maxlength="15" name="contactNumber" value="${(mechMap.telecomNumber.contactNumber)?default(request.getParameter('contactNumber')?if_exists)}">
&nbsp;ext&nbsp;<input type="text" size="6" maxlength="10" name="extension" value="${(mechMap.facilityContactMech.extension)?default(request.getParameter('extension')?if_exists)}">
</td>
</tr>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext"></div></td>
<td width="26%" align="right" valign="top">&nbsp;</td>
<td width="5">&nbsp;</td>
<td><div class="tabletext">[${uiLabelMap.PartyCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] [${uiLabelMap.PartyExtension}]</div></td>
<td><div>[${uiLabelMap.PartyCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] [${uiLabelMap.PartyExtension}]</div></td>
</tr>
<#elseif "EMAIL_ADDRESS" = mechMap.contactMechTypeId?if_exists>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyEmailAddress}</div></td>
<td width="26%" align="right" valign="top">${uiLabelMap.PartyEmailAddress}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="60" maxlength="255" name="emailAddress" value="${(mechMap.contactMech.infoString)?default(request.getParameter('emailAddress')?if_exists)}">
<input type="text" size="60" maxlength="255" name="emailAddress" value="${(mechMap.contactMech.infoString)?default(request.getParameter('emailAddress')?if_exists)}">
*</td>
</tr>
<#else>
<tr>
<td width="26%" align="right" valign="top"><div class="tabletext">${mechMap.contactMechType.get("description",locale)}</div></td>
<td width="26%" align="right" valign="top">${mechMap.contactMechType.get("description",locale)}</td>
<td width="5">&nbsp;</td>
<td width="74%">
<input type="text" class="inputBox" size="60" maxlength="255" name="infoString" value="${(mechMap.contactMech.infoString)?if_exists}">
<input type="text" size="60" maxlength="255" name="infoString" value="${(mechMap.contactMech.infoString)?if_exists}">
*</td>
</tr>
</#if>
</form>
</table>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonGoBack}</a>
&nbsp;<a href="javascript:document.editcontactmechform.submit()" class="buttontext">${uiLabelMap.CommonSave}</a>
<#else>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">[${uiLabelMap.CommonGoBack}]</a>
&nbsp;<a href='<@ofbizUrl>authview/${donePage}?facilityId=${facilityId}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonGoBack}</a>
</#if>
</#if>
@@ -624,7 +624,7 @@ under the License.
<field name="productId" entry-name="product.productId" widget-style="buttontext">
<hyperlink target="/catalog/control/EditProduct?productId=${product.productId}" target-type="inter-app" description="${product.productId}"/>
</field>
<field name="productName" entry-name="product.internalName"><display/></field>
<field name="productName" title="${uiLabelMap.ProductProductName}" entry-name="product.internalName"><display/></field>
<field name="serialNumber" entry-name="inventoryItem.serialNumber"><display/></field>
<field name="atpQoh" title="${uiLabelMap.ProductAtpQoh}"><display description="${inventoryItem.availableToPromiseTotal}/${inventoryItem.quantityOnHandTotal}"/></field>
<field name="locationSeqIdTo"><display/></field>
@@ -660,7 +660,7 @@ under the License.
<field name="productId" entry-name="product.productId" widget-style="buttontext">
<hyperlink target="/catalog/control/EditProduct?productId=${product.productId}" target-type="inter-app" description="${product.productId}"/>
</field>
<field name="productName" entry-name="product.internalName"><display/></field>
<field name="productName" title="${uiLabelMap.ProductProductName}" entry-name="product.internalName"><display/></field>
<field name="serialNumber" entry-name="inventoryItem.serialNumber"><display/></field>
<field name="atpQoh" title="${uiLabelMap.ProductAtpQoh}"><display description="${inventoryItem.availableToPromiseTotal}/${inventoryItem.quantityOnHandTotal}"/></field>
<field name="locationSeqId"><display/></field>
@@ -697,7 +697,7 @@ under the License.
<field name="productId" entry-name="product.productId" widget-style="buttontext">
<hyperlink target="/catalog/control/EditProduct?productId=${product.productId}" target-type="inter-app" description="${product.productId}" also-hidden="false"/>
</field>
<field name="productName" entry-name="product.internalName"><display also-hidden="false"/></field>
<field name="productName" title="${uiLabelMap.ProductProductName}" entry-name="product.internalName"><display also-hidden="false"/></field>
<field name="serialNumber" entry-name="inventoryItem.serialNumber"><display also-hidden="false"/></field>
<field name="atpQoh" title="${uiLabelMap.ProductAtpQoh}"><display description="${inventoryItem.availableToPromiseTotal}/${inventoryItem.quantityOnHandTotal}" also-hidden="false"/></field>
<field name="locationSeqId"><display also-hidden="false"/></field>
@@ -78,7 +78,7 @@ under the License.
<br/>
<span class="head1">${uiLabelMap.CommonFound}:&nbsp;</span><span class="head2"><b>${foundLocations.size()}</b>&nbsp;${uiLabelMap.ProductLocationsFor}&nbsp;<#if facility?exists>${(facility.facilityName)?if_exists}</#if> [ID:${facilityId?if_exists}]</span>
<br/>
<table class="basic-table hover-bar hover-bar" cellspacing="0">
<table class="basic-table hover-bar" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.ProductFacility}</td>
<td>${uiLabelMap.ProductLocationSeqId}</td>
@@ -18,11 +18,12 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-header">
<div class="simple-right-half">
<a href="<@ofbizUrl>PickMoveStockSimple?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonPrint}</a>
</div>
<div class="boxhead">${uiLabelMap.ProductStockMovesNeeded}</div>
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.ProductStockMovesNeeded}</li>
<li><a href="<@ofbizUrl>PickMoveStockSimple?facilityId=${facilityId?if_exists}</@ofbizUrl>">${uiLabelMap.CommonPrint}</a></li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<form method="post" action="<@ofbizUrl>processPhysicalStockMove</@ofbizUrl>" name='selectAllForm' style='margin: 0;'>
@@ -30,25 +31,26 @@ under the License.
<input type="hidden" name="facilityId" value="${facilityId?if_exists}">
<input type="hidden" name="_useRowSubmit" value="Y">
<#assign rowCount = 0>
<table border="1" cellspacing="0" cellpadding="2">
<tr>
<td><div class="tableheadtext">${uiLabelMap.ProductProductId}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductProduct}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductFromLocation}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductQoh}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductAtp}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductToLocation}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductQoh}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductAtp}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductMinimumStock}</div></td>
<td><div class="tableheadtext">${uiLabelMap.ProductMoveQuantity}</div></td>
<td><div class="tableheadtext">${uiLabelMap.OrderConfirm}</div></td>
<table cellspacing="0" class="basic-table hover-bar">
<tr class="header-row">
<td>${uiLabelMap.ProductProductId}</td>
<td>${uiLabelMap.ProductProduct}</td>
<td>${uiLabelMap.ProductFromLocation}</td>
<td>${uiLabelMap.ProductQoh}</td>
<td>${uiLabelMap.ProductAtp}</td>
<td>${uiLabelMap.ProductToLocation}</td>
<td>${uiLabelMap.ProductQoh}</td>
<td>${uiLabelMap.ProductAtp}</td>
<td>${uiLabelMap.ProductMinimumStock}</td>
<td>${uiLabelMap.ProductMoveQuantity}</td>
<td>${uiLabelMap.OrderConfirm}</td>
<td align="right">
<span class="tableheadtext">${uiLabelMap.ProductSelectAll}</span>&nbsp;
${uiLabelMap.ProductSelectAll}&nbsp;
<input type="checkbox" name="selectAll" value="Y" onclick="javascript:toggleAll(this, 'selectAllForm');">
</td>
</tr>
<#if moveByOisgirInfoList?has_content || moveByPflInfoList?has_content>
<#assign alt_row = false>
<#list moveByOisgirInfoList?if_exists as moveByOisgirInfo>
<#assign product = moveByOisgirInfo.product>
<#assign facilityLocationFrom = moveByOisgirInfo.facilityLocationFrom>
@@ -57,29 +59,31 @@ under the License.
<#assign targetProductFacilityLocation = moveByOisgirInfo.targetProductFacilityLocation>
<#assign facilityLocationTypeEnumTo = (facilityLocationTo.getRelatedOneCache("TypeEnumeration"))?if_exists>
<#assign totalQuantity = moveByOisgirInfo.totalQuantity>
<tr>
<td><div class="tabletext">${product.productId}</div></td>
<td><div class="tabletext">${product.internalName?if_exists}</div></td>
<td><div class="tabletext">${facilityLocationFrom.areaId?if_exists}:${facilityLocationFrom.aisleId?if_exists}:${facilityLocationFrom.sectionId?if_exists}:${facilityLocationFrom.levelId?if_exists}:${facilityLocationFrom.positionId?if_exists}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</div></td>
<td><div class="tabletext">${moveByOisgirInfo.quantityOnHandTotalFrom?if_exists}</div></td>
<td><div class="tabletext">${moveByOisgirInfo.availableToPromiseTotalFrom?if_exists}</div></td>
<td><div class="tabletext">${facilityLocationTo.areaId?if_exists}:${facilityLocationTo.aisleId?if_exists}:${facilityLocationTo.sectionId?if_exists}:${facilityLocationTo.levelId?if_exists}:${facilityLocationTo.positionId?if_exists}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</div></td>
<td><div class="tabletext">${moveByOisgirInfo.quantityOnHandTotalTo?if_exists}</div></td>
<td><div class="tabletext">${moveByOisgirInfo.availableToPromiseTotalTo?if_exists}</div></td>
<td><div class="tabletext">${targetProductFacilityLocation.minimumStock?if_exists}</div></td>
<td><div class="tabletext">${targetProductFacilityLocation.moveQuantity?if_exists}</div></td>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td>${product.productId}</td>
<td>${product.internalName?if_exists}</td>
<td>${facilityLocationFrom.areaId?if_exists}:${facilityLocationFrom.aisleId?if_exists}:${facilityLocationFrom.sectionId?if_exists}:${facilityLocationFrom.levelId?if_exists}:${facilityLocationFrom.positionId?if_exists}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</td>
<td>${moveByOisgirInfo.quantityOnHandTotalFrom?if_exists}</td>
<td>${moveByOisgirInfo.availableToPromiseTotalFrom?if_exists}</td>
<td>${facilityLocationTo.areaId?if_exists}:${facilityLocationTo.aisleId?if_exists}:${facilityLocationTo.sectionId?if_exists}:${facilityLocationTo.levelId?if_exists}:${facilityLocationTo.positionId?if_exists}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</td>
<td>${moveByOisgirInfo.quantityOnHandTotalTo?if_exists}</td>
<td>${moveByOisgirInfo.availableToPromiseTotalTo?if_exists}</td>
<td>${targetProductFacilityLocation.minimumStock?if_exists}</td>
<td>${targetProductFacilityLocation.moveQuantity?if_exists}</td>
<td align="right">
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId?if_exists}">
<input type="hidden" name="facilityId_o_${rowCount}" value="${facilityId?if_exists}">
<input type="hidden" name="locationSeqId_o_${rowCount}" value="${facilityLocationFrom.locationSeqId?if_exists}">
<input type="hidden" name="targetLocationSeqId_o_${rowCount}" value="${facilityLocationTo.locationSeqId?if_exists}">
<input type="text" class="inputBox" name="quantityMoved_o_${rowCount}" size="6" value="${totalQuantity?string.number}">
<input type="text" name="quantityMoved_o_${rowCount}" size="6" value="${totalQuantity?string.number}">
</td>
<td align="right">
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, 'selectAllForm');">
</td>
</tr>
<#assign rowCount = rowCount + 1>
<#assign rowCount = rowCount + 1>
<#-- toggle the row color -->
<#assign alt_row = !alt_row>
</#list>
<#list moveByPflInfoList?if_exists as moveByPflInfo>
<#assign product = moveByPflInfo.product>
@@ -89,17 +93,17 @@ under the License.
<#assign targetProductFacilityLocation = moveByPflInfo.targetProductFacilityLocation>
<#assign facilityLocationTypeEnumTo = (facilityLocationTo.getRelatedOneCache("TypeEnumeration"))?if_exists>
<#assign totalQuantity = moveByPflInfo.totalQuantity>
<tr>
<td><div class="tabletext">${product.productId}</div></td>
<td><div class="tabletext">${product.internalName?if_exists}</div></td>
<td><div class="tabletext">${facilityLocationFrom.areaId?if_exists}:${facilityLocationFrom.aisleId?if_exists}:${facilityLocationFrom.sectionId?if_exists}:${facilityLocationFrom.levelId?if_exists}:${facilityLocationFrom.positionId?if_exists}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</div></td>
<td><div class="tabletext">${moveByPflInfo.quantityOnHandTotalFrom?if_exists}</div></td>
<td><div class="tabletext">${moveByPflInfo.availableToPromiseTotalFrom?if_exists}</div></td>
<td><div class="tabletext">${facilityLocationTo.areaId?if_exists}:${facilityLocationTo.aisleId?if_exists}:${facilityLocationTo.sectionId?if_exists}:${facilityLocationTo.levelId?if_exists}:${facilityLocationTo.positionId?if_exists}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</div></td>
<td><div class="tabletext">${moveByPflInfo.quantityOnHandTotalTo?if_exists}</div></td>
<td><div class="tabletext">${moveByPflInfo.availableToPromiseTotalTo?if_exists}</div></td>
<td><div class="tabletext">${targetProductFacilityLocation.minimumStock?if_exists}</div></td>
<td><div class="tabletext">${targetProductFacilityLocation.moveQuantity?if_exists}</div></td>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td>${product.productId}</td>
<td>${product.internalName?if_exists}</td>
<td>${facilityLocationFrom.areaId?if_exists}:${facilityLocationFrom.aisleId?if_exists}:${facilityLocationFrom.sectionId?if_exists}:${facilityLocationFrom.levelId?if_exists}:${facilityLocationFrom.positionId?if_exists}<#if facilityLocationTypeEnumFrom?has_content>(${facilityLocationTypeEnumFrom.description})</#if>[${facilityLocationFrom.locationSeqId}]</td>
<td>${moveByPflInfo.quantityOnHandTotalFrom?if_exists}</td>
<td>${moveByPflInfo.availableToPromiseTotalFrom?if_exists}</td>
<td>${facilityLocationTo.areaId?if_exists}:${facilityLocationTo.aisleId?if_exists}:${facilityLocationTo.sectionId?if_exists}:${facilityLocationTo.levelId?if_exists}:${facilityLocationTo.positionId?if_exists}<#if facilityLocationTypeEnumTo?has_content>(${facilityLocationTypeEnumTo.description})</#if>[${facilityLocationTo.locationSeqId}]</td>
<td>${moveByPflInfo.quantityOnHandTotalTo?if_exists}</td>
<td>${moveByPflInfo.availableToPromiseTotalTo?if_exists}</td>
<td>${targetProductFacilityLocation.minimumStock?if_exists}</td>
<td>${targetProductFacilityLocation.moveQuantity?if_exists}</td>
<td align="right">
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId?if_exists}">
<input type="hidden" name="facilityId_o_${rowCount}" value="${facilityId?if_exists}">
@@ -130,4 +134,4 @@ under the License.
<input type="hidden" name="_rowCount" value="${rowCount}">
</form>
</div>
</div>
</div>
@@ -18,8 +18,11 @@ under the License.
-->
<div class="screenlet">
<div class="screenlet-header">
<div class="boxhead">${uiLabelMap.ProductPicklistManage}</div>
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.ProductPicklistManage}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<#if picklistInfoList?has_content>
@@ -27,13 +30,13 @@ under the License.
<#assign picklist = picklistInfo.picklist>
<#-- Picklist -->
<div class="tabletext">
<b>${uiLabelMap.ProductPickList}</b> <span class="head2">${picklist.picklistId}</span>
<b>${uiLabelMap.CommonDate}</b> ${picklist.picklistDate}
<div>
<span class="label">${uiLabelMap.ProductPickList}</span> ${picklist.picklistId}
<span class="label">${uiLabelMap.CommonDate}</span> ${picklist.picklistDate}
<form method="post" action="<@ofbizUrl>updatePicklist</@ofbizUrl>" style="display: inline;">
<input type="hidden" name="facilityId" value="${facilityId}"/>
<input type="hidden" name="picklistId" value="${picklist.picklistId}"/>
<select name="statusId" class="smallSelect">
<select name="statusId">
<option value="${picklistInfo.statusItem.statusId}" selected>${picklistInfo.statusItem.get("description",locale)}</option>
<option value="${picklistInfo.statusItem.statusId}">---</option>
<#list picklistInfo.statusValidChangeToDetailList as statusValidChangeToDetail>
@@ -42,31 +45,32 @@ under the License.
</select>
<input type="submit" value="${uiLabelMap.CommonUpdate}" class="smallSubmit"/>
</form>
<b>${uiLabelMap.ProductCreatedModifiedBy}</b> ${picklist.createdByUserLogin}/${picklist.lastModifiedByUserLogin}
<a href="<@ofbizUrl>PicklistReport.pdf?picklistId=${picklist.picklistId}</@ofbizUrl>" target="_blank" class="buttontext">[${uiLabelMap.ProductPick}/${uiLabelMap.ProductPacking} ${uiLabelMap.CommonReports}]</a>
<span class="label">${uiLabelMap.ProductCreatedModifiedBy}</span> ${picklist.createdByUserLogin}/${picklist.lastModifiedByUserLogin}
<a href="<@ofbizUrl>PicklistReport.pdf?picklistId=${picklist.picklistId}</@ofbizUrl>" target="_blank" class="buttontext">${uiLabelMap.ProductPick}/${uiLabelMap.ProductPacking} ${uiLabelMap.CommonReports}</a>
<hr/>
</div>
<#if picklistInfo.shipmentMethodType?has_content>
<div class="tabletext" style="margin-left: 15px;">
<b>${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentMethodType}</b> ${picklistInfo.shipmentMethodType.description?default(picklistInfo.shipmentMethodType.shipmentMethodTypeId)}
<div style="margin-left: 15px;">
<span class="label">${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentMethodType}</span> ${picklistInfo.shipmentMethodType.description?default(picklistInfo.shipmentMethodType.shipmentMethodTypeId)}
</div>
</#if>
<#-- PicklistRole -->
<#list picklistInfo.picklistRoleInfoList?if_exists as picklistRoleInfo>
<div class="tabletext" style="margin-left: 15px;">
<b>${uiLabelMap.PartyParty}</b> ${picklistRoleInfo.partyNameView.firstName?if_exists} ${picklistRoleInfo.partyNameView.middleName?if_exists} ${picklistRoleInfo.partyNameView.lastName?if_exists} ${picklistRoleInfo.partyNameView.groupName?if_exists}
<b>${uiLabelMap.PartyRole}</b> ${picklistRoleInfo.roleType.description}
<b>${uiLabelMap.CommonFrom}</b> ${picklistRoleInfo.picklistRole.fromDate}
<#if picklistRoleInfo.picklistRole.thruDate?exists><b>thru</b> ${picklistRoleInfo.picklistRole.thruDate}</#if>
<div style="margin-left: 15px;">
<span class="label">${uiLabelMap.PartyParty}</span> ${picklistRoleInfo.partyNameView.firstName?if_exists} ${picklistRoleInfo.partyNameView.middleName?if_exists} ${picklistRoleInfo.partyNameView.lastName?if_exists} ${picklistRoleInfo.partyNameView.groupName?if_exists}
<span class="label">${uiLabelMap.PartyRole}</span> ${picklistRoleInfo.roleType.description}
<span class="label">${uiLabelMap.CommonFrom}</span> ${picklistRoleInfo.picklistRole.fromDate}
<#if picklistRoleInfo.picklistRole.thruDate?exists><span class="label">${uiLabelMap.CommonThru}</span> ${picklistRoleInfo.picklistRole.thruDate}</#if>
</div>
</#list>
<div class="tabletext" style="margin-left: 15px;">
<b>${uiLabelMap.ProductAssignPicker}:</b>
<div style="margin-left: 15px;">
<span class="label">${uiLabelMap.ProductAssignPicker}</span>
<form method="post" action="<@ofbizUrl>createPicklistRole</@ofbizUrl>" style="display: inline;">
<input type="hidden" name="facilityId" value="${facilityId}"/>
<input type="hidden" name="picklistId" value="${picklist.picklistId}"/>
<input type="hidden" name="roleTypeId" value="PICKER"/>
<select name="partyId" class="smallSelect">
<select name="partyId">
<#list partyRoleAndPartyDetailList as partyRoleAndPartyDetail>
<option value="${partyRoleAndPartyDetail.partyId}">${partyRoleAndPartyDetail.firstName?if_exists} ${partyRoleAndPartyDetail.middleName?if_exists} ${partyRoleAndPartyDetail.lastName?if_exists} ${partyRoleAndPartyDetail.groupName?if_exists} [${partyRoleAndPartyDetail.partyId}]</option>
</#list>
@@ -77,33 +81,33 @@ under the License.
<#-- PicklistStatusHistory -->
<#list picklistInfo.picklistStatusHistoryInfoList?if_exists as picklistStatusHistoryInfo>
<div class="tabletext" style="margin-left: 15px;">
<b>${uiLabelMap.CommonStatus}</b> ${uiLabelMap.CommonChange} ${uiLabelMap.CommonFrom} ${picklistStatusHistoryInfo.statusItem.get("description",locale)}
<div style="margin-left: 15px;">
<span class="label">${uiLabelMap.CommonStatus}</span> ${uiLabelMap.CommonChange} ${uiLabelMap.CommonFrom} ${picklistStatusHistoryInfo.statusItem.get("description",locale)}
${uiLabelMap.CommonTo} ${picklistStatusHistoryInfo.statusItemTo.description}
${uiLabelMap.CommonOn} ${picklistStatusHistoryInfo.picklistStatusHistory.changeDate}
${uiLabelMap.CommonBy} ${picklistStatusHistoryInfo.picklistStatusHistory.changeUserLoginId}
</div>
</#list>
<hr/>
<#-- PicklistBin -->
<#list picklistInfo.picklistBinInfoList?if_exists as picklistBinInfo>
<#assign isBinComplete = Static["org.ofbiz.shipment.picklist.PickListServices"].isBinComplete(delegator, picklistBinInfo.picklistBin.picklistBinId)/>
<#if (!isBinComplete)>
<div class="tabletext" style="margin-left: 15px;">
<b>${uiLabelMap.ProductBinNum}</b> ${picklistBinInfo.picklistBin.binLocationNumber}&nbsp;(${picklistBinInfo.picklistBin.picklistBinId})
<#if picklistBinInfo.primaryOrderHeader?exists><b>${uiLabelMap.ProductPrimaryOrderId}</b> ${picklistBinInfo.primaryOrderHeader.orderId}</#if>
<#if picklistBinInfo.primaryOrderItemShipGroup?exists><b>${uiLabelMap.ProductPrimaryShipGroupSeqId}</b> ${picklistBinInfo.primaryOrderItemShipGroup.shipGroupSeqId}</#if>
<div style="margin-left: 15px;">
<span class="label">${uiLabelMap.ProductBinNum}</span> ${picklistBinInfo.picklistBin.binLocationNumber}&nbsp;(${picklistBinInfo.picklistBin.picklistBinId})
<#if picklistBinInfo.primaryOrderHeader?exists><span class="label">${uiLabelMap.ProductPrimaryOrderId}</span> ${picklistBinInfo.primaryOrderHeader.orderId}</#if>
<#if picklistBinInfo.primaryOrderItemShipGroup?exists><span class="label">${uiLabelMap.ProductPrimaryShipGroupSeqId}</span> ${picklistBinInfo.primaryOrderItemShipGroup.shipGroupSeqId}</#if>
<#if !picklistBinInfo.picklistItemInfoList?has_content><a href="<@ofbizUrl>deletePicklistBin?picklistBinId=${picklistBinInfo.picklistBin.picklistBinId}&amp;facilityId=${facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a></#if>
</div>
<div class="tabletext" style="margin-left: 30px;">
<b>${uiLabelMap.CommonUpdate} ${uiLabelMap.ProductBinNum}:</b>
<div style="margin-left: 30px;">
<span class="label">${uiLabelMap.CommonUpdate} ${uiLabelMap.ProductBinNum}</span>
<form method="post" action="<@ofbizUrl>updatePicklistBin</@ofbizUrl>" style="display: inline;">
<input type="hidden" name="facilityId" value="${facilityId}"/>
<input type="hidden" name="picklistBinId" value="${picklistBinInfo.picklistBin.picklistBinId}"/>
${uiLabelMap.ProductLocation}#:
<span class="label">${uiLabelMap.ProductLocation}#</span>
<input type"text" size="2" name="binLocationNumber" value="${picklistBinInfo.picklistBin.binLocationNumber}"/>
${uiLabelMap.PageTitlePickList}:
<select name="picklistId" class="smallSelect">
<span class="label">${uiLabelMap.PageTitlePickList}</span>
<select name="picklistId">
<#list picklistActiveList as picklistActive>
<#assign picklistActiveStatusItem = picklistActive.getRelatedOneCache("StatusItem")>
<option value="${picklistActive.picklistId}"<#if picklistActive.picklistId == picklist.picklistId> selected</#if>>${picklistActive.picklistId} [${uiLabelMap.CommonDate}:${picklistActive.picklistDate},${uiLabelMap.CommonStatus}:${picklistActiveStatusItem.get("description",locale)}]</option>
@@ -115,22 +119,21 @@ under the License.
<#if picklistBinInfo.picklistItemInfoList?has_content>
<div style="margin-left: 30px;">
<table class="basic-table" cellspacing="0">
<tr>
<b>
<th>${uiLabelMap.ProductOrderId}</th>
<th>${uiLabelMap.OrderShipGroup}</th>
<th>${uiLabelMap.ProductOrderItem}</th>
<th>${uiLabelMap.ProductProduct}</th>
<th>${uiLabelMap.ProductInventoryItem}</th>
<th>${uiLabelMap.ProductLocation}</th>
<th>${uiLabelMap.ProductQuantity}</th>
<th>&nbsp;</th>
</b>
<tr class="header-row"
<td>${uiLabelMap.ProductOrderId}</td>
<td>${uiLabelMap.OrderShipGroup}</td>
<td>${uiLabelMap.ProductOrderItem}</td>
<td>${uiLabelMap.ProductProduct}</td>
<td>${uiLabelMap.ProductInventoryItem}</td>
<td>${uiLabelMap.ProductLocation}</td>
<td>${uiLabelMap.ProductQuantity}</td>
<td>&nbsp;</td>
</tr>
<#assign alt_row = false>
<#list picklistBinInfo.picklistItemInfoList?if_exists as picklistItemInfo>
<#assign picklistItem = picklistItemInfo.picklistItem>
<#assign inventoryItemAndLocation = picklistItemInfo.inventoryItemAndLocation>
<tr>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td>${picklistItem.orderId}</td>
<td>${picklistItem.shipGroupSeqId}</td>
<td>${picklistItem.orderItemSeqId}</td>
@@ -151,19 +154,20 @@ under the License.
</#list>
</td>
</tr>
<#-- toggle the row color -->
<#assign alt_row = !alt_row>
</#list>
</table>
</div>
</#if>
</#if>
</#list>
<#if picklistInfo_has_next>
<hr class="sepbar"/>
<hr/>
</#if>
</#list>
<#else/>
<h3>${uiLabelMap.ProductNoPicksStarted}.</h3>
</#if>
</div>
</div>
</div>
@@ -16,18 +16,20 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<div class="screenlet">
<div class="screenlet-header">
<div class="boxhead">${uiLabelMap.ProductFindOrdersToPick}</div>
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.ProductFindOrdersToPick}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<table class="basic-table">
<tr>
<th>${uiLabelMap.ProductShipmentMethod}</th>
<th>${uiLabelMap.ProductReadyToPick}</th>
<th>${uiLabelMap.ProductNeedStockMove}</th>
<th>&nbsp;</th>
<table cellspacing="0" class="basic-table">
<tr class="header-row">
<td>${uiLabelMap.ProductShipmentMethod}</td>
<td>${uiLabelMap.ProductReadyToPick}</td>
<td>${uiLabelMap.ProductNeedStockMove}</td>
<td>&nbsp;</td>
</tr>
<#if rushOrderInfo?has_content>
<#assign orderReadyToPickInfoList = rushOrderInfo.orderReadyToPickInfoList?if_exists>
@@ -55,6 +57,7 @@ under the License.
<#if pickMoveByShipmentMethodInfoList?has_content>
<#assign orderReadyToPickInfoListSizeTotal = 0>
<#assign orderNeedsStockMoveInfoListSizeTotal = 0>
<#assign alt_row = false>
<#list pickMoveByShipmentMethodInfoList as pickMoveByShipmentMethodInfo>
<#assign shipmentMethodType = pickMoveByShipmentMethodInfo.shipmentMethodType?if_exists>
<#assign orderReadyToPickInfoList = pickMoveByShipmentMethodInfo.orderReadyToPickInfoList?if_exists>
@@ -63,8 +66,8 @@ under the License.
<#assign orderNeedsStockMoveInfoListSize = (orderNeedsStockMoveInfoList.size())?default(0)>
<#assign orderReadyToPickInfoListSizeTotal = orderReadyToPickInfoListSizeTotal + orderReadyToPickInfoListSize>
<#assign orderNeedsStockMoveInfoListSizeTotal = orderNeedsStockMoveInfoListSizeTotal + orderNeedsStockMoveInfoListSize>
<tr>
<td><a href="<@ofbizUrl>PicklistOptions?viewDetail=${shipmentMethodType.shipmentMethodTypeId?if_exists}&facilityId=${facilityId?if_exists}</@ofbizUrl>" class="linktext"><#if shipmentMethodType?exists && shipmentMethodType?has_content>${shipmentMethodType.description}<#else>${groupName?if_exists}</#if></a></td>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td><a href="<@ofbizUrl>PicklistOptions?viewDetail=${shipmentMethodType.shipmentMethodTypeId?if_exists}&facilityId=${facilityId?if_exists}</@ofbizUrl>" class="buttontext"><#if shipmentMethodType?exists && shipmentMethodType?has_content>${shipmentMethodType.description}<#else>${groupName?if_exists}</#if></a></td>
<td>${orderReadyToPickInfoListSize}</td>
<td>${orderNeedsStockMoveInfoListSize}</td>
<td>
@@ -80,7 +83,8 @@ under the License.
<input type="hidden" name="orderIdList" value="${orderIdForPickList.orderHeader.orderId}"/>
</#list>
</#if>
${uiLabelMap.ProductPickFirst}:<input type="text" size="4" name="maxNumberOfOrders" value="20"/>
<span class="label">${uiLabelMap.ProductPickFirst}</span>
<input type="text" size="4" name="maxNumberOfOrders" value="20"/>
<input type="submit" value="${uiLabelMap.ProductCreatePicklist}"/>
</form>
<#else>
@@ -88,6 +92,8 @@ under the License.
</#if>
</td>
</tr>
<#-- toggle the row color -->
<#assign alt_row = !alt_row>
</#list>
<tr>
<th>${uiLabelMap.CommonAllMethods}</div></th>
@@ -97,7 +103,8 @@ under the License.
<#if (orderReadyToPickInfoListSizeTotal > 0)>
<form method="post" action="<@ofbizUrl>createPicklistFromOrders</@ofbizUrl>">
<input type="hidden" name="facilityId" value="${facilityId}"/>
${uiLabelMap.ProductPickFirst}:<input type="text" size="4" name="maxNumberOfOrders" value="20"/>
<span class="label">${uiLabelMap.ProductPickFirst}</span>
<input type="text" size="4" name="maxNumberOfOrders" value="20"/>
<input type="submit" value="${uiLabelMap.ProductCreatePicklist}"/>
</form>
<#else>
@@ -125,21 +132,25 @@ under the License.
<#if toPickList?has_content>
<div class="screenlet">
<div class="screenlet-header">
<div class="boxhead">${shipmentMethodType.description?if_exists} ${uiLabelMap.ProductPickingDetail}</div>
<div class="screenlet-title-bar">
<ul>
<li class="head3">${shipmentMethodType.description?if_exists} ${uiLabelMap.ProductPickingDetail}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<table class="basic-table">
<tr>
<th>${uiLabelMap.ProductOrderId}</th>
<th>${uiLabelMap.FormFieldTitle_orderDate}</th>
<th>${uiLabelMap.ProductChannel}</th>
<th>${uiLabelMap.ProductOrderItem}</th>
<th>${uiLabelMap.ProductDescription}</th>
<th>${uiLabelMap.OrderShipGroup}</th>
<th>${uiLabelMap.ProductQuantity}</th>
<th>${uiLabelMap.ProductQuantityNotAvailable}</th>
<table cellspacing="0" class="basic-table">
<tr class="header-row">
<td>${uiLabelMap.ProductOrderId}</td>
<td>${uiLabelMap.FormFieldTitle_orderDate}</td>
<td>${uiLabelMap.ProductChannel}</td>
<td>${uiLabelMap.ProductOrderItem}</td>
<td>${uiLabelMap.ProductDescription}</td>
<td>${uiLabelMap.OrderShipGroup}</td>
<td>${uiLabelMap.ProductQuantity}</td>
<td>${uiLabelMap.ProductQuantityNotAvailable}</td>
</tr>
<#assign alt_row = false>
<#list toPickList as toPick>
<#assign oiasgal = toPick.orderItemShipGrpInvResList>
<#assign header = toPick.orderHeader>
@@ -148,15 +159,15 @@ under the License.
<#list oiasgal as oiasga>
<#assign orderProduct = oiasga.getRelatedOne("OrderItem").getRelatedOne("Product")?if_exists>
<#assign product = oiasga.getRelatedOne("InventoryItem").getRelatedOne("Product")?if_exists>
<tr>
<td><a href="/ordermgr/control/orderview?orderId=${oiasga.orderId}${externalKeyParam}" class="linktext" target="_blank">${oiasga.orderId}</a></td>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td><a href="/ordermgr/control/orderview?orderId=${oiasga.orderId}${externalKeyParam}" class="buttontext" target="_blank">${oiasga.orderId}</a></td>
<td>${header.orderDate?string}</td>
<td>${(channel.description)?if_exists}</td>
<td>${oiasga.orderItemSeqId}</td>
<td>
<a href="/catalog/control/EditProduct?productId=${orderProduct.productId?if_exists}${externalKeyParam}" class="linktext" target="_blank">${(orderProduct.internalName)?if_exists}</a>
<a href="/catalog/control/EditProduct?productId=${orderProduct.productId?if_exists}${externalKeyParam}" class="buttontext" target="_blank">${(orderProduct.internalName)?if_exists}</a>
<#if orderProduct.productId != product.productId>
&nbsp;[<a href="/catalog/control/EditProduct?productId=${product.productId?if_exists}${externalKeyParam}" class="linktext" target="_blank">${(product.internalName)?if_exists}</a>]
&nbsp;[<a href="/catalog/control/EditProduct?productId=${product.productId?if_exists}${externalKeyParam}" class="buttontext" target="_blank">${(product.internalName)?if_exists}</a>]
</#if>
</td>
<td>${oiasga.shipGroupSeqId}</td>
@@ -164,9 +175,8 @@ under the License.
<td>${oiasga.quantityNotAvailable?if_exists}</td>
</tr>
</#list>
<tr>
<td colspan="8"><hr/></td>
</tr>
<#-- toggle the row color -->
<#assign alt_row = !alt_row>
</#list>
</table>
</div>
@@ -25,19 +25,22 @@ under the License.
<#assign index = index + 1>
<#assign labels = labelType.getRelated("InventoryItemLabel", Static["org.ofbiz.base.util.UtilMisc"].toList("inventoryItemLabelId"))>
<tr>
<th>${labelType.description?if_exists} [${labelType.inventoryItemLabelTypeId}]</th>
<td>
<select name="inventoryItemLabelId_${index}">
<option></option>
<#list labels as label>
<option value="${label.inventoryItemLabelId}" <#if parameters["inventoryItemLabelId_" + index]?has_content && parameters["inventoryItemLabelId_" + index] == label.inventoryItemLabelId>selected</#if>>${label.description?if_exists} [${label.inventoryItemLabelId}]</option>
</#list>
</select>
<div>
<span class="label">${labelType.description?if_exists} [${labelType.inventoryItemLabelTypeId}]</span>
&nbsp;
<select name="inventoryItemLabelId_${index}">
<option></option>
<#list labels as label>
<option value="${label.inventoryItemLabelId}" <#if parameters["inventoryItemLabelId_" + index]?has_content && parameters["inventoryItemLabelId_" + index] == label.inventoryItemLabelId>selected</#if>>${label.description?if_exists} [${label.inventoryItemLabelId}]</option>
</#list>
</select>
</div>
</td>
</tr>
</#list>
<tr>
<td colspan="2">
<td>
<input type="submit" value="${uiLabelMap.CommonSubmit}"/>
</td>
</tr>
@@ -16,14 +16,16 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<#assign unselectedClassName = "tabButton">
<#assign selectedClassMap = {page.tabButtonItem?default("void") : "tabButtonSelected"}>
<#assign selected = tabButtonItem?default("void")>
<#if facilityGroupId?has_content>
<div class="tabContainer">
<a href="<@ofbizUrl>EditFacilityGroup?facilityGroupId=${facilityGroupId}</@ofbizUrl>" class="${selectedClassMap.EditFacilityGroup?default(unselectedClassName)}">${uiLabelMap.ProductFacilityGroup}</a>
<a href="<@ofbizUrl>EditFacilityGroupRollup?facilityGroupId=${facilityGroupId}</@ofbizUrl>" class="${selectedClassMap.EditFacilityGroupRollup?default(unselectedClassName)}">${uiLabelMap.ProductRollups}</a>
<a href="<@ofbizUrl>EditFacilityGroupMembers?facilityGroupId=${facilityGroupId}</@ofbizUrl>" class="${selectedClassMap.EditFacilityGroupMembers?default(unselectedClassName)}">${uiLabelMap.ProductFacilities}</a>
<a href="<@ofbizUrl>EditFacilityGroupRoles?facilityGroupId=${facilityGroupId}</@ofbizUrl>" class="${selectedClassMap.EditFacilityGroupRoles?default(unselectedClassName)}">${uiLabelMap.PartyRoles}</a>
<div class="button-bar tab-bar">
<ul>
<li<#if selected="EditFacilityGroup"> class="selected"</#if>><a href="<@ofbizUrl>EditFacilityGroup?facilityGroupId=${facilityGroupId}</@ofbizUrl>">${uiLabelMap.ProductFacilityGroup}</a></li>
<li<#if selected="EditFacilityGroupRollup"> class="selected"</#if>><a href="<@ofbizUrl>EditFacilityGroupRollup?facilityGroupId=${facilityGroupId}</@ofbizUrl>">${uiLabelMap.ProductRollups}</a></li>
<li<#if selected="EditFacilityGroupMembers"> class="selected"</#if>><a href="<@ofbizUrl>EditFacilityGroupMembers?facilityGroupId=${facilityGroupId}</@ofbizUrl>">${uiLabelMap.ProductFacilities}</a></li>
<li<#if selected="EditFacilityGroupRoles"> class="selected"</#if>><a href="<@ofbizUrl>EditFacilityGroupRoles?facilityGroupId=${facilityGroupId}</@ofbizUrl>">${uiLabelMap.PartyRoles}</a></li>
</ul>
<br/>
</div>
</#if>
</#if>
@@ -16,232 +16,239 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<#if illegalInventoryItem?exists>
<div class="errorMessage">${illegalInventoryItem}</div>
</#if>
<span class="head1">${uiLabelMap.ProductInventoryTransfer}</span> <span class="head2">${uiLabelMap.CommonFrom}&nbsp;<#if facility?exists>${(facility.facilityName)?if_exists}</#if> [${uiLabelMap.CommonId}:${facilityId?if_exists}]</span>
<div class="button-bar">
<a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductNewFacility}</a>
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.ProductInventoryTransfer} ${uiLabelMap.CommonFrom} <#if facility?exists>${(facility.facilityName)?if_exists}</#if> [${uiLabelMap.CommonId}:${facilityId?if_exists}]</li>
<li><a href="<@ofbizUrl>PickMoveStockSimple?facilityId=${facilityId?if_exists}</@ofbizUrl>">${uiLabelMap.CommonPrint}</a></li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<#if illegalInventoryItem?exists>
<div class="errorMessage">${illegalInventoryItem}</div>
</#if>
<#-- <table border="0" cellpadding="2" cellspacing="0"> -->
<div class="button-bar">
<a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductNewFacility}</a>
</div>
<#if !(inventoryItem?exists)>
<form method="post" action="<@ofbizUrl>TransferInventoryItem</@ofbizUrl>" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0">
<#if !(inventoryItem?exists)>
<form method="post" action="<@ofbizUrl>TransferInventoryItem</@ofbizUrl>">
<table cellspacing="0" class="basic-table">
<tr>
<td width="25%" align="right" class="label">${uiLabelMap.ProductInventoryItemId}</td>
<td width="6%">&nbsp;</td>
<td width="25%">
<input type="text" name="inventoryItemId" size="20" maxlength="20">
<input type="hidden" name="facilityId" value="${facilityId}">
</td>
<td width="50%">
<input type="submit" value="${uiLabelMap.ProductGetItem}">
</td>
</tr>
</table>
</form>
<#else>
<#if !(inventoryTransfer?exists)>
<form method="post" action="<@ofbizUrl>CreateInventoryTransfer</@ofbizUrl>" name="transferform" style="margin: 0;">
<#else>
<form method="post" action="<@ofbizUrl>UpdateInventoryTransfer</@ofbizUrl>" name="transferform" style="margin: 0;">
<input type="hidden" name="inventoryTransferId" value="${inventoryTransferId?if_exists}">
</#if>
<script language="JavaScript" type="text/javascript">
function setNow(field) { eval('document.transferform.' + field + '.value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}"'); }
</script>
<table cellspacing="0" class="basic-table">
<input type="hidden" name="inventoryItemId" value="${inventoryItemId?if_exists}">
<input type="hidden" name="facilityId" value="${facilityId?if_exists}">
<input type="hidden" name="locationSeqId" value="${(inventoryItem.locationSeqId)?if_exists}">
<tr>
<td width="14%">&nbsp;</td>
<td width="6%"align="right"><span class="label">${uiLabelMap.ProductInventoryItemId}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">${inventoryItemId}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductInventoryItemTypeId}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItemType?exists>
${(inventoryItemType.get("description",locale))?if_exists}
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductProductId}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItem?exists && (inventoryItem.productId)?exists>
<a href="/catalog/control/EditProduct?productId=${(inventoryItem.productId)?if_exists}" class="buttontext">${(inventoryItem.productId)?if_exists}</a>
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductStatus}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">${(inventoryStatus.get("description",locale))?default("--")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductComments}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">${(inventoryItem.comments)?default("--")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductSerialAtpQoh}</span></td>
<td width="6%">&nbsp;</td>
<#if inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")>
<td width="74%">
${(inventoryItem.availableToPromiseTotal)?if_exists}&nbsp;
/&nbsp;${(inventoryItem.quantityOnHandTotal)?if_exists}
</td>
<#elseif inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
<td width="74%">${(inventoryItem.serialNumber)?if_exists}</td>
<#elseif inventoryItem?exists>
<td class="alert" width="74%">${uiLabelMap.ProductErrorType} ${(inventoryItem.inventoryItemTypeId)?if_exists} ${uiLabelMap.ProductUnknownSpecifyType}.</td>
</#if>
</tr>
<tr>
<td width="25%" align="right">${uiLabelMap.ProductInventoryItemId}</td>
<td width="14%">&nbsp;</td>
<td colspan="3"><hr/></td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductTransferStatus}</span></td>
<td width="6%">&nbsp;</td>
<td width="25%">
<input type="text" name="inventoryItemId" size="20" maxlength="20">
<input type="hidden" name="facilityId" value="${facilityId}">
<td width="74%">
<select name="statusId">
<#if (inventoryTransfer.statusId)?exists>
<#assign curStatusItem = inventoryTransfer.getRelatedOneCache("StatusItem")>
<option value="${(inventoryTransfer.statusId)?if_exists}">${(curStatusItem.get("description",locale))?if_exists}</option>
</#if>
<#list statusItems as statusItem>
<option value="${(statusItem.statusId)?if_exists}">${(statusItem.get("description",locale))?if_exists}</option>
</#list>
</select>
</td>
<td width="50%">
<input type="submit" value="${uiLabelMap.ProductGetItem}">
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductTransferSendDate}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="sendDate" value="${(inventoryTransfer.sendDate)?if_exists}" size="22">
<a href="#" onclick="setNow('sendDate')" class="buttontext">${uiLabelMap.CommonNow}</a>
</td>
</tr>
<#if !(inventoryTransfer?exists)>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductToFacilityContainer}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<div>
<select name="facilityIdTo">
<#list facilities as nextFacility>
<option value="${(nextFacility.facilityId)?if_exists}">${(nextFacility.facilityName)?if_exists} [${(nextFacility.facilityId)?if_exists}]</option>
</#list>
</select>
<span class="tooltip">${uiLabelMap.ProductSelectFacility}</span>
<br/>
<input type="text" name="containerIdTo" value="${(inventoryTransfer.containerIdTo)?if_exists}" size="20" maxlength="20">
<span class="tooltip">${uiLabelMap.ProductOrEnterContainerId}</span>
</div>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductToLocation}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" size="20" name="locationSeqIdTo" value="${(inventoryTransfer.locationSeqIdTo)?if_exists}" maxlength="20">
<a href="javascript:call_fieldlookup2(document.transferform.locationSeqIdTo,'LookupFacilityLocation');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductComments}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="comments" size="60" maxlength="250">
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductQuantityToTransfer}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")>
<input type="text" size="5" name="xferQty" value="${(inventoryItem.availableToPromiseTotal)?if_exists}">
<#elseif inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
<input type="hidden" name="xferQty" value="1">
1
<#elseif inventoryItem?exists>
<span class="alert">${uiLabelMap.ProductErrorType} ${(inventoryItem.inventoryItemTypeId)?if_exists} ${uiLabelMap.ProductUnknownSpecifyType}.</span>
</#if>
</td>
</tr>
<#else>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductTransferReceiveDate}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="receiveDate" value="${(inventoryTransfer.receiveDate)?if_exists}" size="22">
<a href="#" onclick="setNow('receiveDate')" class="buttontext">${uiLabelMap.CommonNow}</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductToFacilityContainer}</span></td>
<td width="6%">&nbsp;</td>
<#assign fac = delegator.findByPrimaryKey("Facility", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", inventoryTransfer.facilityIdTo))>
<td width="74%">${(fac.facilityName)?default("&nbsp;")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductToLocation}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" size="20" name="locationSeqIdTo" value="${(inventoryTransfer.locationSeqIdTo)?if_exists}" maxlength="20">
<a href="javascript:call_fieldlookup2(document.transferform.locationSeqIdTo,'LookupFacilityLocation?facilityId=${inventoryTransfer.facilityIdTo}');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><span class="label">${uiLabelMap.ProductComments}</span></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="comments" value="${(inventoryTransfer.comments)?if_exists}" size="60" maxlength="250">
</td>
</tr>
</#if>
<tr>
<td colspan="2">&nbsp;</td>
<#if !(inventoryTransfer?exists)>
<td colspan="1" align="left"><input type="submit" value="${uiLabelMap.ProductTransfer}"></td>
<#else>
<td colspan="1" align="left"><input type="submit" value="${uiLabelMap.CommonUpdate}"></td>
</#if>
</tr>
</table>
</form>
<#else>
<#if !(inventoryTransfer?exists)>
<form method="post" action="<@ofbizUrl>CreateInventoryTransfer</@ofbizUrl>" name="transferform" style="margin: 0;">
<#else>
<form method="post" action="<@ofbizUrl>UpdateInventoryTransfer</@ofbizUrl>" name="transferform" style="margin: 0;">
<input type="hidden" name="inventoryTransferId" value="${inventoryTransferId?if_exists}">
</#if>
<script language="JavaScript" type="text/javascript">
function setNow(field) { eval('document.transferform.' + field + '.value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}"'); }
</script>
<table border="0" cellpadding="2" cellspacing="0">
<input type="hidden" name="inventoryItemId" value="${inventoryItemId?if_exists}">
<input type="hidden" name="facilityId" value="${facilityId?if_exists}">
<input type="hidden" name="locationSeqId" value="${(inventoryItem.locationSeqId)?if_exists}">
<tr>
<td width="14%">&nbsp;</td>
<td width="6%"align="right">${uiLabelMap.ProductInventoryItemId}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<b>${inventoryItemId}</b>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductInventoryItemTypeId}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItemType?exists>
${(inventoryItemType.get("description",locale))?if_exists}
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><div class="tabletext">${uiLabelMap.ProductProductId}</div></td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItem?exists && (inventoryItem.productId)?exists>
<a href="/catalog/control/EditProduct?productId=${(inventoryItem.productId)?if_exists}" class="buttontext">${(inventoryItem.productId)?if_exists}</a>
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><div class="tabletext">${uiLabelMap.ProductStatus}</div></td>
<td width="6%">&nbsp;</td>
<td width="74%">${(inventoryStatus.get("description",locale))?default("--")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductComments}</td>
<td width="6%">&nbsp;</td>
<td width="74%">${(inventoryItem.comments)?default("--")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap><div class="tabletext">${uiLabelMap.ProductSerialAtpQoh}</div></td>
<td width="6%">&nbsp;</td>
<#if inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")>
<td width="74%">
${(inventoryItem.availableToPromiseTotal)?if_exists}&nbsp;
/&nbsp;${(inventoryItem.quantityOnHandTotal)?if_exists}
</td>
<#elseif inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
<td width="74%">${(inventoryItem.serialNumber)?if_exists}</td>
<#elseif inventoryItem?exists>
<td class="alert" width="74%">${uiLabelMap.ProductErrorType} ${(inventoryItem.inventoryItemTypeId)?if_exists} ${uiLabelMap.ProductUnknownSpecifyType}.</td>
</#if>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td colspan="3"><hr/></td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="left" nowrap>${uiLabelMap.ProductTransferStatus}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<select name="statusId">
<#if (inventoryTransfer.statusId)?exists>
<#assign curStatusItem = inventoryTransfer.getRelatedOneCache("StatusItem")>
<option value="${(inventoryTransfer.statusId)?if_exists}">${(curStatusItem.get("description",locale))?if_exists}</option>
</#if>
<#list statusItems as statusItem>
<option value="${(statusItem.statusId)?if_exists}">${(statusItem.get("description",locale))?if_exists}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductTransferSendDate}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="sendDate" value="${(inventoryTransfer.sendDate)?if_exists}" size="22">
<a href="#" onclick="setNow('sendDate')" class="buttontext">${uiLabelMap.CommonNow}</a>
</td>
</tr>
<#if !(inventoryTransfer?exists)>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductToFacilityContainer}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
${uiLabelMap.ProductSelectFacility}:
<select name="facilityIdTo">
<#list facilities as nextFacility>
<option value="${(nextFacility.facilityId)?if_exists}">${(nextFacility.facilityName)?if_exists} [${(nextFacility.facilityId)?if_exists}]</option>
</#list>
</select>
<br/>
${uiLabelMap.ProductOrEnterContainerId}:
<input type="text" name="containerIdTo" value="${(inventoryTransfer.containerIdTo)?if_exists}" size="20" maxlength="20">
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductToLocation}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" size="20" name="locationSeqIdTo" value="${(inventoryTransfer.locationSeqIdTo)?if_exists}" maxlength="20">
<a href="javascript:call_fieldlookup2(document.transferform.locationSeqIdTo,'LookupFacilityLocation');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductComments}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="comments" size="60" maxlength="250">
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductQuantityToTransfer}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")>
<input type="text" size="5" name="xferQty" value="${(inventoryItem.availableToPromiseTotal)?if_exists}">
<#elseif inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
<input type="hidden" name="xferQty" value="1">
1
<#elseif inventoryItem?exists>
<span class="alert">${uiLabelMap.ProductErrorType} ${(inventoryItem.inventoryItemTypeId)?if_exists} ${uiLabelMap.ProductUnknownSpecifyType}.</span>
</#if>
</td>
</tr>
<#else>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductTransferReceiveDate}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="receiveDate" value="${(inventoryTransfer.receiveDate)?if_exists}" size="22">
<a href="#" onclick="setNow('receiveDate')" class="buttontext">${uiLabelMap.CommonNow}</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductToFacilityContainer}</td>
<td width="6%">&nbsp;</td>
<#assign fac = delegator.findByPrimaryKey("Facility", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", inventoryTransfer.facilityIdTo))>
<td width="74%">${(fac.facilityName)?default("&nbsp;")}</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductToLocation}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" size="20" name="locationSeqIdTo" value="${(inventoryTransfer.locationSeqIdTo)?if_exists}" maxlength="20">
<a href="javascript:call_fieldlookup2(document.transferform.locationSeqIdTo,'LookupFacilityLocation?facilityId=${inventoryTransfer.facilityIdTo}');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductComments}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="comments" value="${(inventoryTransfer.comments)?if_exists}" size="60" maxlength="250">
</td>
</tr>
</#if>
<tr>
<td colspan="2">&nbsp;</td>
<#if !(inventoryTransfer?exists)>
<td colspan="1" align="left"><input type="submit" value="${uiLabelMap.ProductTransfer}"></td>
<#else>
<td colspan="1" align="left"><input type="submit" value="${uiLabelMap.CommonUpdate}"></td>
</#if>
</tr>
</table>
</form>
</#if>
</div>
</div>
@@ -16,485 +16,492 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="head3">${uiLabelMap.ProductReceiveInventory} ${uiLabelMap.CommonInto} <#if facility?has_content>"${facility.facilityName?default("Not Defined")}"</#if> [${uiLabelMap.CommonId} :${facility.facilityId?if_exists}]</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<#if invalidProductId?exists>
<div class="errorMessage">${invalidProductId}</div>
</#if>
<div class="button-bar">
<a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductNewFacility}</a>
</div>
<#if invalidProductId?exists>
<div class="errorMessage">${invalidProductId}</div>
</#if>
<script language="JavaScript">
function setNow(field) { eval('document.selectAllForm.' + field + '.value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}"'); }
</script>
<span class="head1">${uiLabelMap.ProductReceiveInventory}</span> <span class="head2">${uiLabelMap.CommonInto}&nbsp;<#if facility?has_content>"${facility.facilityName?default("Not Defined")}"</#if> [${uiLabelMap.CommonId} :${facility.facilityId?if_exists}]</span>
<div class="button-bar">
<a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductNewFacility}</a>
</div>
<br/>
<script language="JavaScript">
function setNow(field) { eval('document.selectAllForm.' + field + '.value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}"'); }
</script>
<br/>
<#-- Receiving Results -->
<#if receivedItems?has_content>
<h3>${uiLabelMap.ProductReceiptPurchaseOrder} #${purchaseOrder.orderId}</h3>
<hr/>
<table class="basic-table" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.ProductShipmentId}#</td>
<td>${uiLabelMap.ProductReceipt}#</td>
<td>${uiLabelMap.CommonDate}</td>
<td>${uiLabelMap.ProductPo} #</td>
<td>${uiLabelMap.ProductLine} #</td>
<td>${uiLabelMap.ProductProductId}</td>
<td>${uiLabelMap.ProductPerUnitPrice}</td>
<td>${uiLabelMap.CommonRejected}</td>
<td>${uiLabelMap.CommonAccepted}</td>
</tr>
<#list receivedItems as item>
<tr>
<td><a href="<@ofbizUrl>ViewShipment?shipmentId=${item.shipmentId?if_exists}</@ofbizUrl>" class="buttontext">${item.shipmentId?if_exists}</a></td>
<td>${item.receiptId}</td>
<td>${item.getString("datetimeReceived").toString()}</td>
<td><a href="/ordermgr/control/orderview?orderId=${item.orderId}" class="buttontext">${item.orderId}</a></td>
<td>${item.orderItemSeqId}</td>
<td>${item.productId?default("Not Found")}</td>
<td>${item.unitCost?default(0)?string("##0.00")}</td>
<td>${item.quantityRejected?default(0)?string.number}</td>
<td>${item.quantityAccepted?string.number}</td>
</tr>
</#list>
<tr><td colspan="9"><hr/></td></tr>
</table>
<br/>
</#if>
<#-- Single Product Receiving -->
<#if requestParameters.initialSelected?exists && product?has_content>
<form method="post" action="<@ofbizUrl>receiveSingleInventoryProduct</@ofbizUrl>" name="selectAllForm">
<table border="0" cellpadding="2" cellspacing="0">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<#-- special service fields -->
<input type="hidden" name="productId" value="${requestParameters.productId?if_exists}"/>
<#if purchaseOrder?has_content>
<#assign unitCost = firstOrderItem.unitPrice?default(standardCosts.get(firstOrderItem.productId)?default(0))/>
<input type="hidden" name="orderId" value="${purchaseOrder.orderId}"/>
<input type="hidden" name="orderItemSeqId" value="${firstOrderItem.orderItemSeqId}"/>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductPurchaseOrder}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<b>${purchaseOrder.orderId}</b>&nbsp;/&nbsp;<b>${firstOrderItem.orderItemSeqId}</b>
<#if 1 < purchaseOrderItemsSize>
(${uiLabelMap.ProductMultipleOrderItemsProduct} - ${purchaseOrderItemsSize}:1 ${uiLabelMap.ProductItemProduct})
<#else>
(${uiLabelMap.ProductSingleOrderItemProduct} - 1:1 ${uiLabelMap.ProductItemProduct})
</#if>
</td>
</tr>
</#if>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductProductId}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<b>${requestParameters.productId?if_exists}</b>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductProductName}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<a href="/catalog/control/EditProduct?productId=${product.productId}${externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.internalName?if_exists}</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductProductDescription}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
${product.description?if_exists}
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductItemDescription}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="itemDescription" size="30" maxlength="60"/>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductInventoryItemType}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<select name="inventoryItemTypeId" size="1">
<#list inventoryItemTypes as nextInventoryItemType>
<option value="${nextInventoryItemType.inventoryItemTypeId}"
<#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)>
selected="selected"
</#if>
>${nextInventoryItemType.get("description",locale)?default(nextInventoryItemType.inventoryItemTypeId)}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductFacilityOwner}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="ownerPartyId" value="" size="20" maxlength="20">
<a href="javascript:call_fieldlookup2(document.selectAllForm.ownerPartyId, 'LookupPartyName');"><img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Lookup"/></a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductDateReceived}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="datetimeReceived" size="24" value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}">
<#-- <a href="#" onclick="setNow("datetimeReceived")" class="buttontext">[Now]</a> -->
</td>
</tr>
<#-- facility location(s) -->
<#assign facilityLocations = (product.getRelatedByAnd("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId)))?if_exists/>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductFacilityLocation}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if facilityLocations?has_content>
<select name="locationSeqId">
<#list facilityLocations as productFacilityLocation>
<#assign facility = productFacilityLocation.getRelatedOneCache("Facility")/>
<#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation")?if_exists/>
<#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists/>
<option value="${productFacilityLocation.locationSeqId}"><#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}</#if><#if facilityLocationTypeEnum?exists>(${facilityLocationTypeEnum.get("description",locale)})</#if>[${productFacilityLocation.locationSeqId}]</option>
</#list>
<option value="">${uiLabelMap.ProductNoLocation}</option>
</select>
<#else>
<input type="text" name="locationSeqId" size="20" maxlength="20"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.locationSeqId,'LookupFacilityLocation<#if parameters.facilityId?exists>?facilityId=${facilityId}</#if>');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductRejectedReason}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<select name="rejectionId" size="1">
<option></option>
<#list rejectReasons as nextRejection>
<option value="${nextRejection.rejectionId}">${nextRejection.get("description",locale)?default(nextRejection.rejectionId)}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductQuantityRejected}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="quantityRejected" size="5" value="0" />
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductQuantityAccepted}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="quantityAccepted" size="5" value="${defaultQuantity?default(1)?string.number}"/>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap>${uiLabelMap.ProductPerUnitPrice}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#-- get the default unit cost -->
<#if (!unitCost?exists || unitCost == 0.0)><#assign unitCost = standardCosts.get(product.productId)?default(0)/></#if>
<input type="text" name="unitCost" size="10" value="${unitCost}"/>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2"><input type="submit" value="${uiLabelMap.CommonReceive}"></td>
</tr>
</table>
<script language="JavaScript">
document.selectAllForm.quantityAccepted.focus();
</script>
</form>
<#-- Select Shipment Screen -->
<#elseif requestParameters.initialSelected?exists && !requestParameters.shipmentId?exists>
<h3>${uiLabelMap.ProductSelectShipmentReceive}</h3>
<form method="post" action="<@ofbizUrl>ReceiveInventory</@ofbizUrl>" name="selectAllForm">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<#list shipments?if_exists as shipment>
<#assign originFacility = shipment.getRelatedOneCache("OriginFacility")?if_exists/>
<#assign destinationFacility = shipment.getRelatedOneCache("DestinationFacility")?if_exists/>
<#assign statusItem = shipment.getRelatedOneCache("StatusItem")/>
<#assign shipmentType = shipment.getRelatedOneCache("ShipmentType")/>
<#assign shipmentDate = shipment.estimatedArrivalDate?if_exists/>
<tr>
<td><hr/></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<#-- Receiving Results -->
<#if receivedItems?has_content>
<h3>${uiLabelMap.ProductReceiptPurchaseOrder} #${purchaseOrder.orderId}</h3>
<hr/>
<table class="basic-table" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.ProductShipmentId}#</td>
<td>${uiLabelMap.ProductReceipt}#</td>
<td>${uiLabelMap.CommonDate}</td>
<td>${uiLabelMap.ProductPo} #</td>
<td>${uiLabelMap.ProductLine} #</td>
<td>${uiLabelMap.ProductProductId}</td>
<td>${uiLabelMap.ProductPerUnitPrice}</td>
<td>${uiLabelMap.CommonRejected}</td>
<td>${uiLabelMap.CommonAccepted}</td>
</tr>
<#list receivedItems as item>
<tr>
<td width="5%" nowrap><input type="radio" name="shipmentId" value="${shipment.shipmentId}"></td>
<td width="5%" nowrap>${shipment.shipmentId}</td>
<td>${shipmentType.get("description",locale)?default(shipmentType.shipmentTypeId?default(""))}</td>
<td>${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}</td>
<td>${(originFacility.facilityName)?if_exists} [${shipment.originFacilityId?if_exists}]</td>
<td>${(destinationFacility.facilityName)?if_exists} [${shipment.destinationFacilityId?if_exists}]</td>
<td style="white-space: nowrap;">${(shipment.estimatedArrivalDate.toString())?if_exists}</td>
<td><a href="<@ofbizUrl>ViewShipment?shipmentId=${item.shipmentId?if_exists}</@ofbizUrl>" class="buttontext">${item.shipmentId?if_exists}</a></td>
<td>${item.receiptId}</td>
<td>${item.getString("datetimeReceived").toString()}</td>
<td><a href="/ordermgr/control/orderview?orderId=${item.orderId}" class="buttontext">${item.orderId}</a></td>
<td>${item.orderItemSeqId}</td>
<td>${item.productId?default("Not Found")}</td>
<td>${item.unitCost?default(0)?string("##0.00")}</td>
<td>${item.quantityRejected?default(0)?string.number}</td>
<td>${item.quantityAccepted?string.number}</td>
</tr>
</#list>
<tr><td colspan="9"><hr/></td></tr>
</table>
<br/>
</#if>
<#-- Single Product Receiving -->
<#if requestParameters.initialSelected?exists && product?has_content>
<form method="post" action="<@ofbizUrl>receiveSingleInventoryProduct</@ofbizUrl>" name="selectAllForm">
<table class="basic-table" cellspacing="0">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<#-- special service fields -->
<input type="hidden" name="productId" value="${requestParameters.productId?if_exists}"/>
<#if purchaseOrder?has_content>
<#assign unitCost = firstOrderItem.unitPrice?default(standardCosts.get(firstOrderItem.productId)?default(0))/>
<input type="hidden" name="orderId" value="${purchaseOrder.orderId}"/>
<input type="hidden" name="orderItemSeqId" value="${firstOrderItem.orderItemSeqId}"/>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductPurchaseOrder}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<b>${purchaseOrder.orderId}</b>&nbsp;/&nbsp;<b>${firstOrderItem.orderItemSeqId}</b>
<#if 1 < purchaseOrderItemsSize>
(${uiLabelMap.ProductMultipleOrderItemsProduct} - ${purchaseOrderItemsSize}:1 ${uiLabelMap.ProductItemProduct})
<#else>
(${uiLabelMap.ProductSingleOrderItemProduct} - 1:1 ${uiLabelMap.ProductItemProduct})
</#if>
</td>
</tr>
</#if>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductProductId}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<b>${requestParameters.productId?if_exists}</b>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductProductName}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<a href="/catalog/control/EditProduct?productId=${product.productId}${externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.internalName?if_exists}</a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductProductDescription}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
${product.description?if_exists}
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductItemDescription}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="itemDescription" size="30" maxlength="60"/>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductInventoryItemType}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<select name="inventoryItemTypeId" size="1">
<#list inventoryItemTypes as nextInventoryItemType>
<option value="${nextInventoryItemType.inventoryItemTypeId}"
<#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)>
selected="selected"
</#if>
>${nextInventoryItemType.get("description",locale)?default(nextInventoryItemType.inventoryItemTypeId)}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductFacilityOwner}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="ownerPartyId" value="" size="20" maxlength="20">
<a href="javascript:call_fieldlookup2(document.selectAllForm.ownerPartyId, 'LookupPartyName');"><img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Lookup"/></a>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductDateReceived}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="datetimeReceived" size="24" value="${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}">
<#-- <a href="#" onclick="setNow("datetimeReceived")" class="buttontext">[Now]</a> -->
</td>
</tr>
<#-- facility location(s) -->
<#assign facilityLocations = (product.getRelatedByAnd("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId)))?if_exists/>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductFacilityLocation}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#if facilityLocations?has_content>
<select name="locationSeqId">
<#list facilityLocations as productFacilityLocation>
<#assign facility = productFacilityLocation.getRelatedOneCache("Facility")/>
<#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation")?if_exists/>
<#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists/>
<option value="${productFacilityLocation.locationSeqId}"><#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}</#if><#if facilityLocationTypeEnum?exists>(${facilityLocationTypeEnum.get("description",locale)})</#if>[${productFacilityLocation.locationSeqId}]</option>
</#list>
<option value="">${uiLabelMap.ProductNoLocation}</option>
</select>
<#else>
<input type="text" name="locationSeqId" size="20" maxlength="20"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.locationSeqId,'LookupFacilityLocation<#if parameters.facilityId?exists>?facilityId=${facilityId}</#if>');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</#if>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductRejectedReason}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<select name="rejectionId" size="1">
<option></option>
<#list rejectReasons as nextRejection>
<option value="${nextRejection.rejectionId}">${nextRejection.get("description",locale)?default(nextRejection.rejectionId)}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductQuantityRejected}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="quantityRejected" size="5" value="0" />
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductQuantityAccepted}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<input type="text" name="quantityAccepted" size="5" value="${defaultQuantity?default(1)?string.number}"/>
</td>
</tr>
<tr>
<td width="14%">&nbsp;</td>
<td width="6%" align="right" nowrap class="label">${uiLabelMap.ProductPerUnitPrice}</td>
<td width="6%">&nbsp;</td>
<td width="74%">
<#-- get the default unit cost -->
<#if (!unitCost?exists || unitCost == 0.0)><#assign unitCost = standardCosts.get(product.productId)?default(0)/></#if>
<input type="text" name="unitCost" size="10" value="${unitCost}"/>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2"><input type="submit" value="${uiLabelMap.CommonReceive}"></td>
</tr>
</table>
</td>
</tr>
</#list>
<tr>
<td><hr/></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="5%" nowrap><input type="radio" name="shipmentId" value="_NA_"></td>
<td width="5%" nowrap>${uiLabelMap.ProductNoSpecificShipment}</td>
<td colspan="5"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveSelectedShipment}</a></td>
</tr>
</table>
</form>
<script language="JavaScript">
document.selectAllForm.quantityAccepted.focus();
</script>
</form>
<#-- Multi-Item PO Receiving -->
<#elseif requestParameters.initialSelected?exists && purchaseOrder?has_content>
<form method="post" action="<@ofbizUrl>receiveInventoryProduct</@ofbizUrl>" name="selectAllForm">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<input type="hidden" name="_useRowSubmit" value="Y"/>
<#assign now = Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()/>
<#assign rowCount = 0/>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<#if !purchaseOrderItems?exists || purchaseOrderItemsSize == 0>
<tr>
<td colspan="2">${uiLabelMap.ProductNoItemsPoReceive}.</td>
</tr>
<#else/>
<tr>
<td>
<h3>${uiLabelMap.ProductReceivePurchaseOrder} #${purchaseOrder.orderId}</h3>
<#if shipment?has_content>
<h3>${uiLabelMap.ProductShipmentId} #${shipment.shipmentId}</h3>
</#if>
</td>
<td align="right">
${uiLabelMap.CommonSelectAll}
<input type="checkbox" name="selectAll" value="Y" onclick="javascript:toggleAll(this, 'selectAllForm');"/>
</td>
</tr>
<#list purchaseOrderItems as orderItem>
<#assign defaultQuantity = orderItem.quantity - receivedQuantities[orderItem.orderItemSeqId]?double/>
<#assign itemCost = orderItem.unitPrice?default(0)/>
<#assign salesOrderItem = salesOrderItems[orderItem.orderItemSeqId]?if_exists/>
<#if shipment?has_content>
<#assign defaultQuantity = shippedQuantities[orderItem.orderItemSeqId]?double - receivedQuantities[orderItem.orderItemSeqId]?double/>
</#if>
<#if 0 < defaultQuantity>
<#assign orderItemType = orderItem.getRelatedOne("OrderItemType")/>
<input type="hidden" name="orderId_o_${rowCount}" value="${orderItem.orderId}"/>
<input type="hidden" name="orderItemSeqId_o_${rowCount}" value="${orderItem.orderItemSeqId}"/>
<input type="hidden" name="facilityId_o_${rowCount}" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="datetimeReceived_o_${rowCount}" value="${now}"/>
<#if shipment?exists && shipment.shipmentId?has_content>
<input type="hidden" name="shipmentId_o_${rowCount}" value="${shipment.shipmentId}"/>
</#if>
<#if salesOrderItem?has_content>
<input type="hidden" name="priorityOrderId_o_${rowCount}" value="${salesOrderItem.orderId}"/>
<input type="hidden" name="priorityOrderItemSeqId_o_${rowCount}" value="${salesOrderItem.orderItemSeqId}"/>
</#if>
<tr>
<td colspan="2"><hr/></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<#-- Select Shipment Screen -->
<#elseif requestParameters.initialSelected?exists && !requestParameters.shipmentId?exists>
<h3>${uiLabelMap.ProductSelectShipmentReceive}</h3>
<form method="post" action="<@ofbizUrl>ReceiveInventory</@ofbizUrl>" name="selectAllForm">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<table class="basic-table" cellspacing="0">
<#list shipments?if_exists as shipment>
<#assign originFacility = shipment.getRelatedOneCache("OriginFacility")?if_exists/>
<#assign destinationFacility = shipment.getRelatedOneCache("DestinationFacility")?if_exists/>
<#assign statusItem = shipment.getRelatedOneCache("StatusItem")/>
<#assign shipmentType = shipment.getRelatedOneCache("ShipmentType")/>
<#assign shipmentDate = shipment.estimatedArrivalDate?if_exists/>
<tr>
<#if orderItem.productId?exists>
<#assign product = orderItem.getRelatedOneCache("Product")/>
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId}"/>
<td width="45%">
${orderItem.orderItemSeqId}:&nbsp;<a href="/catalog/control/EditProduct?productId=${product.productId}${externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.productId}&nbsp;-&nbsp;${orderItem.itemDescription?if_exists}</a> : ${product.description?if_exists}
</td>
<#else>
<td width="45%">
<b>${orderItemType.get("description",locale)}</b> : ${orderItem.itemDescription?if_exists}&nbsp;&nbsp;
<input type="text" size="12" name="productId_o_${rowCount}"/>
<a href="/catalog/control/EditProduct?externalLoginKey=${externalLoginKey}" target="catalog" class="buttontext">${uiLabelMap.ProductCreateProduct}</a>
</td>
</#if>
<td align="right">${uiLabelMap.ProductLocation}:</td>
<#-- location(s) -->
<td align="right">
<#assign facilityLocations = (orderItem.getRelatedByAnd("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId)))?if_exists/>
<#if facilityLocations?has_content>
<select name="locationSeqId_o_${rowCount}">
<#list facilityLocations as productFacilityLocation>
<#assign facility = productFacilityLocation.getRelatedOneCache("Facility")/>
<#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation")?if_exists/>
<#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists/>
<option value="${productFacilityLocation.locationSeqId}"><#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}</#if><#if facilityLocationTypeEnum?exists>(${facilityLocationTypeEnum.get("description",locale)})</#if>[${productFacilityLocation.locationSeqId}]</option>
</#list>
<option value="">${uiLabelMap.ProductNoLocation}</option>
</select>
<#else>
<input type="text" name="locationSeqId_o_${rowCount}" size="12"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.locationSeqId_o_${rowCount},'LookupFacilityLocation<#if parameters.facilityId?exists>?facilityId=${facilityId}</#if>');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
<td><hr/></td>
</tr>
<tr>
<td>
<table class="basic-table" cellspacing="0">
<tr>
<td width="5%" nowrap><input type="radio" name="shipmentId" value="${shipment.shipmentId}"></td>
<td width="5%" nowrap>${shipment.shipmentId}</td>
<td>${shipmentType.get("description",locale)?default(shipmentType.shipmentTypeId?default(""))}</td>
<td>${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}</td>
<td>${(originFacility.facilityName)?if_exists} [${shipment.originFacilityId?if_exists}]</td>
<td>${(destinationFacility.facilityName)?if_exists} [${shipment.destinationFacilityId?if_exists}]</td>
<td style="white-space: nowrap;">${(shipment.estimatedArrivalDate.toString())?if_exists}</td>
</tr>
</table>
</td>
</tr>
</#list>
<tr>
<td><hr/></td>
</tr>
<tr>
<td>
<table class="basic-table" cellspacing="0">
<tr>
<td width="5%" nowrap><input type="radio" name="shipmentId" value="_NA_"></td>
<td width="5%" nowrap>${uiLabelMap.ProductNoSpecificShipment}</td>
<td colspan="5"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveSelectedShipment}</a></td>
</tr>
</table>
</form>
<#-- Multi-Item PO Receiving -->
<#elseif requestParameters.initialSelected?exists && purchaseOrder?has_content>
<form method="post" action="<@ofbizUrl>receiveInventoryProduct</@ofbizUrl>" name="selectAllForm">
<#-- general request fields -->
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="purchaseOrderId" value="${requestParameters.purchaseOrderId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<input type="hidden" name="_useRowSubmit" value="Y"/>
<#assign now = Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()/>
<#assign rowCount = 0/>
<table class="basic-table" cellspacing="0">
<#if !purchaseOrderItems?exists || purchaseOrderItemsSize == 0>
<tr>
<td colspan="2">${uiLabelMap.ProductNoItemsPoReceive}.</td>
</tr>
<#else/>
<tr>
<td>
<h3>${uiLabelMap.ProductReceivePurchaseOrder} #${purchaseOrder.orderId}</h3>
<#if shipment?has_content>
<h3>${uiLabelMap.ProductShipmentId} #${shipment.shipmentId}</h3>
</#if>
</td>
<td align="right">${uiLabelMap.ProductQtyReceived} :</td>
<td align="right">
<input type="text" name="quantityAccepted_o_${rowCount}" size="6" value="${defaultQuantity?string.number}"/>
${uiLabelMap.CommonSelectAll}
<input type="checkbox" name="selectAll" value="Y" onclick="javascript:toggleAll(this, 'selectAllForm');"/>
</td>
</tr>
<tr>
<td width="45%">
${uiLabelMap.ProductInventoryItemType} :&nbsp;
<select name="inventoryItemTypeId_o_${rowCount}" size="1">
<#list inventoryItemTypes as nextInventoryItemType>
<option value="${nextInventoryItemType.inventoryItemTypeId}"
<#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)>
selected="selected"
</#if>
>${nextInventoryItemType.get("description",locale)?default(nextInventoryItemType.inventoryItemTypeId)}</option>
</#list>
</select>
</td>
<td align="right">${uiLabelMap.ProductRejectionReason} :</td>
<td align="right">
<select name="rejectionId_o_${rowCount}" size="1">
<option></option>
<#list rejectReasons as nextRejection>
<option value="${nextRejection.rejectionId}">${nextRejection.get("description",locale)?default(nextRejection.rejectionId)}</option>
</#list>
</select>
</td>
<td align="right">${uiLabelMap.ProductQtyRejected} :</td>
<td align="right">
<input type="text" name="quantityRejected_o_${rowCount}" value="0" size="6"/>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right">${uiLabelMap.ProductFacilityOwner}:</td>
<td align="right"><input type="text" name="ownerPartyId_o_${rowCount}" size="20" maxlength="20" value="${facility.ownerPartyId}"/></td>
<td align="right">${uiLabelMap.ProductPerUnitPrice} :</td>
<td align="right">
<input type="hidden" name="currencyUomId_o_${rowCount}" value="${currencyUomId?if_exists}"/>
<input type="text" name="unitCost_o_${rowCount}" value="${itemCost}" size="6" maxlength="20"/>
${currencyUomId?if_exists}
</td>
</tr>
</table>
</td>
<td align="right">
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, 'selectAllForm');"/>
</td>
</tr>
<#assign rowCount = rowCount + 1>
</#if>
</#list>
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
<#if rowCount == 0>
<tr>
<td colspan="2">${uiLabelMap.ProductNoItemsPo} #${purchaseOrder.orderId} ${uiLabelMap.ProductToReceive}.</td>
</tr>
<tr>
<td colspan="2" align="right">
<a href="<@ofbizUrl>ReceiveInventory?facilityId=${requestParameters.facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductReturnToReceiving}</a>
</td>
</tr>
<#else>
<tr>
<td colspan="2" align="right">
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveSelectedProduct}</a>
</td>
</tr>
</#if>
</#if>
</table>
<input type="hidden" name="_rowCount" value="${rowCount}"/>
</form>
<script language="JavaScript" type="text/javascript">selectAll('selectAllForm');</script>
<#list purchaseOrderItems as orderItem>
<#assign defaultQuantity = orderItem.quantity - receivedQuantities[orderItem.orderItemSeqId]?double/>
<#assign itemCost = orderItem.unitPrice?default(0)/>
<#assign salesOrderItem = salesOrderItems[orderItem.orderItemSeqId]?if_exists/>
<#if shipment?has_content>
<#assign defaultQuantity = shippedQuantities[orderItem.orderItemSeqId]?double - receivedQuantities[orderItem.orderItemSeqId]?double/>
</#if>
<#if 0 < defaultQuantity>
<#assign orderItemType = orderItem.getRelatedOne("OrderItemType")/>
<input type="hidden" name="orderId_o_${rowCount}" value="${orderItem.orderId}"/>
<input type="hidden" name="orderItemSeqId_o_${rowCount}" value="${orderItem.orderItemSeqId}"/>
<input type="hidden" name="facilityId_o_${rowCount}" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="datetimeReceived_o_${rowCount}" value="${now}"/>
<#if shipment?exists && shipment.shipmentId?has_content>
<input type="hidden" name="shipmentId_o_${rowCount}" value="${shipment.shipmentId}"/>
</#if>
<#if salesOrderItem?has_content>
<input type="hidden" name="priorityOrderId_o_${rowCount}" value="${salesOrderItem.orderId}"/>
<input type="hidden" name="priorityOrderItemSeqId_o_${rowCount}" value="${salesOrderItem.orderItemSeqId}"/>
</#if>
<#-- Initial Screen -->
<#else>
<form name="selectAllForm" method="post" action="<@ofbizUrl>ReceiveInventory</@ofbizUrl>">
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td colspan="4"><h3>${uiLabelMap.ProductReceiveItem}</h3></td></tr>
<tr>
<td width="25%" align="right">${uiLabelMap.ProductPurchaseOrderNumber}</td>
<td>&nbsp;</td>
<td width="25%">
<input type="text" name="purchaseOrderId" size="20" maxlength="20" value="${requestParameters.purchaseOrderId?if_exists}">
<a href="javascript:call_fieldlookup2(document.selectAllForm.purchaseOrderId,'LookupPurchaseOrderHeaderAndShipInfo');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
<td>(${uiLabelMap.ProductLeaveSingleProductReceiving})</td>
</tr>
<tr>
<td width="25%" align="right">${uiLabelMap.ProductProductId}</td>
<td>&nbsp;</td>
<td width="25%">
<input type="text" name="productId" size="20" maxlength="20" value="${requestParameters.productId?if_exists}"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.productId,'LookupProduct');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
<td>(${uiLabelMap.ProductLeaveEntirePoReceiving})</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2">
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveProduct}</a>
</td>
</tr>
</table>
</form>
</#if>
<tr>
<td colspan="2"><hr/></td>
</tr>
<tr>
<td>
<table class="basic-table" cellspacing="0">
<tr>
<#if orderItem.productId?exists>
<#assign product = orderItem.getRelatedOneCache("Product")/>
<input type="hidden" name="productId_o_${rowCount}" value="${product.productId}"/>
<td width="45%">
${orderItem.orderItemSeqId}:&nbsp;<a href="/catalog/control/EditProduct?productId=${product.productId}${externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.productId}&nbsp;-&nbsp;${orderItem.itemDescription?if_exists}</a> : ${product.description?if_exists}
</td>
<#else>
<td width="45%">
<b>${orderItemType.get("description",locale)}</b> : ${orderItem.itemDescription?if_exists}&nbsp;&nbsp;
<input type="text" size="12" name="productId_o_${rowCount}"/>
<a href="/catalog/control/EditProduct?externalLoginKey=${externalLoginKey}" target="catalog" class="buttontext">${uiLabelMap.ProductCreateProduct}</a>
</td>
</#if>
<td align="right">${uiLabelMap.ProductLocation}:</td>
<#-- location(s) -->
<td align="right">
<#assign facilityLocations = (orderItem.getRelatedByAnd("ProductFacilityLocation", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", facilityId)))?if_exists/>
<#if facilityLocations?has_content>
<select name="locationSeqId_o_${rowCount}">
<#list facilityLocations as productFacilityLocation>
<#assign facility = productFacilityLocation.getRelatedOneCache("Facility")/>
<#assign facilityLocation = productFacilityLocation.getRelatedOne("FacilityLocation")?if_exists/>
<#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists/>
<option value="${productFacilityLocation.locationSeqId}"><#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}</#if><#if facilityLocationTypeEnum?exists>(${facilityLocationTypeEnum.get("description",locale)})</#if>[${productFacilityLocation.locationSeqId}]</option>
</#list>
<option value="">${uiLabelMap.ProductNoLocation}</option>
</select>
<#else>
<input type="text" name="locationSeqId_o_${rowCount}" size="12"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.locationSeqId_o_${rowCount},'LookupFacilityLocation<#if parameters.facilityId?exists>?facilityId=${facilityId}</#if>');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</#if>
</td>
<td align="right">${uiLabelMap.ProductQtyReceived} :</td>
<td align="right">
<input type="text" name="quantityAccepted_o_${rowCount}" size="6" value="${defaultQuantity?string.number}"/>
</td>
</tr>
<tr>
<td width="45%">
${uiLabelMap.ProductInventoryItemType} :&nbsp;
<select name="inventoryItemTypeId_o_${rowCount}" size="1">
<#list inventoryItemTypes as nextInventoryItemType>
<option value="${nextInventoryItemType.inventoryItemTypeId}"
<#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)>
selected="selected"
</#if>
>${nextInventoryItemType.get("description",locale)?default(nextInventoryItemType.inventoryItemTypeId)}</option>
</#list>
</select>
</td>
<td align="right">${uiLabelMap.ProductRejectionReason} :</td>
<td align="right">
<select name="rejectionId_o_${rowCount}" size="1">
<option></option>
<#list rejectReasons as nextRejection>
<option value="${nextRejection.rejectionId}">${nextRejection.get("description",locale)?default(nextRejection.rejectionId)}</option>
</#list>
</select>
</td>
<td align="right">${uiLabelMap.ProductQtyRejected} :</td>
<td align="right">
<input type="text" name="quantityRejected_o_${rowCount}" value="0" size="6"/>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right">${uiLabelMap.ProductFacilityOwner}:</td>
<td align="right"><input type="text" name="ownerPartyId_o_${rowCount}" size="20" maxlength="20" value="${facility.ownerPartyId}"/></td>
<td align="right">${uiLabelMap.ProductPerUnitPrice} :</td>
<td align="right">
<input type="hidden" name="currencyUomId_o_${rowCount}" value="${currencyUomId?if_exists}"/>
<input type="text" name="unitCost_o_${rowCount}" value="${itemCost}" size="6" maxlength="20"/>
${currencyUomId?if_exists}
</td>
</tr>
</table>
</td>
<td align="right">
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, 'selectAllForm');"/>
</td>
</tr>
<#assign rowCount = rowCount + 1>
</#if>
</#list>
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
<#if rowCount == 0>
<tr>
<td colspan="2">${uiLabelMap.ProductNoItemsPo} #${purchaseOrder.orderId} ${uiLabelMap.ProductToReceive}.</td>
</tr>
<tr>
<td colspan="2" align="right">
<a href="<@ofbizUrl>ReceiveInventory?facilityId=${requestParameters.facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductReturnToReceiving}</a>
</td>
</tr>
<#else>
<tr>
<td colspan="2" align="right">
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveSelectedProduct}</a>
</td>
</tr>
</#if>
</#if>
</table>
<input type="hidden" name="_rowCount" value="${rowCount}"/>
</form>
<script language="JavaScript" type="text/javascript">selectAll('selectAllForm');</script>
<#-- Initial Screen -->
<#else>
<form name="selectAllForm" method="post" action="<@ofbizUrl>ReceiveInventory</@ofbizUrl>">
<input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}"/>
<input type="hidden" name="initialSelected" value="Y"/>
<table class="basic-table" cellspacing="0">
<tr><td colspan="4"><h3>${uiLabelMap.ProductReceiveItem}</h3></td></tr>
<tr>
<td width="25%" align="right" class="label">${uiLabelMap.ProductPurchaseOrderNumber}</td>
<td>&nbsp;</td>
<td width="25%">
<input type="text" name="purchaseOrderId" size="20" maxlength="20" value="${requestParameters.purchaseOrderId?if_exists}">
<a href="javascript:call_fieldlookup2(document.selectAllForm.purchaseOrderId,'LookupPurchaseOrderHeaderAndShipInfo');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
<td class="tooltip">${uiLabelMap.ProductLeaveSingleProductReceiving}</td>
</tr>
<tr>
<td width="25%" align="right" class="label">${uiLabelMap.ProductProductId}</td>
<td>&nbsp;</td>
<td width="25%">
<input type="text" name="productId" size="20" maxlength="20" value="${requestParameters.productId?if_exists}"/>
<a href="javascript:call_fieldlookup2(document.selectAllForm.productId,'LookupProduct');">
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" border="0" alt="Click here For Field Lookup"/>
</a>
</td>
<td class="tooltip">${uiLabelMap.ProductLeaveEntirePoReceiving}</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="2">
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveProduct}</a>
</td>
</tr>
</table>
</form>
</#if>
</div>
</div>
@@ -843,9 +843,23 @@ under the License.
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/EditContactMech.ftl"/></html>
</platform-specific>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="head4">
<label text="${uiLabelMap.PageTitleEditFacilityContactMech}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/EditContactMech.ftl"/></html>
</platform-specific>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>