<commit_before><?php

$order_buttons[] = array("text"=>"Edit","style"=>"edit","class"=>"edit-po edit btn-sm","href"=>site_url("po/edit/$order->id"));
$order_buttons[] = array("text"=>"Delete Order","style"=>"delete","class"=>"delete-order delete btn-sm","id"=>"delete-po_$order->id","href"=>site_url("po/delete"));
?>
<h1>
	Purchase Order: <?=$order->po; ?>
</h1>
<?=create_button(array("text"=>"Print Order","style"=>"print","class"=>"print-order","id"=>"print-order_$order->id", "href"=>site_url("po/view/$order->po?print=1"),"target"=>"_blank")); ?>
<div id="page-box">
	<div class="address-row clearfix">
		<div class="left-box">
		<? $this->load->view('po/vendor'); ?>
		</div>
		<div class="right-box">
			<fieldset>
				<legend>Order Details</legend>
				<?=create_button_bar($order_buttons); ?>
				<div id="order-info">
					<p>
						Order Date: <b><?=$order->po_date; ?> </b> <br /> Order Method: <b>
						<?=$order->method?>
						</b> <br /> Payment Type:<b> <?=$order->payment_type; ?>
						</b> <br /> Ordered By: <b><?=$order->first_name . " " . $order->last_name; ?> </b> <br />
						Billing Contact: <b><?=$order->billing_contact; ?> </b> <br />
						Budget Category: <b><?=$order->category; ?> </b> <br />
						Quote/Order Number: <b><?=$order->quote; ?> </b>
					</p>
				</div>

			</fieldset>
		</div>
	</div>
</div>
<div class="items">
<? $item_buttons[] = array("text"=>"Add Item","style"=>"new","class"=>"btn-xs add-item create","id"=>"add-item_$order->id","href"=>site_url("item/create/$order->po/$order->id"));
echo create_button_bar($item_buttons,"toolbar");?>
<div id='item-table'>
<?php $this->load->view('item/table',array("items"=>$order->items));?>
</div>
</div>

<?php if($assets):?>
<a href="<?php echo site_url("asset/po_list/$order->po");?>" title="View ordered assets in service">View the above assets in service</a>
<?php endif;<commit_msg>Small updates to purchase order view.<commit_after><?php

$order_buttons[] = array("text"=>"Edit","style"=>"edit","class"=>"edit-po edit btn-sm","href"=>site_url("po/edit/$order->id"));
$order_buttons[] = array("text"=>"Delete Order","style"=>"delete","class"=>"delete-order delete btn-sm","id"=>"delete-po_$order->id","href"=>site_url("po/delete"));
?>
<?=create_button(array("text"=>"Print Order","style"=>"print","class"=>"print-order","id"=>"print-order_$order->id", "href"=>site_url("po/view/$order->po?print=1"),"target"=>"_blank")); ?>
<div id="page-box">
	<div class="address-row clearfix">
		<div class="left-box">
		<? $this->load->view('po/vendor'); ?>
		</div>
		<div class="right-box">
			<fieldset>
				<legend>Order Details</legend>
				<?=create_button_bar($order_buttons); ?>
				<div id="order-info">
					<p>
						Order Date: <b><?=$order->po_date; ?> </b> <br /> Order Method: <b>
						<?=$order->method?>
						</b> <br /> Payment Type:<b> <?=$order->payment_type; ?>
						</b> <br /> Ordered By: <b><?=$order->first_name . " " . $order->last_name; ?> </b> <br />
						Billing Contact: <b><?=$order->billing_contact; ?> </b> <br />
						Budget Category: <b><?=$order->category; ?> </b> <br />
						Quote/Order Number: <b><?=$order->quote; ?> </b>
					</p>
				</div>

			</fieldset>
		</div>
	</div>
</div>
<div class="items">
<? $item_buttons[] = array("text"=>"Add Item","style"=>"new","class"=>"btn-xs add-item create","id"=>"add-item_$order->id","href"=>site_url("item/create/$order->po/$order->id"));
echo create_button_bar($item_buttons,"toolbar");?>
<div id='item-table'>
<?php $this->load->view('item/table',array("items"=>$order->items));?>
</div>
</div>

<?php if($assets):?>
<a href="<?php echo site_url("asset/po_list/$order->po");?>" title="View ordered assets in service">View the above assets in service</a>
<?php endif;
{'fraction_non_alphanumeric': 0.2849519743863394, 'fraction_numerical': 0.0010672358591248667, 'mean_word_length': 5.186468646864687, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7032021', 'n_tokens_mistral': 1517, 'n_tokens_neox': 1387, 'n_words': 221}