Server IP : 164.52.202.56 / Your IP : 216.73.216.204 Web Server : Apache System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : rubyaromatics ( 1052) PHP Version : 7.2.34 Directory (0755) : /home/rubyaromatics/public_html/crm/application/core/../views/reports/ |
[ Home ] | [ Terminal ] | [ Upload File ] |
---|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $p = array('admin','accountant','manager'); if(!(in_array($this->session->userdata('type'),$p))){ redirect('auth/dashboard'); } ?> <table border="1"> <thead> <tr> <th width="10%"><?php echo $this->lang->line('purchase_date'); ?></th> <th width="10%"><?php echo $this->lang->line('purchase_reference_no'); ?></th> <th width="20%"><?php echo $this->lang->line('header_warehouse'); ?></th> <th width="20%"><?php echo $this->lang->line('reports_supplier'); ?></th> <th width="30%"><?php echo $this->lang->line('reports_product_qty'); ?></th> <th width="10%"><?php echo $this->lang->line('purchase_total'); ?></th> </tr> </thead> <tbody> <?php foreach ($purchase as $row) { ?> <tr> <td><?php echo $row->date; ?></td> <td><?php echo $row->reference_no; ?></td> <td><?php echo $row->warehouse_name; ?></td> <td><?php echo $row->supplier_name; ?></td> <td> <?php foreach ($purchase_items as $value) { foreach ($products as $key) { if($row->purchase_id == $value->purchase_id){ if($value->product_id == $key->product_id){ echo $key->name."(".$value->quantity.")<br>"; } } } } ?> </td> <td><?php echo $this->session->userdata('symbol').$row->total; ?></td> <?php } ?> </tr> </tbody> </table> <script> window.print(); </script>