{if $error}

{$LANG.invoiceserror}

{else}
{if $logo}

{else}

{$companyname}

{/if}
{if $status eq "Unpaid"} {$LANG.invoicesunpaid}
{if $allowchangegateway}
{$gatewaydropdown}
{else} {$paymentmethod}
{/if} {$paymentbutton} {elseif $status eq "Paid"}
{$paymentmethod}
({$datepaid}) {else} {$LANG.invoicescancelled} {/if}
{if $offlinepaid}

{$LANG.invoiceofflinepaid}

{else}
{/if}
{$LANG.invoicesinvoicedto}
{$clientsdetails.firstname} {$clientsdetails.lastname}
{$clientsdetails.address1}, {$clientsdetails.address2}
{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}
{$clientsdetails.country}
{$LANG.invoicespayto}
{$payto}

{$pagetitle}
{$LANG.invoicesdatecreated}: {$datecreated}
{$LANG.invoicesdatedue}: {$datedue}

{foreach key=num item=invoiceitem from=$invoiceitems} {/foreach}
{$LANG.invoicesdescription}{$LANG.invoicesamount}
{$invoiceitem.description}{$invoiceitem.amount}
{$LANG.invoicessubtotal} 
{$subtotal}
{$LANG.invoicescredit} 
{$credit}
Moms  
{php} $total = $this->get_template_vars('total'); $newtotal = sprintf("%01.2f", ((str_replace('$','',$total)) / 5)); echo 'kr.'.$newtotal; {/php}
{$LANG.invoicestotal} 
{php} $total = $this->get_template_vars('total'); $newtotal = sprintf("%01.2f", ((str_replace('$','',$total)) / 5)); echo '$'.$newtotal; {/php}

{$LANG.invoicestransactions}

{foreach key=num item=transaction from=$transactions} {foreachelse} {/foreach}
{$LANG.invoicestransdate}{$LANG.invoicestransgateway}{$LANG.invoicestransid}{$LANG.invoicestransamount}
{$transaction.date}{$transaction.gateway}{$transaction.transid}{$transaction.amount}
{$LANG.invoicestransnonefound}
{if $notes}

{$LANG.invoicesnotes}: {$notes}

{/if}
{/if}

{$LANG.closewindow}