{extends file="$tpl_admin_layout"} {block name="content"}
{$_L['Invoice']} - {$d['invoicenum']}{if $d['cn'] neq ''} {$d['cn']} {else} {$d['id']} {/if}
{if $_c['accounting'] eq '1'} {/if} {$_L['Preview']} {$_L['Edit']} {$_L['Print']}

{$_L['INVOICE']}

#{$d['invoicenum']}{if $d['cn'] neq ''} {$d['cn']} {else} {$d['id']} {/if}

{if $d['status'] eq 'Unpaid'}

{$_L['Unpaid']}

{elseif $d['status'] eq 'Paid'}

{$_L['Paid']}

{elseif $d['status'] eq 'Partially Paid'}

{$_L['Partially Paid']}

{else}

{$d['status']}

{/if}
Logo
{$_c['caddress']}

{$_L['Invoiced To']}:

{if $a['company'] neq ''} {$a['company']}
{$_L['ATTN']}: {$d['account']}
{else} {$d['account']}
{/if} {$a['address']}
{$a['city']}
{$a['state']} - {$a['zip']}
{$a['country']}
{$_L['Phone']}: {$a['phone']}
{$_L['Email']}: {$a['email']} {foreach $cf as $cfs}
{$cfs['fieldname']}: {get_custom_field_value($cfs['id'],$a['id'])} {/foreach} {$x_html}

{$_L['Invoice Date']}: {date( $_c['df'], strtotime($d['date']))}

{$_L['Due Date']}: {date( $_c['df'], strtotime($d['duedate']))}

{$_L['Invoice Total']}: {$d['total']}

{if ($d['credit']) neq '0.00'}

{$_L['Total Paid']}: {$d['credit']}

{$_L['Amount Due']}: {$currency_symbol} {$i_due}

{/if}
{foreach $items as $item} {/foreach}
# {$_L['Item']} {$_L['Price']} {$_L['Quantity']} {$_L['Total']}
{$item['itemcode']} {$item['description']} {$item['amount']} {$item['qty']} {$item['total']}
{if ($d['discount']) neq '0.00'} {/if} {if ($d['credit']) neq '0.00'} {**} {else} {/if}
{$_L['Subtotal']} {$d['subtotal']}
{$_L['Discount']} {$d['discount']}
{$_L['TAX']} {if $d['taxrate'] neq ''} ({$d['taxrate']}%){/if} {$d['tax']}
{$_L['Total']} {$d['total']}
{$_L['Total Paid']} {$currency_symbol} {$d['credit']}
{$_L['Amount Due']}{$_c['currency_code']} {number_format($i_due,2,$_c['dec_point'],$_c['thousands_sep'])}{$currency_symbol} {$i_due}
{$_L['Grand Total']} {$d['total']}
{if ($trs_c neq '')}

{$_L['Related Transactions']}

{foreach $trs as $tr} {/foreach}
{$_L['Date']} {$_L['Account']} {$_L['Amount']} {$_L['Description']}
{date( $_c['df'], strtotime($tr['date']))} {$tr['account']} {$currency_symbol} {$tr['amount']} {$tr['description']}
{/if} {if ($d['notes']) neq ''}
{$d['notes']}
{/if}

Bank Details

NEDBANK-Namibia Ltd (Pty) - Account name: Namwel Tours and Car Rentals CC - Account no: 11990124754 - Branch code: 461038 - SWIFT/BIC Code: NEDSNANX - Cheque account.
{if ($emls_c neq '')}

{$_L['Related Emails']}

{foreach $emls as $eml} {/foreach}
{$_L['Date']} {$_L['Subject']}
{date( $_c['df'], strtotime($eml['date']))} {$eml['subject']}
{/if}
{/block}