ESH/item_rate_pdf.php
2024-10-23 18:28:06 +05:30

44 lines
1.1 KiB
PHP

<?php
include('pdf_header.php');
include('pdf_ohc_header.php');
?>
<table border="1" width="100%">
<?php
$sql = base64_decode($filterkey);
$result = mysqli_query($conn, $sql);
// echo $result;
?><tr>
<th>sr</th>
<th>Item Name</th>
<th>Net Value</th>
<th>Vendor Name</th>
<th>Vendor Code</th>
<th>Unit</th>
</tr><?php
$count = 0;
error_reporting(E_ERROR | E_PARSE);
while ($rowOfEmployee = mysqli_fetch_array($result)) {
$count = $count + 1;
?><tr>
<td><?php echo $count ?></td>
<td style="width: 10px;"><?php echo getItemWithFormName($rowOfEmployee['item_id'] )?></td>
<td><?php echo $rowOfEmployee['net_value'] ?></td>
<td><?php echo $rowOfEmployee['employer_contractor_name'] ?></td>
<td><?php echo $rowOfEmployee['employer_contractor_code'] ?></td>
<td><?php echo $rowOfEmployee['qty']." ".getTableFieldValue('unit_master', 'unit_name', 'unit_id', $rowOfEmployee['unit_id']) ?>
</td>
</tr><?php
}
?>
</table>
<?php
include('pdf_footer.php');
?>