📄 orderheader.ftl
字号:
<#--
* 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)
*@version $Revision: 1.20 $
*@since 2.2
-->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" valign="top" align="left">
<#-- header box -->
<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 #${orderId} Information</div>
</td>
</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="1" cellspacing="0">
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>Status History</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<div class="tabletext">Current Status: ${currentStatus.description}</div>
<#if orderHeaderStatuses?has_content>
<hr class="sepbar">
<#list orderHeaderStatuses as orderHeaderStatus>
<#assign loopStatusItem = orderHeaderStatus.getRelatedOne("StatusItem")>
<div class="tabletext">
${loopStatusItem.description} - ${orderHeaderStatus.statusDatetime?default("0000-00-00 00:00:00")?string}
</div>
</#list>
</#if>
</td>
</tr>
<tr><td colspan="7"><hr class="sepbar"></td></tr>
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>Date Ordered</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<div class="tabletext">
${orderHeader.orderDate.toString()}
</div>
</td>
</tr>
<#if distributorId?exists>
<tr><td colspan="7"><hr class="sepbar"></td></tr>
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>Distributor</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<div class="tabletext">
${Static["org.ofbiz.party.party.PartyHelper"].formatPartyId(distributorId, delegator)}
</div>
</td>
</tr>
</#if>
<#if affiliateId?exists>
<tr><td colspan="7"><hr class="sepbar"></td></tr>
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>Affiliate</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<div class="tabletext">
${Static["org.ofbiz.party.party.PartyHelper"].formatPartyId(affiliateId, delegator)}
</div>
</td>
</tr>
</#if>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<#-- end of header box -->
<br>
<#-- payment box -->
<#if orderPaymentPreferences?has_content || billingAccount?has_content>
<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"> Payment Information</div>
</td>
</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="1" cellspacing="0">
<#list orderPaymentPreferences as orderPaymentPreference>
<#if outputted?default("false") == "true">
<tr><td colspan="7"><hr class="sepbar"></td></tr>
</#if>
<#assign outputted = "true">
<#-- try the paymentMethod first; if paymentMethodId is specified it overrides paymentMethodTypeId -->
<#assign paymentMethod = orderPaymentPreference.getRelatedOne("PaymentMethod")?if_exists>
<#if !paymentMethod?has_content>
<#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType")>
<#if paymentMethodType.paymentMethodTypeId == "EXT_BILLACT">
<#assign outputted = "false">
<#else>
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>${paymentMethodType.description?if_exists}</b></div>
</td>
<td width="5"> </td>
<#if paymentMethodType.paymentMethodTypeId != "EXT_OFFLINE">
<td align="left">
<div class="tabletext">${orderPaymentPreference.maxAmount?default(0.00)?string.currency}</div>
<#--
<div class="tabletext">${orderPaymentPreference.maxAmount?default(0.00)?string.currency} - ${(orderPaymentPreference.authDate.toString())?if_exists}</div>
<div class="tabletext"> <#if orderPaymentPreference.authRefNum?exists>(Ref: ${orderPaymentPreference.authRefNum})</#if></div>
-->
</td>
<#else>
<td align="right">
<a valign="top" href="<@ofbizUrl>/receivepayment?${paramString}</@ofbizUrl>" class="buttontext">Receive Payment</a>
</td>
</#if>
</tr>
</#if>
<#else>
<#if paymentMethod.paymentMethodTypeId?if_exists == "CREDIT_CARD">
<#assign creditCard = paymentMethod.getRelatedOne("CreditCard")?if_exists>
<#assign payments = orderPaymentPreference.getRelated("Payment")>
<#if payments?has_content>
<#assign payment = payments[0]>
</#if>
<#if creditCard?has_content>
<#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress")>
</#if>
<tr>
<td align="right" valign="top" width="15%">
<div class="tabletext"> <b>Credit Card</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<#assign oppStatusItem = orderPaymentPreference.getRelatedOne("StatusItem")>
<div class="tabletext">
<#if creditCard?has_content>
${creditCard.nameOnCard?if_exists}<br>
<#if creditCard.companyNameOnCard?exists>${creditCard.companyNameOnCard}<br></#if>
<#if security.hasEntityPermission("PAY_INFO", "_VIEW", session)>
${creditCard.cardType}
${creditCard.cardNumber}
${creditCard.expireDate}
[<#if oppStatusItem?exists>${oppStatusItem.description}<#else>${orderPaymentPreference.statusId}</#if>]
<#else>
${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
[<#if oppStatusItem?exists>${oppStatusItem.description}<#else>${orderPaymentPreference.statusId}</#if>]
</#if>
<#else>
Information not available
</#if>
</div>
<#-- TODO: add transaction history
<#if orderPaymentPreference.authDate?exists>
<div class="tabletext">
Auth : ${orderPaymentPreference.authDate.toString()}
(<b>Ref:</b> ${orderPaymentPreference.authRefNum?if_exists})
</div>
</#if>
-->
<#if payment?exists && payment.effectiveDate?exists>
<div class="tabletext">
Billed : ${payment.effectiveDate.toString()}
(<b>Ref:</b> ${payment.paymentRefNum?if_exists})
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -