<commit_before><?php
/**
 * Invoice Default View
 *
 * @package		Argentum
 * @author		Argentum Team
 * @copyright 	(c) 2008 Argentum Team
 * @license		http://www.argentuminvoice.com/license.txt
 *
 * @property object $invoice Main Invoice Object
 */
?>
<style type="text/css">
	#invoice .client {
		width: 25%;
	}

	#invoice table {
		width: 99%;
		margin-top: 2em;
		border: 1px solid black;
	}

	#invoice th {
		font-weight: bold;
		border-bottom: 1px solid black;
	}

	#invoice tr.uneven {
		background-color: #CCC;
	}

	#invoice tr.subtotal td {
		border-top: 3px dashed black;
	}

	#invoice .total td {
		font-weight: bold;
		border-top: 2px solid black;
	}

	#billing_client {
		width: 99%;
		border: none;
	}

	#billing_client .client {
		width: 25%;
	}
</style>
<div id="invoice">
	<h2>Invoice #<?=$invoice->id?> - <?=date('Y/m/d', $invoice->date)?></h2>
	<table id="billing_client">
		<tbody>
			<tr>
				<td class="company">
					Remit Payment To: <?=Kohana::config('argentum.company_name')?><br />
					<?=Kohana::config('argentum.company_address')?><br />
					<?=Kohana::config('argentum.company_city')?>, <?=Kohana::config('argentum.company_state')?> <?=Kohana::config('argentum.company_zip')?><br /><br />
					<span class="due_date">Due Date: <?=date('F j, Y', $invoice->due_date)?></span>
				</td>
				<td class="client">
					Attn: <?=$invoice->client->contact_first_name?> <?=$invoice->client->contact_last_name?><br />
					<?=$invoice->client->company_name?><br />
					<?=$invoice->client->mailing_address?><br />
					<?=$invoice->client->mailing_city?><?php if($invoice->client->mailing_city):?>,<?php endif;?> <?=$invoice->client->mailing_state?> <?=$invoice->client->mailing_zip?>
				</td>
			</tr>
		</tbody>
	</table>
	<table>
		<tbody>
			<tr>
				<th>Hours</th>
				<th>Operation/Description</th>
				<th>Hourly Rate</th>
				<th>Total Cost</th>
			</tr>
			<?php foreach ($invoice->find_operation_types() as $operation_type_id => $operation_type):?><tr class="<?=text::alternate('even', 'uneven')?>">
<?php if ($operation_type_id == 'physical'):?>
				<?php foreach ($operation_type as $physical):?><td></td>
				<td><?=$physical['name']?></td>
				<td></td><commit_msg>Adjusting default invoice template to format non-hourly descriptions.<commit_after><?php
/**
 * Invoice Default View
 *
 * @package		Argentum
 * @author		Argentum Team
 * @copyright 	(c) 2008 Argentum Team
 * @license		http://www.argentuminvoice.com/license.txt
 *
 * @property object $invoice Main Invoice Object
 */
?>
<style type="text/css">
	#invoice .client {
		width: 25%;
	}

	#invoice table {
		width: 99%;
		margin-top: 2em;
		border: 1px solid black;
	}

	#invoice th {
		font-weight: bold;
		border-bottom: 1px solid black;
	}

	#invoice tr.uneven {
		background-color: #CCC;
	}

	#invoice tr.subtotal td {
		border-top: 3px dashed black;
	}

	#invoice .total td {
		font-weight: bold;
		border-top: 2px solid black;
	}

	#billing_client {
		width: 99%;
		border: none;
	}

	#billing_client .client {
		width: 25%;
	}
</style>
<div id="invoice">
	<h2>Invoice #<?=$invoice->id?> - <?=date('Y/m/d', $invoice->date)?></h2>
	<table id="billing_client">
		<tbody>
			<tr>
				<td class="company">
					Remit Payment To: <?=Kohana::config('argentum.company_name')?><br />
					<?=Kohana::config('argentum.company_address')?><br />
					<?=Kohana::config('argentum.company_city')?>, <?=Kohana::config('argentum.company_state')?> <?=Kohana::config('argentum.company_zip')?><br /><br />
					<span class="due_date">Due Date: <?=date('F j, Y', $invoice->due_date)?></span>
				</td>
				<td class="client">
					Attn: <?=$invoice->client->contact_first_name?> <?=$invoice->client->contact_last_name?><br />
					<?=$invoice->client->company_name?><br />
					<?=$invoice->client->mailing_address?><br />
					<?=$invoice->client->mailing_city?><?php if($invoice->client->mailing_city):?>,<?php endif;?> <?=$invoice->client->mailing_state?> <?=$invoice->client->mailing_zip?>
				</td>
			</tr>
		</tbody>
	</table>
	<table>
		<tbody>
			<tr>
				<th>Hours</th>
				<th>Operation/Description</th>
				<th>Hourly Rate</th>
				<th>Total Cost</th>
			</tr>
			<?php foreach ($invoice->find_operation_types() as $operation_type_id => $operation_type):?><tr class="<?=text::alternate('even', 'uneven')?>">
<?php if ($operation_type_id == 'physical'):?>
				<?php foreach ($operation_type as $physical):?><td></td>
				<td><?=markdown($physical['name'])?></td>
				<td></td>
{'fraction_non_alphanumeric': 0.2182468694096601, 'fraction_numerical': 0.00849731663685152, 'mean_word_length': 4.153225806451613, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 177, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '827372', 'n_tokens_mistral': 1941, 'n_tokens_neox': 1698, 'n_words': 306}