⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 receiveinventory.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 2 页
字号:
          <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.get("description",locale)?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>&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" 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>            <#if shipment?has_content>            <div class="head3">${uiLabelMap.ProductShipmentId} #${shipment.shipmentId}</div>            </#if>          </td>          <td align="right">            <span class="tableheadtext">${uiLabelMap.CommonSelectAll}</span>&nbsp;            <input type="checkbox" name="selectAll" value="${uiLabelMap.CommonY}" 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.salesOrderId}"/>            <input type="hidden" name="priorityOrderItemSeqId_o_${rowCount}" value="${salesOrderItem.soItemSeqId}"/>          </#if>          <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}:&nbsp;<a href="/catalog/control/EditProduct?productId=${product.productId}${externalKeyParam?if_exists}" target="catalog" class="buttontext">${product.productId}&nbsp;-&nbsp;${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}&nbsp;&nbsp;                        <input type="text" class="inputBox" size="12" name="productId_o_${rowCount}"/>                        <a href="/catalog/control/EditProduct?externalLoginKey=${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>&nbsp;&nbsp;                    <select name="inventoryItemTypeId_o_${rowCount}" size="1" class="selectBox">                      <#list inventoryItemTypes as nextInventoryItemType>                      <option value="${nextInventoryItemType.inventoryItemTypeId}"                       <#if (facility.defaultInventoryItemTypeId?has_content) && (nextInventoryItemType.inventoryItemTypeId == facility.defaultInventoryItemTypeId)>                        SELECTED                      </#if>                      >${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>                <tr>                  <td>&nbsp;</td>                  <td align="right"><span class="tableheadtext">${uiLabelMap.ProductFacilityOwner}:</span></td>                  <td align="right"><input type="text" class="inputBox" name="ownerPartyId_o_${rowCount}" size="20" maxlength="20" value="${facility.ownerPartyId}"/></td>                  <td align="right">                    <div class="tableheadtext">${uiLabelMap.ProductPerUnitPrice} :</div>                  </td>                  <td align="right">                    <input type="hidden" name="currencyUomId_o_${rowCount}" value="${currencyUomId?if_exists}"/>                    <input type="text" class="inputBox" name="unitCost_o_${rowCount}" value="${itemCost}" size="6" maxlength="20"/>                    <span class="tabletext">${currencyUomId?if_exists}</span>                  </td>                </tr>              </table>            </td>            <td align="right">              <input type="checkbox" name="_rowSubmit_o_${rowCount}" value="${uiLabelMap.CommonY}" onclick="javascript:checkToggle(this, 'selectAllForm');"/>            </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" type="text/javascript">selectAll('selectAllForm');</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>&nbsp;</td>        <td width="25%">          <input type="text" class="inputBox" name="purchaseOrderId" size="20" maxlength="20" value="${requestParameters.purchaseOrderId?if_exists}">          <span class="tabletext">            <a href="javascript:call_fieldlookup2(document.selectAllForm.purchaseOrderId,'LookupPurchaseOrderHeaderAndShipInfo');">              <img src="/images/fieldlookup.gif" width="15" height="14" border="0" alt="Click here For Field Lookup"/>            </a>          </span>        </td>        <td><div class="tabletext">&nbsp;(${uiLabelMap.ProductLeaveSingleProductReceiving})</div></td>      </tr>      <tr>        <td width="25%" align="right"><div class="tabletext">${uiLabelMap.ProductProductId}</div></td>        <td>&nbsp;</td>        <td width="25%">          <input type="text" class="inputBox" name="productId" size="20" maxlength="20" value="${requestParameters.productId?if_exists}"/>          <span class="tabletext">            <a href="javascript:call_fieldlookup2(document.selectAllForm.productId,'LookupProduct');">              <img src="/images/fieldlookup.gif" width="15" height="14" border="0" alt="Click here For Field Lookup"/>            </a>          </span>        </td>        <td><div class="tabletext">&nbsp;(${uiLabelMap.ProductLeaveEntirePoReceiving})</div></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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -