📄 orderitems.ftl
字号:
<#--
* Copyright (c) 2001, 2002 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)
*@version $Revision: 1.2 $
*@since 2.1
-->
<table border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td valign="middle" align="left">
<div class="boxhead"> Order Items</div>
</td>
<#if maySelectItems?default(false)>
<td valign="middle" align="right" nowrap>
<a href='javascript:document.addOrderToCartForm.add_all.value="true";document.addOrderToCartForm.submit()' class="lightbuttontext">[Add All to Cart]</a>
<a href='javascript:document.addOrderToCartForm.add_all.value="false";document.addOrderToCartForm.submit()' class="lightbuttontext">[Add Checked to Cart]</a>
</td>
</#if>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<table width="100%" border="0" cellpadding="0">
<tr align='left' valign='bottom'>
<td width="65%" align="left"><span class="tableheadtext"><b>Product</b></span></td>
<td width="5%" align="right"><span class="tableheadtext"><b>Quantity</b></span></td>
<td width="10%" align="right"><span class="tableheadtext"><b>Unit Price</b></span></td>
<td width="10%" align="right"><span class="tableheadtext"><b>Adjustments</b></span></td>
<td width="10%" align="right"><span class="tableheadtext"><b>Subtotal</b></span></td>
</tr>
<#list orderItems?if_exists as orderItem>
<#assign itemType = orderItem.getRelatedOne("OrderItemType")>
<tr><td colspan="7"><hr class='sepbar'></td></tr>
<tr>
<#if orderItem.productId?exists && orderItem.productId == "_?_">
<td colspan="1" valign="top">
<b><div class="tabletext"> >> ${orderItem.itemDescription}</div></b>
</td>
<#else>
<td valign="top">
<div class="tabletext">
<#if orderItem.productId?exists>
<a href="<@ofbizUrl>/product?product_id=${orderItem.productId}</@ofbizUrl>" class="buttontext">${orderItem.productId} - ${orderItem.itemDescription}</a>
<#else>
<b>${itemType.description}</b> : ${orderItem.itemDescription?if_exists}
</#if>
</div>
</td>
<td align="right" valign="top">
<div class="tabletext" nowrap>${orderItem.quantity?string.number}</div>
</td>
<td align="right" valign="top">
<div class="tabletext" nowrap>${orderItem.unitPrice?string.currency}</div>
</td>
<td align="right" valign="top">
<div class="tabletext" nowrap>${localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem)?string.currency}</div>
</td>
<td align="right" valign="top" nowrap>
<div class="tabletext">${localOrderReadHelper.getOrderItemTotal(orderItem)?string.currency}</div>
</td>
<#if maySelectItems?default(false)>
<td>
<input name="item_id" value="${orderItem.orderItemSeqId}" type="checkbox">
</td>
</#if>
</#if>
</tr>
<#-- now show adjustment details per line item -->
<#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)>
<#list itemAdjustments as orderItemAdjustment>
<tr>
<td align="right">
<div class="tabletext" style='font-size: xx-small;'>
<b><i>Adjustment</i>:</b> <b>${localOrderReadHelper.getAdjustmentType(orderItemAdjustment)}</b>
<#if orderItemAdjustment.description?has_content>: ${orderItemAdjustment.description}</#if>
</div>
</td>
<td> </td>
<td> </td>
<td align="right">
<div class="tabletext" style='font-size: xx-small;'>${localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment)?string.currency}</div>
</td>
<td> </td>
<#if maySelectItems?default(false)><td> </td></#if>
</tr>
</#list>
</#list>
<#if !orderItems?has_content>
<tr><td><font color="red">ERROR: Sales Order Lines lookup failed.</font></td></tr>
</#if>
<tr><td colspan="8"><hr class='sepbar'></td></tr>
<tr>
<td align="right" colspan="4"><div class="tabletext"><b>Subtotal</b></div></td>
<td align="right" nowrap><div class="tabletext"> <#if orderSubTotal?exists>${orderSubTotal?string.currency}</#if></div></td>
</tr>
<#list headerAdjustmentsToShow?if_exists as orderHeaderAdjustment>
<tr>
<td align="right" colspan="4"><div class="tabletext"><b>${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</b></div></td>
<td align="right" nowrap><div class="tabletext">${localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment)?string.currency}</div></td>
</tr>
</#list>
<tr>
<td align="right" colspan="4"><div class="tabletext"><b>Shipping and Handling</b></div></td>
<td align="right" nowrap><div class="tabletext"><#if orderShippingTotal?exists>${orderShippingTotal?string.currency}</#if></div></td>
</tr>
<tr>
<td align="right" colspan="4"><div class="tabletext"><b>Sales Tax</b></div></td>
<td align="right" nowrap><div class="tabletext"><#if orderShippingTotal?exists>${orderTaxTotal?string.currency}</#if></div></td>
</tr>
<tr><td colspan=2></td><td colspan="8"><hr class='sepbar'></td></tr>
<tr>
<td align="right" colspan="4"><div class="tabletext"><b>Grand Total</b></div></td>
<td align="right" nowrap>
<div class="tabletext"><#if orderShippingTotal?exists>${orderGrandTotal?string.currency}</#if></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -