57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
<?php
|
|
include('pdf_header.php');
|
|
?>
|
|
<html>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
|
|
<body>
|
|
<table width="100%">
|
|
<tr>
|
|
<div style="font-size:12px">
|
|
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
|
|
<td width="50%" align="center" style="font-size:15px"><strong>Dispensary stock list</strong></td>
|
|
<td width="25%" align="left"> User : <?php echo $username ?></td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" width="100%">
|
|
<?php
|
|
$sql = base64_decode($filterkey);
|
|
|
|
$result = mysqli_query($conn, $sql);
|
|
$count = 0;
|
|
?><tr bgcolor='#eeeeee'>
|
|
<th width=10%>Sr.</th>
|
|
<th width=50%>Item Description</th>
|
|
<th width=50%>Price</th>
|
|
<th width=40%>Stock Quantity</th>
|
|
</tr><?php
|
|
while ($row1 = mysqli_fetch_array($result)) {
|
|
extract($row1);
|
|
|
|
$item_id = $row1['item_id'];
|
|
|
|
$latest_cost = $row1['item_rate_latest'];
|
|
$old_cost = $row1['item_rate_old'];
|
|
$applicable_date = $row1['applicable_date'];
|
|
|
|
$item_id = $row1['item_id'];
|
|
$item_desc = $item_name = getItemWithFormName($row1['item_id']);
|
|
$unit_id = getTableFieldValue('tbl_items', 'unit_id', 'item_id', $row1['item_id']);
|
|
$unit_name = getTableFieldValue('unit_master', 'unit_name', 'unit_id', $unit_id);
|
|
$count = $count + 1;
|
|
?><tr>
|
|
<td><?php echo $count; ?></td>
|
|
<td> <?php echo $item_desc; ?></td>
|
|
<td> <?php echo $latest_cost; ?></td>
|
|
<td> <?php echo $row1['stock_qty'] . " " . $unit_name; ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
</body>
|
|
|
|
</html>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|