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

{else}

{$companyname}

{/if}

{$LANG.quotenumber}{$id}

{if $stage eq "Delivered"} {$LANG.quotestagedelivered} {elseif $stage eq "Accepted"} {elseif $stage eq "On Hold"} {$LANG.quotestageonhold} {elseif $stage eq "Lost"} {$LANG.quotestagelost} {elseif $stage eq "Dead"} {$LANG.quotestagedead} {/if}
{if $stage eq "Delivered" || $stage eq "On Hold"}
{/if}

{if $agreetosrequired} {include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.ordererroraccepttos bodyTextCenter=true} {/if}
{$LANG.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 from=$customfields item=customfield} {$customfield.fieldname}: {$customfield.value}
{/foreach} {/if}
{$LANG.invoicespayto}:
{$payto}
{$LANG.quotedatecreated}:
{$datecreated}

{$LANG.quotevaliduntil}:
{$validuntil}


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

{$LANG.quotelineitems}

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

* {$LANG.invoicestaxindicator}

{/if}
{$LANG.print} {$LANG.invoicesdownload}
{/if}

{$LANG.invoicesbacktoclientarea}