{if $invalidInvoiceIdRequested}
{include file="$template/includes/panel.tpl" type="danger" headerTitle="{lang key='error'}" bodyContent="{lang key='invoiceserror'}" bodyTextCenter=true}
{else}
{if $paymentSuccessAwaitingNotification}
{include file="$template/includes/panel.tpl" type="success" headerTitle="{lang key='success'}" bodyContent="{lang key='invoicePaymentSuccessAwaitingNotify'}" bodyTextCenter=true}
{elseif $paymentSuccess}
{include file="$template/includes/panel.tpl" type="success" headerTitle="{lang key='success'}" bodyContent="{lang key='invoicepaymentsuccessconfirmation'}" bodyTextCenter=true}
{elseif $paymentInititated}
{include file="$template/includes/panel.tpl" type="info" headerTitle="{lang key='success'}" bodyContent="{lang key='invoicePaymentInitiated'}" bodyTextCenter=true}
{elseif $pendingReview}
{include file="$template/includes/panel.tpl" type="info" headerTitle="{lang key='success'}" bodyContent="{lang key='invoicepaymentpendingreview'}" bodyTextCenter=true}
{elseif $paymentFailed}
{include file="$template/includes/panel.tpl" type="danger" headerTitle="{lang key='error'}" bodyContent="{lang key='invoicepaymentfailedconfirmation'}" bodyTextCenter=true}
{elseif $offlineReview}
{include file="$template/includes/panel.tpl" type="info" headerTitle="{lang key='success'}" bodyContent="{lang key='invoiceofflinepaid'}" bodyTextCenter=true}
{/if}
{lang key='invoicespayto'}
{$payto}
{if $taxCode}
{$taxIdLabel}: {$taxCode}{/if}
{lang key='invoicesinvoicedto'}
{if $clientsdetails.companyname}{$clientsdetails.companyname}
{/if}
{$clientsdetails.firstname} {$clientsdetails.lastname}
{$clientsdetails.address1}, {$clientsdetails.address2}
{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}
{$clientsdetails.country}
{if $clientsdetails.tax_id}
{$taxIdLabel}: {$clientsdetails.tax_id}
{/if}
{if $customfields}
{foreach $customfields as $customfield}
{$customfield.fieldname}: {$customfield.value}
{/foreach}
{/if}
{lang key='paymentmethod'}
{if $status eq "Unpaid" && $allowchangegateway}
{else}
{$paymentmethod}{if $paymethoddisplayname} ({$paymethoddisplayname}){/if}
{/if}
{lang key='invoicesdatecreated'}
{$date}
{if $manualapplycredit}
{/if}
{if $notes}
{include file="$template/includes/panel.tpl" type="info" headerTitle="{lang key='invoicesnotes'}" bodyContent=$notes}
{/if}
{lang key='invoicesdescription'} |
{lang key='invoicesamount'} |
{foreach $invoiceitems as $item}
{$item.description}{if $item.taxed eq "true"} *{/if} |
{$item.amount} |
{/foreach}
{lang key='invoicessubtotal'} |
{$subtotal} |
{if $taxname}
{$taxrate}% {$taxname} |
{$tax} |
{/if}
{if $taxname2}
{$taxrate2}% {$taxname2} |
{$tax2} |
{/if}
{lang key='invoicescredit'} |
{$credit} |
{lang key='invoicestotal'} |
{$total} |
{if $taxrate}
* {lang key='invoicestaxindicator'}
{/if}
{lang key='invoicestransdate'} |
{lang key='invoicestransgateway'} |
{lang key='invoicestransid'} |
{lang key='invoicestransamount'} |
{foreach $transactions as $transaction}
{$transaction.date} |
{$transaction.gateway} |
{$transaction.transid} |
{$transaction.amount} |
{foreachelse}
{lang key='invoicestransnonefound'} |
{/foreach}
{lang key='invoicesbalance'} |
{$balance} |
{/if}