
<patTemplate:tmpl name="pageoutput" unusedvars="strip">
<br />

<h2 class="page-header">{HINVOICENO}: {ID}</h2>

<div class="row-fluid">
	<div class="span4 well">
		<div class="row-fluid">
			<div class="span5">
				<strong>{HBUSINESSNAME}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_NAME}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HHOUSENO}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_HOUSENO}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HSTREET}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_STREET}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HTOWN}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_TOWN}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HREGION}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_REGION}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HPOSTCODE}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_POSTCODE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HCOUNTRY}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_COUNTRY}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HTELEPHONE}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_TELEPHONE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HEMAIL}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_EMAIL}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HVATNO}</strong>
			</div>
			<div class="span6">
				{SITE_BUSINESS_VATNO}
			</div>
		</div>
	</div>
	<div class="span4" align="center">
		<img src="{LOGO}" alt="logo" />
		<p>&nbsp;</p>
		<h2 class="page-header">{HINVOICENO}: {ID}</h2>
		<div>{HRAISED}: {RAISED}</div>
		<div>{HDUE}: {DUE}</div>
		<!--<div>{HCURRENCYCODE}: {CURRENCYCODE}</div>-->
		<div>{HSTATUS}: {STATUS}</div>
	</div>
	<div class="span4 well pull-right">
		<div class="row-fluid">
			<div class="span5">
				<strong>{HFIRSTNAME}</strong>
			</div>
			<div class="span6">
				{FIRSTNAME} {SURNAME}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HHOUSENO}</strong>
			</div>
			<div class="span6">
				{HOUSE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HSTREET}</strong>
			</div>
			<div class="span6">
				{STREET}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HTOWN}</strong>
			</div>
			<div class="span6">
				{TOWN}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HREGION}</strong>
			</div>
			<div class="span6">
				{REGION}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HPOSTCODE}</strong>
			</div>
			<div class="span6">
				{POSTCODE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HCOUNTRY}</strong>
			</div>
			<div class="span6">
				{COUNTRY}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HLANDLINE}</strong>
			</div>
			<div class="span6">
				{LANDLINE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HMOBILE}</strong>
			</div>
			<div class="span6">
				{MOBILE}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HEMAIL}</strong>
			</div>
			<div class="span6">
				{EMAIL}
			</div>
		</div>
		<div class="row-fluid">
			<div class="span5">
				<strong>{HVATNO}</strong>
			</div>
			<div class="span6">
				{VATNO}
			</div>
		</div>
	</div>
</div>

<h3 class="page-header">{LIPAGETITLE}</h3>
<table width="100%" class="table table-striped table-bordered table-condensed">
	<thead>
		<tr>
			<th width="25%">{HLI_NAME}</th>
			<th>{HLI_INIT_PRICE}</th>
			<th>{HLI_INIT_QTY}</th>
			<th>{HLI_INIT_DISCOUNT}</th>
			<th>{HLI_INIT_TOTAL}</th>
			<th>{HLI_TAX_RATE}</th>
			<th>{HLI_TAX_DESCRIPTION}</th>
			<th>{HLI_TAX_AMOUNT}</th>
			<th>{HLI_INIT_TOTAL_INCLUSIVE}</th>
		</tr>
	</thead>
	<tbody>
		<patTemplate:tmpl name="rows" unusedvars="nbsp">
		<tr>
			<td>{LI_NAME} {LI_DESCRIPTION}</td>
			<td>{LI_INIT_PRICE}</td>
			<td>{LI_INIT_QTY}</td>
			<td>{LI_INIT_DISCOUNT}</td>
			<td>{LI_INIT_TOTAL}</td>
			<td>{LI_TAX_RATE}%</td>
			<td>{LI_TAX_DESCRIPTION}</td>
			<td>{LI_TAX_AMOUNT}</td>
			<td>{LI_INIT_TOTAL_INCLUSIVE}</td>
		</tr>
		</patTemplate:tmpl>
		<tr>
			<td colspan="4"></td>
			<td><strong>{JOMRES_GRANDTOTAL_EX_TAX}</strong></td>
			<td colspan="2"></td>
			<td><strong>{JOMRES_GRANDTOTAL_TOTAL_TAX}</strong></td>
			<td><strong>{JOMRES_GRANDTOTAL_INC_TAX}</strong></td>
		</tr>
		<tr>
			<td colspan="4"></td>
			<td>{GRAND_TOTAL_EX_TAX}</td>
			<td colspan="2"></td>
			<td>{GRAND_TOTAL_TAX}</td>
			<td><strong>{GRAND_TOTAL_INC_TAX}</strong></td>
		</tr>
	</tbody>
</table>
</patTemplate:tmpl>