<table class="invoice-header" summary="Invoice Info">
	<tbody>
		<tr>
			<th i18n:translate="">Invoice To</th>
            <td> <a tal:attributes="
                    href  view/clientURL"
                    tal:content="view/clientName"></a></td>
			<th i18n:translate="">Invoice #</th>
			<td tal:content="view/invoiceId"></td>
		</tr>
		<tr>
			<th i18n:translate="">Phone</th>
			<td tal:content="view/clientPhone"></td>
			<th i18n:translate="">Account #</th>
			<td tal:content="view/clientAccountNumber"></td>
		</tr>
		<tr>
			<th i18n:translate="">Fax</th>
			<td tal:content="view/clientFax"></td>
			<th i18n:translate="">Date</th>
			<td tal:content="view/invoiceDate"></td>
		</tr>
		<tr>
			<th tal:condition="view/clientAddress" i18n:translate="">Address</th>
			<th tal:condition="not:view/clientAddress"></th>
			<td></td>
			<th i18n:translate="">Date Range</th>
			<td tal:content="view/batchRange"></td>
		</tr>
		<tal:address tal:condition="view/clientAddress">
			<tr>
				<td tal:content="view/clientAddress/address"></td>
				<td colspan="3"></td>
			</tr>
			<tr>
				<td tal:content="view/clientAddress/city"></td>
				<td colspan="3"></td>
			</tr>
			<tr>
				<td tal:content="view/clientAddress/state"></td>
				<td colspan="3"></td>
			</tr>
			<tr>
				<td tal:content="view/clientAddress/zip"></td>
				<td colspan="3"></td>
			</tr>
		</tal:address>
	</tbody>
</table>

<table class="invoice-items" summary="Analyses List">
	<thead>
		<tr class="header-invoice-summary">
			<th i18n:translate="">Date</th>
            <th class="text" i18n:translate="">Description</th>
			<th i18n:translate="">Order #</th>
			<th class="currency" i18n:translate="">VAT</th>
			<th class="currency" i18n:translate="">Amount incl. VAT</th>
		</tr>
        <tr class="header-bottom-total">
            <td colspan="3"></td>
            <td class="currency">
                <span tal:content="view/currency">R</span>
            </td>
            <td class="currency">
                <span tal:content="view/currency">R</span>
            </td>
        </tr>
	</thead>
	<tbody>
		<tal:items repeat="item view/items">
			<tal:item>
				<tr>
					<td tal:content="item/invoiceDate"></td>
					<td class="text" tal:content="item/description"></td>
                    <td><a tal:attributes="href  item/orderNoURL" tal:content="item/orderNo"></a></td>
					<td>
						<span tal:content="item/VATAmount">0.00</span>
					</td>
					<td>
						<span tal:content="item/total">0.00</span>
					</td>
				</tr>
			</tal:item>
		</tal:items>
		<tr class="totals">
			<td colspan="3" i18n:translate="">Total</td>
			<td class="currency">
				<span tal:content="view/currency">R</span>
				<span tal:content="view/VATAmount"></span>
			</td>
			<td class="currency">
				<span tal:content="view/currency">R</span>
				<span tal:content="view/total"></span>
			</td>
		</tr>
	</tbody>
</table>
