ESH/pdf_indent_pending.php

83 lines
3.0 KiB
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<? include('pdf_header.php');
// include('includes/config/config.php');
//include('includes/functions.php')
//include('pop_up_top.php');
?>
<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:20px"><strong>Indent List</strong></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1" width="100%">
<?php
//$sql_issue_items="select * from stock_issue_items inner join stock_issue on stock_issue_items.stock_issue_id = stock_issue.stock_issue_id ";
//$results_issue_items = mysql_query($sql_issue_items);
$sql = base64_decode($filterkey);
$results = mysqli_query($conn, $sql);
?>
<strong>
<tr bgcolor="#eeeeee">
<td valign="top" align="left" width="2%">Id.</td>
<td valign="top" align="left" width="10%">Item Name</td>
<td align="left" width="10%">Indent Ref No</td>
<td align="left" width="10%">Indent Date</td>
<td align="left" width="10%">Indent Qty</td>
<td valign="top" width="15%" align="left">Remarks</td>
<td align="left" width="10%">Status</td>
</strong></tr>
<?php
$count = 0;
while ($row1 = mysqli_fetch_assoc($results)) {
extract($row1);
$item_desc = "";
$item_qty = "";
$sql_q = "select * from indent_items where indent_id='" . $row1['indent_id'] . "'";
error_log("indent sql" . $sql_q);
$result = mysqli_query($conn, $sql_q);
$indent_ref_no = $row1['indent_ref_no'];
//$rows_count = mysql_num_rows($result);
?>
<?php
while ($row2 = mysqli_fetch_assoc($result)) {
$item_desc = $item_desc . ' <p> ' . getItemWithFormName($row2['item_id']) . '</p><br>';
$item_unit_id = getTableFieldValue('tbl_items', 'unit_id', 'item_id', $row2['item_id']);
$item_unit = getTableFieldValue(' unit_master', 'unit_name', 'unit_id', $item_unit_id);
$item_qty = $item_qty . ' <p> ' . $row2['indent_qty'] . ' ' . $item_unit . '</p><br>';
}
?>
<tr>
<td><?php echo ++$count ?></td>
<td><?php echo $item_desc ?></td>
<td><?php echo $indent_ref_no ?></td>
<td><?php echo date_format(date_create($row1['indent_date']), "d-M-Y ") ?></td>
<td><?php echo $item_qty ?></td>
<td><?php echo $row1['remarks'] ?></td>
<td><?php echo $row1['status'] ?></td>
</tr>
<?
}
?>
</table>
</body>
<?
include('pdf_footer.php');
?>