Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/eshop.codeskitter.site/application/controllers/seller/
Upload File :
Current File : /home/users/unlimited/www/eshop.codeskitter.site/application/controllers/seller/Sales_inventory.php

<?php
defined('BASEPATH') or exit('No direct script access allowed');

class Sales_inventory extends CI_Controller
{
          public function __construct()
          {
                    parent::__construct();
                    $this->load->database();
                    $this->load->helper(['url', 'language', 'timezone_helper']);
                    $this->load->model(['Sales_inventory_model', 'Order_model', 'Product_model']);
                    $this->session->set_flashdata('authorize_flag', "");
          }

          public function index()
          {
                    if ($this->ion_auth->logged_in() && $this->ion_auth->is_seller()) {
                              $this->data['main_page'] = TABLES . 'sales-inventory';
                              $settings = get_settings('system_settings', true);
                              $this->data['title'] = 'Sales Inventory Report Management |' . $settings['app_name'];
                              $this->data['meta_description'] = 'eShop - Multivendor | Sales Inventory Report Management';
                              $this->load->view('seller/template', $this->data);
                    } else {
                              redirect('seller/login', 'refresh');
                    }
          }

          public function get_seller_sales_inventory_list()
          {
                    if ($this->ion_auth->logged_in() && $this->ion_auth->is_seller()) {
                              return $this->Sales_inventory_model->get_seller_sales_inventory_list();
                    } else {
                              redirect('seller/login', 'refresh');
                    }
          }
}