28 lines
891 B
PHP
28 lines
891 B
PHP
|
<?php
|
||
|
defined('BASEPATH') or exit('No direct script access allowed');
|
||
|
class Reports extends CI_Controller
|
||
|
{
|
||
|
function __construct()
|
||
|
{
|
||
|
parent::__construct();
|
||
|
$this->load->model('MStocks');
|
||
|
$this->load->model('MSales');
|
||
|
$this->load->model('MPurchases');
|
||
|
checkLogin();
|
||
|
}
|
||
|
public function _remap($alias = "", $params = array())
|
||
|
{
|
||
|
$data['dataValue'] = $this->session;
|
||
|
$data['pageTitle'] = "Sales";
|
||
|
switch ($alias) {
|
||
|
case 'purchase_vs_sales':
|
||
|
$data['StockRecords']=$this->MStocks->getStockRecords();
|
||
|
$data['PurchaseDetails'] = $this->MPurchases->getItemPurchases();
|
||
|
$data['SalesDetails'] = $this->MSales->getItemSales();
|
||
|
loadview("inventory/reports/purchase_vs_sales", $data);
|
||
|
break;
|
||
|
default:
|
||
|
}
|
||
|
}
|
||
|
}
|