📄 receiveinventory.ftl
字号:
<div class="head3">${uiLabelMap.ProductSelectShipmentReceive}</div>
</td>
</tr>
<#list shipments 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 class="sepbar"></td>
</tr>
<tr>
<td>
<table width="100%" border='0' cellpadding='2' cellspacing='0'>
<tr>
<td width="5%" nowrap><input type="radio" name="shipmentId" value="${shipment.shipmentId}"></td>
<td width="5%" nowrap><div class="tabletext">${shipment.shipmentId}</div></td>
<td><div class="tabletext">${shipmentType.description?default(shipmentType.shipmentTypeId?default(""))}</div></td>
<td><div class="tabletext">${statusItem.description?default(statusItem.statusId?default("N/A"))}</div></td>
<td><div class="tabletext">${(originFacility.facilityName)?if_exists} [${shipment.originFacilityId?if_exists}]</div></td>
<td><div class="tabletext">${(destinationFacility.facilityName)?if_exists} [${shipment.destinationFacilityId?if_exists}]</div></td>
<td><div class="tabletext"><nobr>${(shipment.estimatedArrivalDate.toString())?if_exists}</nobr></div></td>
</tr>
</table>
</td>
</tr>
</#list>
<tr>
<td><hr class="sepbar"></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><div class="tabletext">${uiLabelMap.ProductNoSpecificShipment}</div></td>
<td colspan="5"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> <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' style='margin: 0;'>
<#-- 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"><div class="tableheadtext">${uiLabelMap.ProductNoItemsPoReceive}.</div></td>
</tr>
<#else>
<tr>
<td>
<div class="head3">${uiLabelMap.ProductReceivePurchaseOrder} #${purchaseOrder.orderId}</div>
</td>
<td align="right">
<span class="tableheadtext">${uiLabelMap.CommonSelectAll}</span>
<input type="checkbox" name="selectAll" value="${uiLabelMap.CommonY}" onclick="javascript:toggleAll(this);">
</td>
</tr>
<#list purchaseOrderItems as orderItem>
<#assign defaultQuantity = orderItem.quantity - receivedQuantities[orderItem.orderItemSeqId]?double>
<#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}">
<tr>
<td colspan="2"><hr class="sepbar"></td>
</tr>
<tr>
<td>
<table width="100%" border='0' cellpadding='2' 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%">
<div class="tabletext">
${orderItem.orderItemSeqId}: <a href="/catalog/control/EditProduct?productId=${product.productId}${requestAttributes.externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.productId} - ${product.internalName?if_exists}</a> : ${product.description?if_exists}
</div>
</td>
<#else>
<td width="45%">
<div class="tabletext">
<b>${orderItemType.description}</b> : ${orderItem.itemDescription?if_exists}
<input type="text" class="inputBox" size="12" name="productId_o_${rowCount}">
<a href="/catalog/control/EditProduct?externalLoginKey=${requestAttributes.externalLoginKey}" target="catalog" class="buttontext">${uiLabelMap.ProductCreateProduct}</a>
</div>
</td>
</#if>
<td align="right">
<div class="tableheadtext">${uiLabelMap.ProductLocation}:</div>
</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}" class="selectBox">
<#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.description})</#if>[${productFacilityLocation.locationSeqId}]</option>
</#list>
<option value="">${uiLabelMap.ProductNoLocation}</option>
</select>
<#else>
<input type="text" class="inputBox" name="locationSeqId_o_${rowCount}" size="12">
</#if>
</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.ProductQtyReceived} :</div>
</td>
<td align="right">
<input type="text" class="inputBox" name="quantityAccepted_o_${rowCount}" size="6" value="${defaultQuantity?string.number}">
</td>
</tr>
<tr>
<td width="45%">
<span class="tableheadtext">${uiLabelMap.ProductInventoryItemType} :</span>
<select name="inventoryItemTypeId_o_${rowCount}" size='1' class="selectBox">
<#list inventoryItemTypes as nextInventoryItemType>
<option value='${nextInventoryItemType.inventoryItemTypeId}'>${nextInventoryItemType.description?default(nextInventoryItemType.inventoryItemTypeId)}</option>
</#list>
</select>
</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.ProductRejectionReason} :</div>
</td>
<td align="right">
<select name="rejectionId_o_${rowCount}" size='1' class='selectBox'>
<option></option>
<#list rejectReasons as nextRejection>
<option value='${nextRejection.rejectionId}'>${nextRejection.description?default(nextRejection.rejectionId)}</option>
</#list>
</select>
</td>
<td align="right">
<div class="tableheadtext">${uiLabelMap.ProductQtyRejected} :</div>
</td>
<td align="right">
<input type="text" class="inputBox" name="quantityRejected_o_${rowCount}" value="0" size="6">
</td>
</tr>
</table>
</td>
<td align="right">
<input type="checkbox" name="_rowSubmit_o_${rowCount}" value="${uiLabelMap.CommonY}" onclick="javascript:checkToggle(this);">
</td>
</tr>
<#assign rowCount = rowCount + 1>
</#if>
</#list>
<tr>
<td colspan="2">
<hr class="sepbar">
</td>
</tr>
<#if rowCount == 0>
<tr>
<td colspan="2">
<div class="tabletext">${uiLabelMap.ProductNoItemsPo} #${purchaseOrder.orderId} ${uiLabelMap.ProductToReceive}.</div>
</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">selectAll();</script>
<#-- Initial Screen -->
<#else>
<form name="selectAllForm" method="post" action="<@ofbizUrl>/ReceiveInventory</@ofbizUrl>" style='margin: 0;'>
<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"><div class="head3">${uiLabelMap.ProductReceiveItem}</div></td></tr>
<tr>
<td width="25%" align='right'><div class="tabletext">${uiLabelMap.ProductPurchaseOrderNumber}</div></td>
<td> </td>
<td width="25%">
<input type="text" class="inputBox" name="purchaseOrderId" size="20" maxlength="20" value="${requestParameters.purchaseOrderId?if_exists}">
</td>
<td><div class='tabletext'> (${uiLabelMap.ProductLeaveSingleProductReceiving})</div></td>
</tr>
<tr>
<td width="25%" align='right'><div class="tabletext">${uiLabelMap.ProductProductId}</div></td>
<td> </td>
<td width="25%">
<input type="text" class="inputBox" name="productId" size="20" maxlength="20" value="${requestParameters.productId?if_exists}">
</td>
<td><div class='tabletext'> (${uiLabelMap.ProductLeaveEntirePoReceiving})</div></td>
</tr>
<tr>
<td colspan="2"> </td>
<td colspan="2">
<a href="javascript:document.selectAllForm.submit();" class="buttontext">${uiLabelMap.ProductReceiveProduct}</a>
</td>
</tr>
</table>
</form>
</#if>
<br>
<#else>
<h3>${uiLabelMap.ProductFacilityViewPermissionError}</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -