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

📄 editproductstoreshipsetup.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 3 页
字号:
<#-- *  Copyright (c) 2003-2005 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: 5778 $ *@since      2.2--><script language="JavaScript" type="text/javascript"><!--function setAssocFields(select) {    var index = select.selectedIndex;    var opt = select.options[index];    var optStr = opt.value;    var optLen = optStr.length;    var shipmentMethodTypeId = "";    var sequenceNumber = "";    var roleTypeId = "";    var partyId = "";    var delIdx = 1;    for (i=0; i<optLen; i++) {        if (optStr.charAt(i) == '|') {            delIdx++;        } else {            if (delIdx == 1) {                partyId = partyId + optStr.charAt(i);            } else if (delIdx == 2) {                roleTypeId = roleTypeId + optStr.charAt(i);            } else if (delIdx == 3) {                shipmentMethodTypeId = shipmentMethodTypeId + optStr.charAt(i);            } else if (delIdx == 4) {                sequenceNumber = sequenceNumber + optStr.charAt(i);            }        }    }    document.addscarr.roleTypeId.value = roleTypeId;    document.addscarr.partyId.value = partyId;    document.addscarr.shipmentMethodTypeId.value = shipmentMethodTypeId;    document.addscarr.sequenceNumber.value = sequenceNumber;}// --></script>  <#if !requestParameters.createNew?exists || requestParameters.createNew != "Y">    <a href="<@ofbizUrl>EditProductStoreShipSetup?viewProductStoreId=${productStoreId}&createNew=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewShipmentEstimate}]</a>  </#if>  <#if !requestParameters.newShipMethod?exists || requestParameters.newShipMethod != "Y">    <a href="<@ofbizUrl>EditProductStoreShipSetup?viewProductStoreId=${productStoreId}&newShipMethod=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewShipmentMethod}]</a>  </#if>  <#if requestParameters.newShipMethod?default("N") == "Y" || requestParameters.createNew?default("N") == "Y">    <a href="<@ofbizUrl>EditProductStoreShipSetup?viewProductStoreId=${productStoreId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductViewEstimates}]</a>  </#if>  <br/>  <br/><#-- Shipping Setup From Catalog->Store->Shipping-->  <#if !requestParameters.createNew?exists && !requestParameters.newShipMethod?exists>    <table border="1" cellpadding="2" cellspacing="0">      <tr>        <td nowrap><div class="tableheadtext">${uiLabelMap.ProductEstimateId}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.ProductMethod}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.CommonTo}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.PartyParty}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.PartyRole}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.ProductBase}%</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.ProductBasePrc}</div></td>        <td nowrap><div class="tableheadtext">${uiLabelMap.ProductItemPrc}</div></td>        <td nowrap><div class="tableheadtext">&nbsp;</div></td>      </tr>      <#list estimates as estimate>        <#assign weightValue = estimate.getRelatedOne("WeightQuantityBreak")?if_exists>        <#assign quantityValue = estimate.getRelatedOne("QuantityQuantityBreak")?if_exists>        <#assign priceValue = estimate.getRelatedOne("PriceQuantityBreak")?if_exists>        <tr>          <td><div class="tabletext">${estimate.shipmentCostEstimateId}</div></td>          <td><div class="tabletext">${estimate.shipmentMethodTypeId}&nbsp;(${estimate.carrierPartyId})</div></td>          <td><div class="tabletext">${estimate.geoIdTo?default("All")}</div></td>          <td><div class="tabletext">${estimate.partyId?default("All")}</div></td>          <td><div class="tabletext">${estimate.roleTypeId?default("All")}</div></td>          <td><div class="tabletext">${estimate.orderPricePercent?default(0)?string.number}%</div></td>          <td><div class="tabletext">${estimate.orderFlatPrice?default(0)}</div></td>          <td><div class="tabletext">${estimate.orderItemFlatPrice?default(0)}</div></td>          <td align="center">            <div class="tabletext"><#if security.hasEntityPermission("SHIPRATE", "_DELETE", session)><a href="<@ofbizUrl>storeRemoveShipRate?viewProductStoreId=${productStoreId}&shipmentCostEstimateId=${estimate.shipmentCostEstimateId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonDelete}]</a></#if> <a href="<@ofbizUrl>EditProductStoreShipSetup?viewProductStoreId=${productStoreId}&shipmentCostEstimateId=${estimate.shipmentCostEstimateId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonView}]</a></div>          </td>        </tr>      </#list>    </table>  </#if>  <#if shipEstimate?has_content>    <#assign estimate = shipEstimate>    <#assign weightValue = estimate.getRelatedOne("WeightQuantityBreak")?if_exists>    <#assign quantityValue = estimate.getRelatedOne("QuantityQuantityBreak")?if_exists>    <#assign priceValue = estimate.getRelatedOne("PriceQuantityBreak")?if_exists>    <br/>      <table cellspacing="2" cellpadding="2">        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductShipmentMethod}</span></td>          <td><span class="tabletext">${estimate.shipmentMethodTypeId}&nbsp;(${estimate.carrierPartyId})</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductFromGeo}</span></td>          <td><span class="tabletext">${estimate.geoIdFrom?default("All")}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductToGeo}</span></td>          <td><span class="tabletext">${estimate.geoIdTo?default("All")}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.PartyParty}</span></td>          <td><span class="tabletext">${estimate.partyId?default("All")}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.PartyRole}</span></td>          <td><span class="tabletext">${estimate.roleTypeId?default("All")}</span></td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductFlatBasePercent}</span></td>          <td>            <span class="tabletext">${estimate.orderPricePercent?default(0)?string.number}%</span>            <span class="tabletext"> - ${uiLabelMap.ProductShipamountOrderTotalPercent}</span>          </td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductFlatBasePrice}</span></td>          <td>            <span class="tabletext">${estimate.orderFlatPrice?default(0)}</span>            <span class="tabletext"> - ${uiLabelMap.ProductShipamountPrice}</span>          </td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductFlatItemPrice}</span></td>          <td>            <span class="tabletext">${estimate.orderItemFlatPrice?default(0)}</span>            <span class="tabletext"> - ${uiLabelMap.ProductShipamountTotalQuantityPrice}</span>          </td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td align='right'><span class="tableheadtext">Feature Group</span></td>          <td>            <span class="tabletext">${estimate.productFeatureGroupId?default("N/A")}</span>            <span class="tabletext"> - Below surcharge(s) will be added per-product * per-feature</span>          </td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">Per-Feature Percent</span></td>          <td>            <span class="tabletext">${estimate.featurePercent?default(0)?string.number}%</span>            <span class="tabletext"> - shipamount : shipamount + ((orderTotal * percent) * total feature(s) applied)</span>          </td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">Per-Feature Price</span></td>          <td>            <span class="tabletext">${estimate.featurePrice?default(0)}</span>            <span class="tabletext"> - shipamount : shipamount + (price * total feature(s) applied)</span>          </td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td align='right'><span class="tableheadtext">Oversize Unit</span></td>          <td>            <span class="tabletext">${estimate.oversizeUnit?default("N/A")}</span>            <span class="tabletext"> - Each product ((height * 2) + (width * 2) + depth) >= this amount</span>          </td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">Oversize Surcharge</span></td>          <td>            <span class="tabletext">${estimate.oversizePrice?default(0)}</span>            <span class="tabletext"> - shipamount : shipamount + (# oversize products * surcharge)</span>          </td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td colspan="1"><span class="tableheadtext">${uiLabelMap.ProductWeight}</span></td>          <td colspan="2"><span class="tabletext">${uiLabelMap.ProductMinMax}</span></td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductMinMaxSpan}</span></td>          <td><span class="tabletext">${weightValue.fromQuantity?if_exists}-${weightValue.thruQuantity?if_exists}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductUnitOfMeasure}</span></td>          <td><span class="tabletext">${estimate.weightUomId?if_exists}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductPerUnitPrice}</span></td>          <td>            <span class="tabletext">${estimate.weightUnitPrice?default(0)}</span>            <span class="tabletext"> -${uiLabelMap.ProductOnlyAppliesWithinSpan}</span>          </td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td colspan="1"><span class="tableheadtext">${uiLabelMap.ProductQuantity}</span></td>          <td colspan="2"><span class="tabletext">${uiLabelMap.ProductMinMax}</span></td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductMinMaxSpan}</span></td>          <td><span class="tabletext">${quantityValue.fromQuantity?if_exists}-${quantityValue.thruQuantity?if_exists}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductUnitOfMeasure}</span></td>          <td><span class="tabletext">${estimate.quantityUomId?if_exists}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductPerUnitPrice}</span></td>          <td>            <span class="tabletext">${estimate.quantityUnitPrice?default(0)}</span>            <span class="tabletext"> - ${uiLabelMap.ProductOnlyAppliesWithinSpan}</span>          </td>          <td>&nbsp;</td>        </tr>        <tr><td colspan="3"><hr class="sepbar"></td></tr>        <tr>          <td colspan="1"><span class="tableheadtext">${uiLabelMap.ProductPrice}</span></td>          <td colspan="2"><span class="tabletext">${uiLabelMap.ProductMinMax}</span></td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductMinMaxSpan}</span></td>          <td><span class="tabletext">${priceValue.fromQuantity?if_exists}-${priceValue.thruQuantity?if_exists}</span></td>          <td>&nbsp;</td>        </tr>        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductPerUnitPrice}</span></td>          <td>            <span class="tabletext">${estimate.priceUnitPrice?default(0)}</span>            <span class="tabletext"> - ${uiLabelMap.ProductOnlyAppliesWithinSpan}</span>          </td>          <td>&nbsp;</td>        </tr>      </table>  </#if>  <#if requestParameters.createNew?exists>    <div class="head2">${uiLabelMap.ProductNewShipmentEstimate} :</div>    <form name="addform" method="post" action="<@ofbizUrl>storeCreateShipRate</@ofbizUrl>">      <input type="hidden" name="viewProductStoreId" value="${productStoreId}">      <input type="hidden" name="productStoreId" value="${productStoreId}">      <table cellspacing="2" cellpadding="2">        <tr>          <td align='right'><span class="tableheadtext">${uiLabelMap.ProductShipmentMethod}</span></td>          <td>            <select name="shipMethod" class="selectBox">              <#list storeShipMethods as shipmentMethod>                <option value="${shipmentMethod.partyId}|${shipmentMethod.shipmentMethodTypeId}">${shipmentMethod.description} (${shipmentMethod.partyId})</option>              </#list>            </select>          </td>          <td>&nbsp;</td>

⌨️ 快捷键说明

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