Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/istore/
Upload File :
Current File : /var/www/html/mmishra/istore/ininqueue.inc

<h2 align='left'>Inqueue Indents</h2>
<center>
<table width='90%' border='1' style='border-collapse: collapse' bgcolor='white'>
<tr><th>No.</th><th>Indent No.</th><th>Dated</th><th>Indentor</th><th>Partially issued items</th></tr>

<?php

/*
* 
*at leat one item must be issued
* and approved qty must be greater than out qty
*
*/

$rs = mysql_query("select i.* from indents as i,st_stockout as o where i.indent_no=o.indent_no and i.status='Approved' order by i.indent_no desc");
while ($o = mysql_fetch_object($rs)) {
	if ($indentno != $o->indent_no) {
		$indentno = $o->indent_no;
		$i++;
		$j = 0;
		echo "<tr><td>$i</td><th><a href='?pg=inindents&indent_no=$o->indent_no'>$o->indent_no</a></th>
		<td>$o->date_indent</td><td>".employee_detail($o->emp_no)."<br>Recommendor: $o->recommendation<br>
		Location: $o->location<br>Account: $o->account</td><td>
		<table width='100%' border='1' style='border-collapse: collapse' bgcolor='white'>
		<tr><th width='5%'>Sr.</th><th width='55%'>Particulars</th><th width='10%'>Demand Qty</th>
		<th width='10%'>Approve Qty</th><th width='10%'>Out Qty</th><th>Approx Cost</th></tr>";

		$rr = mysql_query("select * from indent_items where indent_no=$o->indent_no and qty_out<qty_approve order by item");
		while ($q = mysql_fetch_object($rr)) {
			$j++;
			echo "<tr><td>$j</td><td>".item_detail($q->item)."</td><td>$q->qty_demand $q->unit</td>
			<td>$q->qty_approve $q->unit</td><td>$q->qty_out $q->unit</td><td>$q->approx_cost</td></tr>";
		}
		echo "</table></td></tr>";
	}
}
?>

</table>
</center>