rendered paste body<html><head><title>{$companyname} - {$pagetitle}</title><link rel="stylesheet" type="text/css" href="templates/{$template}/invoicestyle.css"></head><body bgcolor=#efefef>{if $error}<p style="color:#cc0000;">{$LANG.invoiceserror}</p>{else}<table id="wrapper" cellspacing=1 cellpadding=10 bgcolor=#cccccc align=center><tr><td bgcolor=#ffffff><table width=100%><tr><td width=100>{if $logo}<p><img src="{$logo}"></p>{else}<h1>{$companyname}</h1>{/if}</td><td align=center>{if $status eq "Unpaid"}<font class="unpaid">{$LANG.invoicesunpaid}</font><br>{if $allowchangegateway}<form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}">{$gatewaydropdown}</form>{else}{$paymentmethod}<br>{/if}{$paymentbutton}{elseif $status eq "Paid"}<font class="paid">{$LANG.invoicespaid}</font><br>{$paymentmethod}<br>({$datepaid}){else}<font class="cancelled">{$LANG.invoicescancelled}</font>{/if}</td></tr></table>{if $offlinepaid}<p align="center">{$LANG.invoiceofflinepaid}</p>{else}<br>{/if}<table width=100% id="invoicetoptables" cellspacing=1><tr><td width=50% id="invoicecontent"><table width=100% height=90 cellspacing=1 id="invoicetoptables" cellpadding=10><tr><td id="invoicecontent" valign=top><b>{$LANG.invoicesinvoicedto}</b><br>{$clientsdetails.firstname} {$clientsdetails.lastname}<br>{$clientsdetails.address1}, {$clientsdetails.address2}<br>{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br>{$clientsdetails.country}</td></tr></table></td><td width=50% id="invoicecontent"><table width=100% height=90 cellspacing=1 id="invoicetoptables" cellpadding=10><tr><td id="invoicecontent" valign=top><b>{$LANG.invoicespayto}</b><br>{$payto}</td></tr></table></td></tr></table><p><b>{$pagetitle}</b><br>{$LANG.invoicesdatecreated}: {$datecreated}<br>{$LANG.invoicesdatedue}: {$datedue}</p><table cellspacing=1 id="invoiceitemstable" align=center><tr><td id="invoiceitemsheading" align="center" width="70%"><b>{$LANG.invoicesdescription}</b></td><td id="invoiceitemsheading" align="center" width="30%"><b>{$LANG.invoicesamount}</b></td></tr>{foreach key=num item=invoiceitem from=$invoiceitems}<tr bgcolor=#ffffff><td id="invoiceitemsrow">{$invoiceitem.description}</td><td align=center id="invoiceitemsrow">{$invoiceitem.amount}</td></tr>{/foreach}<tr><td id="invoiceitemsheading"><div align="right">{$LANG.invoicessubtotal} </div></td><td id="invoiceitemsheading" align="center"><b>{$subtotal}</b></td></tr><tr><td id="invoiceitemsheading"><div align="right">{$LANG.invoicescredit} </div></td><td id="invoiceitemsheading" align="center"><b>{$credit}</b></td></tr><tr><td id="invoiceitemsheading"><div align="right">Moms </div></td><td id="invoiceitemsheading" align="center"><b>{php}$total = $this->get_template_vars('total');$newtotal = sprintf("%01.2f", ((str_replace('$','',$total)) / 5));echo 'kr.'.$newtotal;{/php}</b></td></tr><tr><td id="invoiceitemsheading"><div align="right">{$LANG.invoicestotal} </div></td><td id="invoiceitemsheading" align="center"><b>{php}$total = $this->get_template_vars('total');$newtotal = sprintf("%01.2f", ((str_replace('kr.','',$total)) / 5));echo 'kt.'.$newtotal;{/php}</b></td></tr></table><p><b>{$LANG.invoicestransactions}</b></p><table cellspacing=1 id="invoiceitemstable" align=center><tr><td id="invoiceitemsheading" align="center" width="30%"><b>{$LANG.invoicestransdate}</b></td><td id="invoiceitemsheading" align="center" width="25%"><b>{$LANG.invoicestransgateway}</b></td><td id="invoiceitemsheading" align="center" width="25%"><b>{$LANG.invoicestransid}</b></td><td id="invoiceitemsheading" align="center" width="20%"><b>{$LANG.invoicestransamount}</b></td></tr>{foreach key=num item=transaction from=$transactions}<tr bgcolor=#ffffff><td id="invoiceitemsrow" align=center>{$transaction.date}</td><td align=center id="invoiceitemsrow">{$transaction.gateway}</td><td align=center id="invoiceitemsrow">{$transaction.transid}</td><td align=center id="invoiceitemsrow">{$transaction.amount}</td></tr>{foreachelse}<tr bgcolor=#ffffff><td id="invoiceitemsrow" colspan=4 align=center>{$LANG.invoicestransnonefound}</td></tr>{/foreach}</table>{if $notes}<p>{$LANG.invoicesnotes}: {$notes}</p>{/if}</td></tr></table>{/if}<p align=center><a href="#" onClick="window.close()">{$LANG.closewindow}</a></p></body></html>