| Current Path : /var/www/html/mmishra/istore/ |
| Current File : /var/www/html/mmishra/istore/ststockstatus.inc |
<h3>Stock Status</h3>
<center>
<table width='90%' border='1' style='border-collapse: collapse'>
<tr><th>No.</th><th>Particulars</th><th>Qty In</th><th>Qty Out</th><th>Dated</th></tr>
<?php
$rs = mysql_query("select i.*,c.code as cat,s.code as subcat from st_items as i,st_category as c, st_subcategory as s where i.category=c.id and i.subcategory=s.id order by cat,subcat,i.code");
while ($o = mysql_fetch_object($rs)) {
$i++;
echo "<tr".($o->qty_out > $o->qty_in ? " bgcolor='yellow'" : '')."><th>$i</th><td>$o->cat -> $o->subcat -> $o->code (ID: $o->id)</td>
<td><a href='?pg=ststockinout&inout=1&item=$o->id'>$o->qty_in</a></td><td><a href='?pg=ststockinout&inout=2&item=$o->id'>$o->qty_out</a></td>
<td nowrap>$o->dateUpdation</td></tr>";
}
if (!$i) {
echo "<tr><td colspan='5'>No status</td></tr>";
}
?>
</table>
<b>Note: Rows with yellow background show more outflow in comparision to inflow of that particular material.</b>
</center>