<p class="form-title">Compras por Pagar</p>
<?php 
if (!Forms::checkPermission(FORM_PURCHASE_PAYABLE)) {
    return;
}
require 'inc/class.purchase.php';
require 'inc/class.formatter.php';
$purchases = Purchase::getAllOutstanding("`date`", "DESC");
?>

<table class="default">
<thead>
	<tr>
		<th style="width:8em">C&oacute;digo</th>
		<th style="width:8em">Fecha</th>
		<th style="width:12em">Proveedor</th>
		<th>Estado</th>
		<th>Observaci&oacute;n</th>
		<th style="width:8em">Monto <?php 
echo SB_CURRENCY;
?>
</th>
		<th style="width:8em">Saldo <?php 
echo SB_CURRENCY;
?>
</th>
		<th colspan="2">&nbsp;</th>
	</tr>
</thead>
<tbody>
	<?php