{if $invalidQuoteIdRequested} {include file="$template/includes/panel.tpl" type="danger" headerTitle="{lang key='error'}" bodyContent="{lang key='invoiceserror'}" bodyTextCenter=true} {else}
{if $logo}

{else}

{$companyname}

{/if}

{lang key='quotenumber'}{$id}

{if $stage eq "Delivered"} {lang key='quotestagedelivered'} {elseif $stage eq "Accepted"} {elseif $stage eq "On Hold"} {lang key='quotestageonhold'} {elseif $stage eq "Lost"} {lang key='quotestagelost'} {elseif $stage eq "Dead"} {lang key='quotestagedead'} {/if}
{if $stage eq "Delivered" || $stage eq "On Hold"}
{/if}

{if $agreetosrequired} {include file="$template/includes/panel.tpl" type="danger" headerTitle="{lang key='error'}" bodyContent="{lang key='ordererroraccepttos'}" bodyTextCenter=true} {/if}
{lang key='quoterecipient'}:
{if $clientsdetails.companyname}{$clientsdetails.companyname}
{/if} {$clientsdetails.firstname} {$clientsdetails.lastname}
{$clientsdetails.address1}, {$clientsdetails.address2}
{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}
{$clientsdetails.country} {if $customfields}

{foreach $customfields as $customfield} {$customfield.fieldname}: {$customfield.value}
{/foreach} {/if}
{lang key='invoicespayto'}:
{$payto}
{lang key='quotedatecreated'}:
{$datecreated}

{lang key='quotevaliduntil'}:
{$validuntil}


{if $proposal} {include file="$template/includes/panel.tpl" type="warning" headerTitle="{lang key='quoteproposal'}" bodyContent=$proposal} {/if}

{lang key='quotelineitems'}

{foreach $quoteitems as $item} {/foreach} {if $taxrate} {/if} {if $taxrate2} {/if}
{lang key='invoicesdescription'} {lang key='quotediscountheading'} {lang key='invoicesamount'}
{$item.description}{if $item.taxed} *{/if} {if $item.discountpc > 0}{$item.discount} ({$item.discountpc}%){else} - {/if} {$item.amount}
{lang key='invoicessubtotal'} {$subtotal}
{$taxrate}% {$taxname} {$tax}
{$taxrate2}% {$taxname2} {$tax2}
{lang key='quotelinetotal'} {$total}
{if $notes} {include file="$template/includes/panel.tpl" type="info" headerTitle="{lang key='invoicesnotes'}" bodyContent=$notes} {/if} {if $taxrate}

* {lang key='invoicestaxindicator'}

{/if}
{lang key='print'} {lang key='invoicesdownload'}
{/if}

{lang key='invoicesbacktoclientarea'}