{if $invalidInvoiceIdRequested}
{include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.invoiceserror bodyTextCenter=true}
{else}
{if $paymentSuccessAwaitingNotification}
{include file="$template/includes/panel.tpl" type="success" headerTitle=$LANG.success bodyContent=$LANG.invoicePaymentSuccessAwaitingNotify bodyTextCenter=true}
{elseif $paymentSuccess}
{include file="$template/includes/panel.tpl" type="success" headerTitle=$LANG.success bodyContent=$LANG.invoicepaymentsuccessconfirmation bodyTextCenter=true}
{elseif $paymentInititated}
{include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.success bodyContent=$LANG.invoicePaymentInitiated bodyTextCenter=true}
{elseif $pendingReview}
{include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.success bodyContent=$LANG.invoicepaymentpendingreview bodyTextCenter=true}
{elseif $paymentFailed}
{include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.invoicepaymentfailedconfirmation bodyTextCenter=true}
{elseif $offlineReview}
{include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.success bodyContent=$LANG.invoiceofflinepaid bodyTextCenter=true}
{/if}
{$LANG.invoicespayto}
{$payto}
{if $taxCode}
{$taxIdLabel}: {$taxCode}{/if}
{$LANG.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 from=$customfields item=customfield}
{$customfield.fieldname}: {$customfield.value}
{/foreach}
{/if}
{$LANG.paymentmethod}
{if $status eq "Unpaid" && $allowchangegateway}
{else}
{$paymentmethod}{if $paymethoddisplayname} ({$paymethoddisplayname}){/if}
{/if}
{$LANG.invoicesdatecreated}
{$date}
{if $manualapplycredit}
{$LANG.invoiceaddcreditapply}
{/if}
{if $notes}
{include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.invoicesnotes bodyContent=$notes}
{/if}
{$LANG.invoicelineitems}
| {$LANG.invoicesdescription} |
{$LANG.invoicesamount} |
{foreach from=$invoiceitems item=item}
| {$item.description}{if $item.taxed eq "true"} *{/if} |
{$item.amount} |
{/foreach}
| {$LANG.invoicessubtotal} |
{$subtotal} |
{if $taxname}
| {$taxrate}% {$taxname} |
{$tax} |
{/if}
{if $taxname2}
| {$taxrate2}% {$taxname2} |
{$tax2} |
{/if}
| {$LANG.invoicescredit} |
{$credit} |
| {$LANG.invoicestotal} |
{$total} |
{if $taxrate}
* {$LANG.invoicestaxindicator}
{/if}
| {$LANG.invoicestransdate} |
{$LANG.invoicestransgateway} |
{$LANG.invoicestransid} |
{$LANG.invoicestransamount} |
{foreach from=$transactions item=transaction}
| {$transaction.date} |
{$transaction.gateway} |
{$transaction.transid} |
{$transaction.amount} |
{foreachelse}
| {$LANG.invoicestransnonefound} |
{/foreach}
| {$LANG.invoicesbalance} |
{$balance} |
{/if}