Example #1
0
                    <th>
                        Particular
                    </th>
                    <th>
                        Qty
                    </th>
                    <th>
                        Price/peice
                    </th>
                    <th>
                        Amount
                    </th>
                </tr>
                </thead>
                <?php 
$bill_details_info = $db->getBill_details($bill_no);
$i = 1;
foreach ($bill_details_info as $bill_info) {
    echo "<tr><td > {$i}</td>\n                        \t<td >{$bill_info['company_name']} &nbsp;&nbsp;{$bill_info['category_name']} &nbsp;&nbsp;{$bill_info['article_no']}</td>\n                        \t<td>{$bill_info['qty']}</td>\n                        \t<td>{$bill_info['rate']}</td>\n                        \t<td><i class='fa fa-rupee'></i>&nbsp;{$bill_info['total']}</td>\n                        </tr>";
    $i++;
}
?>
                <tbody>
                <tr>
                    <td colspan='4' style='text-align:right;'>
                        Net Amount :
                    </td>
                    <td >
                        <i class='fa fa-rupee'></i>&nbsp;<?php 
echo $bill_details['grand_total'];
?>