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

📄 receivereturn.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#-- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org * *  Permission is hereby granted, free of charge, to any person obtaining a  *  copy of this software and associated documentation files (the "Software"),  *  to deal in the Software without restriction, including without limitation  *  the rights to use, copy, modify, merge, publish, distribute, sublicense,  *  and/or sell copies of the Software, and to permit persons to whom the  *  Software is furnished to do so, subject to the following conditions: * *  The above copyright notice and this permission notice shall be included  *  in all copies or substantial portions of the Software. * *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT  *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR  *  THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author     Andy Zeneski (jaz@ofbiz.org) *@author     Catherine.Heintz@nereide.biz (migration to UiLabel) *@version    $Rev: 6164 $ *@since      2.2--><div class="head1">${uiLabelMap.ProductReceiveReturn} <span class='head2'>${uiLabelMap.CommonInto}&nbsp;<#if facility?has_content>"${facility.facilityName?default("Not Defined")}"</#if> [${uiLabelMap.CommonId}:${facility.facilityId?if_exists}]</span></div><a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewFacility}]</a><div>&nbsp;</div><#-- Receiving Results --><#if receivedItems?has_content>  <table width="100%" border='0' cellpadding='2' cellspacing='0'>    <tr><td colspan="7"><div class="head3">${uiLabelMap.ProductReceiptForReturn} <a href="/ordermgr/control/returnMain?returnId=${returnHeader.returnId}${externalKeyParam?if_exists}" class="buttontext">#${returnHeader.returnId}</a></div></td></tr>    <tr><td colspan="7"><hr class="sepbar"></td></tr>    <tr>      <td><div class="tableheadtext">${uiLabelMap.ProductReceipt}</div></td>      <td><div class="tableheadtext">${uiLabelMap.CommonDate}</div></td>      <td><div class="tableheadtext">${uiLabelMap.CommonReturn}</div></td>      <td><div class="tableheadtext">${uiLabelMap.ProductLine}</div></td>      <td><div class="tableheadtext">${uiLabelMap.ProductProductId}</div></td>      <td><div class="tableheadtext">${uiLabelMap.ProductPerUnitPrice}</div></td>      <td><div class="tableheadtext">${uiLabelMap.ProductReceived}</div></td>    </tr>    <tr><td colspan="7"><hr class="sepbar"></td></tr>    <#list receivedItems as item>      <tr>        <td><div class="tabletext">${item.receiptId}</div></td>        <td><div class="tabletext">${item.getString("datetimeReceived").toString()}</div></td>        <td><div class="tabletext">${item.returnId}</div></td>        <td><div class="tabletext">${item.returnItemSeqId}</div></td>        <td><div class="tabletext">${item.productId?default("Not Found")}</div></td>        <td><div class="tabletext">${item.unitCost?default(0)?string("##0.00")}</div></td>        <td><div class="tabletext">${item.quantityAccepted?string.number}</div></td>      </tr>    </#list>    <tr><td colspan="7"><hr class="sepbar"></td></tr>  </table>  <br/></#if><#-- Multi-Item Return Receiving --><#if returnHeader?has_content>  <form method="post" action="<@ofbizUrl>receiveReturnedProduct</@ofbizUrl>" name='selectAllForm' style='margin: 0;'>    <#-- general request fields -->    <input type="hidden" name="facilityId" value="${requestParameters.facilityId?if_exists}">       <input type="hidden" name="returnId" value="${requestParameters.returnId?if_exists}">       <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 !returnItems?exists || returnItems?size == 0>        <tr>          <td colspan="2"><div class="tableheadtext">${uiLabelMap.ProductNoItemsToReceive}.</div></td>        </tr>      <#else>        <tr>          <td>            <div class="head3">${uiLabelMap.ProductReceiveReturn} <a href="/ordermgr/control/returnMain?returnId=${returnHeader.returnId}${externalKeyParam?if_exists}" class="buttontext">#${returnHeader.returnId}</a></div>          </td>          <td align="right">            <span class="tableheadtext">${uiLabelMap.ProductSelectAll}</span>&nbsp;            <input type="checkbox" name="selectAll" value="Y" onclick="javascript:toggleAll(this, 'selectAllForm');">          </td>        </tr>                       <#list returnItems as returnItem>          <#assign defaultQuantity = returnItem.returnQuantity - receivedQuantities[returnItem.returnItemSeqId]?double>          <#assign orderItem = returnItem.getRelatedOne("OrderItem")?if_exists>          <#if (orderItem?has_content && 0 < defaultQuantity)>          <#assign orderItemType = (orderItem.getRelatedOne("OrderItemType"))?if_exists>          <input type="hidden" name="returnId_o_${rowCount}" value="${returnItem.returnId}">          <input type="hidden" name="returnItemSeqId_o_${rowCount}" value="${returnItem.returnItemSeqId}">           <input type="hidden" name="facilityId_o_${rowCount}" value="${requestParameters.facilityId?if_exists}">                 <input type="hidden" name="datetimeReceived_o_${rowCount}" value="${now}">          <input type="hidden" name="quantityRejected_o_${rowCount}" value="0">                   <input type="hidden" name="comments_o_${rowCount}" value="Returned Item RA# ${returnItem.returnId}">          <#assign unitCost = Static["org.ofbiz.order.order.OrderReturnServices"].getReturnItemInitialCost(delegator, returnItem.returnId, returnItem.returnItemSeqId)/>          <tr>            <td colspan="2"><hr class="sepbar"></td>          </tr>                           <tr>            <td>              <table width="100%" border='0' cellpadding='2' cellspacing='0'>                <tr>                  <#assign productId = "">                  <#if orderItem.productId?exists>                    <#assign product = orderItem.getRelatedOne("Product")>                    <#assign productId = product.productId>                    <#assign serializedInv = product.getRelatedByAnd("InventoryItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("inventoryItemTypeId", "SERIALIZED_INV_ITEM"))>                    <input type="hidden" name="productId_o_${rowCount}" value="${product.productId}">                                          <td width="45%">                      <div class="tabletext">                        ${returnItem.returnItemSeqId}:&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}                        <#if serializedInv?has_content><font color='red'>**${uiLabelMap.ProductSerializedInventoryFound}**</font></#if>                      </div>                                           </td>                  <#elseif orderItem?has_content>                    <td width="45%">                      <div class="tabletext">                        ${returnItem.returnItemSeqId}:&nbsp;<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>                  <#else>                    <td width="45%">                      <div class="tabletext">                        ${returnItem.returnItemSeqId}:&nbsp;${returnItem.description?if_exists}                      </div>                    </td>                  </#if>

⌨️ 快捷键说明

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