Example #1
0
 function index()
 {
     $this->template->set('page_title', 'Inventory');
     $this->template->set('nav_links', array('inventory/group/add' => 'Add Inventory Group', 'inventory/item/add' => 'Add Inventory Item', 'inventory/unit/add' => 'Add Inventory Unit'));
     /* Inventory Units */
     $this->db->from('inventory_units')->order_by('name', 'desc');
     $data['inventory_units'] = $this->db->get();
     /* Inventory Tree */
     $this->load->library('inventorytree');
     $inventory_tree = new Inventorytree();
     $data['inventory_tree'] = $inventory_tree->init(0);
     $this->template->load('template', 'inventory/account/index', $data);
     return;
 }
Example #2
0
 function inventory_summary()
 {
     /********************* INVENTORY SUMMARY **********************/
     $this->load->model('Inventory_item_model');
     $this->load->library('inventorytree');
     $inventory_tree = new Inventorytree();
     $data['inventory_tree'] = $inventory_tree->init(0);
     $this->template->load('template', 'report/inventory/summary', $data);
     return;
 }