| Current Path : /var/www/html/mmishra/icure/staff/ |
| Current File : /var/www/html/mmishra/icure/staff/stocklist.inc |
<?php
$list = $_REQUEST["list"];
if ($list == 'medicine') {
$ttl = 'Medicine';
$sql = "select med_name as medicine,unit_rate,opening_stock,qty_receipt,qty_used,qty_inhand,qty_critical,date_updation as dated,login_id as staff from medicines order by med_name";
} else {
$ttl = 'Material';
$sql = "select med_name as material,unit_rate,opening_stock,qty_receipt,qty_used,qty_inhand,qty_critical,qty_used,date_updation as dated,login_id as staff from materials order by med_name";
}
echo "<h3 align='left'>$ttl Stock</h3>
<center>";
echo list_tabledata($sql);
?>
</center>