report code merged in ria model description given
This commit is contained in:
parent
02e4637ab6
commit
fc31d93c1b
@ -208,7 +208,7 @@ $route['addIncomeExpense'] = "cashbook/addIncomeExpense";
|
||||
// permission slip//
|
||||
|
||||
$route['permission'] = 'monthlypay/permissionslip';
|
||||
$route['permissionlist'] = 'monthlypay/addper';
|
||||
$route['permissionlist'] = 'monthlypay/permissionlist';
|
||||
|
||||
//<-------------Reports page----------------->
|
||||
$route['reportpending'] = "report/pending_report";
|
||||
|
||||
@ -154,7 +154,7 @@ class assetdetails extends BaseController
|
||||
*/
|
||||
function Asset_validate($selectValue)
|
||||
{
|
||||
//echo 'select_validate method called';
|
||||
|
||||
//'none' is the first option and the text says something like "-Choose one-"
|
||||
if($selectValue == '-1')
|
||||
{
|
||||
@ -536,4 +536,4 @@ class assetdetails extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
?>s
|
||||
?>
|
||||
@ -25,7 +25,7 @@ class cashbook extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* To list incomeexpense details
|
||||
* To list income expense details
|
||||
*/
|
||||
function incomeExpenseList()
|
||||
{
|
||||
|
||||
@ -38,10 +38,14 @@ class configurationctrl extends BaseController
|
||||
function configlisting()
|
||||
{
|
||||
|
||||
$this->load->model('configmodel');
|
||||
$this->global['pageTitle'] = 'Resico : Config Listing';
|
||||
$this->loadViews("configlisting", $this->global, $data, NULL);
|
||||
$this->load->model('configmodel');
|
||||
|
||||
$data['userRecords'] = $this->configmodel->configlisting();
|
||||
|
||||
$this->global['pageTitle'] = 'Resico : Config Listing';
|
||||
|
||||
$this->loadViews("configlisting", $this->global, $data, NULL);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -49,7 +53,8 @@ class configurationctrl extends BaseController
|
||||
*/
|
||||
function addconfig()
|
||||
{
|
||||
$this->global['pageTitle'] = 'Resico : Add New Config';
|
||||
$this->global['pageTitle'] = 'Resico : Add New Config';
|
||||
$data['userRecords'] = $this->configmodel->configlisting();
|
||||
$this->loadViews("addconfig", $this->global,NULL, NULL);
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -40,10 +40,10 @@ class user extends BaseController
|
||||
|
||||
$data['pendingpo']=$this->dahsboard_Model->pendingpo();
|
||||
|
||||
$data['totalserviceamount']=$this->dahsboard_Model->totalserviceamount();
|
||||
$data['totalcapitalamount']=$this->dahsboard_Model->totalcapitalamount();
|
||||
$data['totalimportamount']=$this->dahsboard_Model->totalimportamount();
|
||||
$data['totalrevenueamount']=$this->dahsboard_Model->totalrevenueamount();
|
||||
// $data['totalserviceamount']=$this->dahsboard_Model->totalserviceamount();
|
||||
// $data['totalcapitalamount']=$this->dahsboard_Model->totalcapitalamount();
|
||||
// $data['totalimportamount']=$this->dahsboard_Model->totalimportamount();
|
||||
// $data['totalrevenueamount']=$this->dahsboard_Model->totalrevenueamount();
|
||||
|
||||
$data['totalimportpo']=$this->dahsboard_Model->totalimportpo();
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the Asset data for listing
|
||||
* @return array $result : This is result
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function assetListing()
|
||||
{
|
||||
@ -20,8 +20,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the actived department information
|
||||
* @param $Department : Optional : To get department code
|
||||
* @return $query->result() : This is result of the query (department information)
|
||||
* @param $Department : Optional : This is department code
|
||||
* @return $query->result() : result of the query (returns department information)
|
||||
*
|
||||
* Note : This function Temporary not in use
|
||||
*/
|
||||
@ -42,8 +42,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the actived supplier information
|
||||
* @param $SupplierID : Optional : To get Supplier id
|
||||
* @return $query->result() : This is result of the query (supplier information)
|
||||
* @param $SupplierID : Optional : This is Supplier id
|
||||
* @return $query->result() : result of the query (returns supplier information)
|
||||
*/
|
||||
function getSupplierName($SupplierID = '')
|
||||
{
|
||||
@ -61,10 +61,9 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the MRIR Approved PO details
|
||||
* @param $PO : To get PO number from the controller
|
||||
* @return $query->result() : This is result of the query (po details)
|
||||
* @param $PO : This is PO number
|
||||
* @return $query->result() : result of the query (returns po details)
|
||||
*/
|
||||
|
||||
function getpodetails($PO)
|
||||
{
|
||||
|
||||
@ -83,9 +82,9 @@ class assetdetails_model extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To get the MRIR Approved PO number (listed on dropdown)
|
||||
* @param $PO :Optional : To get PO number
|
||||
* @return $query->result() : This is result of the query (po no)
|
||||
* To get the MRIR Approved PO (listed on dropdown)
|
||||
* @param $PO :Optional : This is PO number
|
||||
* @return $query->result() : result of the query (returns po number)
|
||||
*/
|
||||
function getPO($PO='')
|
||||
{
|
||||
@ -103,8 +102,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the PO lineitem details for revenue po.
|
||||
* @param $line : To get PO lineitem number from the controller
|
||||
* @return $result : This is result of the query (po lineitem no)
|
||||
* @param $line : This is PO lineitem number
|
||||
* @return $result : result of the query (returns po lineitem details)
|
||||
*/
|
||||
function getlineitemre($line){
|
||||
$this->db->select('POL.LineItemNo,POL.MaterialCode,MM.MaterialName,MM.UOM,POL.Quantity,POM.POType,re.TotalValue,req.ReqNo,emp.firstname,emp.Departmentcode,dep.DepartmentName,sup.SupplierName,date(POM.DeliveryDate) as DeliveryDate,POM.PODate,POM.SupplierID');
|
||||
@ -126,8 +125,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the PO lineitem details for service po.
|
||||
* @param $line : To get PO lineitem number from the controller
|
||||
* @return $result : This is result of the query (po lineitem no)
|
||||
* @param $line : This is PO lineitem number
|
||||
* @return $result : This is result of the query (returns po lineitem details)
|
||||
*/
|
||||
function getlineitemser($line){
|
||||
$this->db->select('POL.LineItemNo,POL.MaterialCode,MM.MaterialName,MM.UOM,POM.POType,POL.Quantity,ser.TotalValue,req.ReqNo,emp.firstname,dep.DepartmentName,emp.Departmentcode,sup.SupplierName,date(POM.DeliveryDate) as DeliveryDate,POM.PODate,POM.SupplierID');
|
||||
@ -149,8 +148,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the PO lineitem details for import po.
|
||||
* @param $line : To get PO lineitem number from the controller
|
||||
* @return $result : This is result of the query (po lineitem no)
|
||||
* @param $line : This is PO lineitem number
|
||||
* @return $result : result of the query (returns po lineitem details)
|
||||
*/
|
||||
function getlineitemimport($line){
|
||||
$this->db->select('POL.LineItemNo,POL.MaterialCode,MM.MaterialName,MM.UOM,POM.POType,POL.Quantity,ser.TotalValue,req.ReqNo,emp.firstname,dep.DepartmentName,emp.Departmentcode,sup.SupplierName,date(POM.DeliveryDate) as DeliveryDate,POM.PODate,POM.SupplierID');
|
||||
@ -173,7 +172,7 @@ class assetdetails_model extends CI_Model
|
||||
/**
|
||||
* To get the PO lineitem details for capital po.
|
||||
* @param $line : To get PO lineitem number from the controller
|
||||
* @return $result : This is result of the query (po lineitem no)
|
||||
* @return $result : This is result of the query (returns po lineitem details)
|
||||
*/
|
||||
function getlineitemcap($line){
|
||||
|
||||
@ -195,8 +194,8 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the PO lineitem details revalant po.
|
||||
* @param $type : To get PO type from the controller
|
||||
* @return $result : This is result of the query (po lineitem no)
|
||||
* @param $type : This is PO type
|
||||
* @return $result : result of the query (returns po lineitem detail)
|
||||
*/
|
||||
function gettyp($type)
|
||||
{
|
||||
@ -212,9 +211,9 @@ class assetdetails_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the Config value from configuration table
|
||||
* @param $ConfigID : To get Configid from the controller
|
||||
* @param $ConfigValue : Optional : To get PO type
|
||||
* @return array $query->result() : This is result of the query(config details)
|
||||
* @param $ConfigID : This is Configid
|
||||
* @param $ConfigValue : Optional : This is PO type
|
||||
* @return array $query->result() : result of the query(returns config details)
|
||||
*/
|
||||
function getConfigValue($ConfigID ,$ConfigValue = '')
|
||||
{
|
||||
@ -232,8 +231,8 @@ class assetdetails_model extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store the values
|
||||
* @param number $asset : To get all the information of asset from the controller
|
||||
* To Store the asset information
|
||||
* @param $asset : This have all the asset details datas.
|
||||
* @return $Asset_Code : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function addNewasset($asset)
|
||||
@ -246,9 +245,9 @@ class assetdetails_model extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Asset details on respective Asset Code
|
||||
* @param number $Asset_Code : To get asset code from the controller
|
||||
* @return array $query->result() : This is result of the query(asset data)
|
||||
* To get Asset details from respective Asset Code
|
||||
* @param number $Asset_Code : This is asset code
|
||||
* @return array $query->result() : result of the query(returns asset details)
|
||||
*/
|
||||
function getAssetDetails($Asset_Code)
|
||||
{
|
||||
@ -266,9 +265,9 @@ class assetdetails_model extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To Stored edited Asset details in respective Asset Code
|
||||
* @param number $asset : To get all the information of asset from the controller
|
||||
* @param number $Asset_Code : To get asset code from the controller
|
||||
* To Stored edited Asset details from respective Asset Code
|
||||
* @param $asset : This have all the information of asset
|
||||
* @param $Asset_Code : This is asset code
|
||||
*/
|
||||
function editasset($asset, $Asset_Code)
|
||||
{
|
||||
@ -278,9 +277,9 @@ class assetdetails_model extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To Stored edited Asset details in respective Asset Code
|
||||
* @param number $asset : To get all the information of asset from the controller
|
||||
* @param number $Asset_Code : To get asset code from the controller
|
||||
* To Store edited Asset details in respective Asset Code
|
||||
* @param $asset : This have all the information of asset details
|
||||
* @param $Asset_Code : This is asset code
|
||||
*
|
||||
* Note : This function Temporary not in use
|
||||
*/
|
||||
|
||||
@ -2,7 +2,10 @@
|
||||
|
||||
class cashbook_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* To get Account status
|
||||
* @return array $r->result() : result of the query
|
||||
*/
|
||||
function getAccounTypes()
|
||||
{
|
||||
$this->db->where('status',1);
|
||||
@ -11,6 +14,11 @@ class cashbook_model extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Account status
|
||||
* @param number $data : This will have all the information of asset details.
|
||||
* @return array $r : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function saveIncomeExpense($data)
|
||||
{
|
||||
$this->db->insert('t_income_expense',$data);
|
||||
@ -18,6 +26,11 @@ class cashbook_model extends CI_Model
|
||||
return $r;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Income and expense List
|
||||
* @param number $i : Optional : This is incomeandexpense's id
|
||||
* @return array $r->result() : result of the query
|
||||
*/
|
||||
function getIncomeExpenseList($i="")
|
||||
{
|
||||
$this->db->select('t_accountcode.name,T_Employee_Details.FirstName,T_Employee_Details.LastName,t_income_expense.*');
|
||||
@ -34,25 +47,35 @@ class cashbook_model extends CI_Model
|
||||
return $r->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Company details
|
||||
* @return array $r->result() : result of the query
|
||||
*/
|
||||
function getCompany()
|
||||
{
|
||||
$r = $this->db->get('T_Company_Details');
|
||||
return $r->result();
|
||||
|
||||
|
||||
return $r->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Account Information
|
||||
* @param number $i
|
||||
* @return array $r->result() : result of the query
|
||||
*/
|
||||
function getAccounutInfo($i)
|
||||
{
|
||||
$this->db->select('t_accountcode.name,t_income_expense.*');
|
||||
$this->db->from('t_income_expense');
|
||||
$this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code');
|
||||
//$this->db->where('t_income_expense.id')
|
||||
$r = $this->db->get();
|
||||
return $r->result();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Account Information
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function Selectcash()
|
||||
{
|
||||
$this->db->select('*');
|
||||
@ -63,6 +86,13 @@ class cashbook_model extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To store cashbook Information (its insertion and updation operation)
|
||||
* @param array $cashbookdatas : this will have all cashbook details
|
||||
* @var number $res : gets count
|
||||
* @return array $cbi : result of the query (for insertion)
|
||||
* @return array $cbu : result of the query (for updation)
|
||||
*/
|
||||
function Cashbook($cashbookdatas)
|
||||
{
|
||||
$code=$cashbookdatas['code'];
|
||||
|
||||
@ -3,9 +3,9 @@
|
||||
class companydetailsmodel extends CI_Model
|
||||
{
|
||||
/**
|
||||
* To Store the values
|
||||
* @param number $Company : To get all the information of company
|
||||
* @return $CompID : This will return how many value are inserted (return as number/count)
|
||||
* To Store the Company details
|
||||
* @param array $Company : This have all the company details data
|
||||
* @return number $CompID : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function Companyadd($Company)
|
||||
{
|
||||
@ -15,9 +15,9 @@ class companydetailsmodel extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To Store the values
|
||||
* @param number $myfile : To get all the information of company's file
|
||||
* @return $CompID : This will return how many value are inserted (return as number/count)
|
||||
* To Store Company related files
|
||||
* @param array $myfile : This have all the company's file datas
|
||||
* @return number $CompID : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function filedetails($myfile)
|
||||
{
|
||||
@ -29,7 +29,7 @@ class companydetailsmodel extends CI_Model
|
||||
|
||||
/**
|
||||
* To get the company files for listing
|
||||
* @return array $query->result() : This is result of the query (company files's information)
|
||||
* @return array $query->result() : result of the query (company files's information)
|
||||
*/
|
||||
function filelist()
|
||||
{
|
||||
@ -41,9 +41,9 @@ class companydetailsmodel extends CI_Model
|
||||
|
||||
/**
|
||||
* To update the company files as inactive(if deleted means)
|
||||
* @param number $ID :
|
||||
* @param number $userInfo : To get all the information of company's files
|
||||
* @return array $this->db->affected_rows() : This will return how many value are changed (return as number/count)
|
||||
* @param number $ID : this is file ID
|
||||
* @param array $userInfo : This have all the company's files information
|
||||
* @return number $this->db->affected_rows() : This will return how many value are changed (return as number/count)
|
||||
*/
|
||||
function deletefile($ID,$userInfo)
|
||||
{
|
||||
@ -55,9 +55,9 @@ class companydetailsmodel extends CI_Model
|
||||
|
||||
/**
|
||||
* To update the company related files information
|
||||
* @param number $compID : To get the company ID
|
||||
* @param number $Comp : To get all the modified information of company
|
||||
* @return array $this->db->last_query() : this will return changes in last executed query
|
||||
* @param number $compID : This is company ID
|
||||
* @param array $Comp : This have all the modified company datas
|
||||
* @return array $this->db->last_query() : This will return changes in last executed query
|
||||
*/
|
||||
function Updatecompany($Comp, $CompID)
|
||||
{
|
||||
@ -68,9 +68,9 @@ class companydetailsmodel extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To Check the company images and files. if exists are not
|
||||
* @param number $Pic: To get the images name from the controller
|
||||
* @return array $query->result_array() : This is result of the query
|
||||
* To Check the company images and files are exists are not
|
||||
* @param number $Pic: This have images name
|
||||
* @return array $query->result_array() : result of the query
|
||||
*/
|
||||
function checkPhotoExists($Pic)
|
||||
{
|
||||
@ -113,9 +113,9 @@ class companydetailsmodel extends CI_Model
|
||||
}
|
||||
|
||||
/**
|
||||
* To get filedescription information by config value(dropdown for file description)
|
||||
* To get filedescription information by config value (dropdown for file description)
|
||||
* @param number $Configvalue :Optional : To get config value
|
||||
* @return $query->result() : This is result of the query (config information)
|
||||
* @return $query->result() : result of the query (returns config details)
|
||||
*/
|
||||
function getfilename($Configvalue = '')
|
||||
{
|
||||
@ -129,8 +129,8 @@ class companydetailsmodel extends CI_Model
|
||||
|
||||
|
||||
/**
|
||||
* To get bank details for company.
|
||||
* @return $result : This is result of the query (bank details)
|
||||
* To get bank details for company.
|
||||
* @return array $result : This is result of the query (returns bank details)
|
||||
*/
|
||||
function getBankDetails()
|
||||
{
|
||||
@ -144,8 +144,9 @@ class companydetailsmodel extends CI_Model
|
||||
|
||||
/**
|
||||
* To store and modified bank details for company.
|
||||
* @param array $Bank : To get bank details from the controller using array
|
||||
* @return array $isExits->result_array() : This is result of the query (bank details)
|
||||
* @param array $Bank : This will have bank details
|
||||
* @return array $isExits->result_array() : result of the query (returns bank details count)
|
||||
* @return number $i : returns count that is how many rows get affected.
|
||||
*/
|
||||
function BankDetails($Bank)
|
||||
{
|
||||
|
||||
@ -4,71 +4,53 @@ class configmodel extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get the Config listing
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function Configlisting()
|
||||
{
|
||||
|
||||
$this->db->select('Config.Config_ID, Config.ConfigName ,Config.Comments,Config.CreatedDate');
|
||||
$this->db->from('T_ConfigMaster as Config');
|
||||
// $this->db->join('t_configdetails as Con','Con.Config_ID=Config.Config_ID');
|
||||
|
||||
|
||||
$query = $this->db->get();
|
||||
$this->db->from('T_ConfigMaster as Config');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To store config master information by configid
|
||||
* @param number $config : This will have all the config information
|
||||
* @var $insert_id : This will return how many value are inserted (return as number/count)
|
||||
* @return array $res->result_array() :This will return maximum of Configid for config lineitem table
|
||||
*/
|
||||
|
||||
function addconfigmaster($config)
|
||||
function addconfigmaster($config)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('T_ConfigMaster', $config);
|
||||
|
||||
$this->db->insert('T_ConfigMaster', $config);
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
|
||||
//return $insert_id;
|
||||
|
||||
$sql='SELECT MAX(Config_ID) as Config_ID FROM T_ConfigMaster';
|
||||
$res = $this->db->query($sql);
|
||||
return $res->result_array();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store config details information
|
||||
* @param number $configvalue : This will have all the config information
|
||||
* @return array $insert_id : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function addconfigdetails($configvalue)
|
||||
{
|
||||
//print_r($configvalue);
|
||||
// $this->db->trans_start();
|
||||
$this->db->insert('T_ConfigDetails', $configvalue);
|
||||
|
||||
$this->db->insert('T_ConfigDetails', $configvalue);
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
// $this->db->trans_complete();
|
||||
// print_r( $this->db->last_query());
|
||||
//print_r ($insert_id);die();
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* This function used to Department list which is not available in the Costcenter master
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
/**
|
||||
* To get department list which is not available in the Costcenter master
|
||||
* @param number $CostCenterCode : This is CostCode
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function GetBudgetTypeNotinCostCenter($CostCenterCode,$ConfigID)
|
||||
{
|
||||
@ -77,48 +59,60 @@ function addconfigmaster($config)
|
||||
(select BudgetType from T_CostCenter_Budget where CostCenterCode=? and BudgetYear=(select max(BudgetYear) from T_CostCenter_Budget)) and Config_ID=?';
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode,$ConfigID));
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
|
||||
return $query->result();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get the config master values
|
||||
* @param number $ConfigID : This is ConfigID
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function GetConfigCenterMaster($ConfigID='')
|
||||
{
|
||||
//echo $ConfigID ;die();
|
||||
|
||||
$this->db->select('*' );
|
||||
$this->db->from('T_ConfigMaster ');
|
||||
//$this->db->join('T_ConfigDetails con','con.Config_ID = COM.Config_ID','left');
|
||||
$this->db->where('Config_ID', $ConfigID);
|
||||
|
||||
|
||||
$this->db->where('Config_ID', $ConfigID);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get the config detail values
|
||||
* @param number $ConfigID : This is ConfigID
|
||||
* @return array $query->result() : This is result of the query (config master information)
|
||||
*/
|
||||
function GetConfigCenterDetails($ConfigID='')
|
||||
{
|
||||
//echo $ConfigID ;die();
|
||||
|
||||
$this->db->select('*' );
|
||||
$this->db->from('T_ConfigMaster COM');
|
||||
$this->db->join('T_ConfigDetails con','con.Config_ID = COM.Config_ID','left');
|
||||
|
||||
$this->db->where('COM.Config_ID', $ConfigID);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* To update the config master information
|
||||
* @param number $configid : This is ConfigID
|
||||
* @param array $Config : This will have all the edited config information
|
||||
*/
|
||||
function updateconfig($config,$Configid)
|
||||
{
|
||||
$this->db->where('Config_ID', $Configid);
|
||||
|
||||
$this->db->where('Config_ID', $Configid);
|
||||
$this->db->update('T_ConfigMaster', $config);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* To update the config detail information
|
||||
* @param number $Key : This is key value
|
||||
* @param array $Configval : This will have all the edited config information
|
||||
*/
|
||||
function updateconfigvalue($configval,$Key)
|
||||
{
|
||||
$this->db->where('Key', $Key);
|
||||
@ -128,36 +122,55 @@ function addconfigmaster($config)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store the costcenters budget detail
|
||||
* @param number $Budget : This will have all edited budget datas
|
||||
* @return number $insert_id : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function EditBudget($Budget)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('T_CostCenter_Budget', $Budget);
|
||||
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
// print_r( $this->db->last_query());
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete costcenter's budget information by using budget type , budget year and costcenter id
|
||||
* @param number $BudgetType : This is budget type
|
||||
* @param number $BudgetYear : This is budget year
|
||||
* @param number $CostCenterCode : This is cost code
|
||||
*/
|
||||
function DeleteBudget($BudgetType='',$BudgetYear='',$CostCenterCode ='')
|
||||
{
|
||||
$this->db->where("BudgetType", $BudgetType);
|
||||
$this->db->where("BudgetType", $BudgetType);
|
||||
$this->db->where("BudgetYear", $BudgetYear);
|
||||
$this->db->where("CostCenterCode", $CostCenterCode);
|
||||
$this->db->delete('T_CostCenter_Budget');
|
||||
//print_r( $this->db->last_query());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete costcenter's department information by using department code and costcenter id
|
||||
* @param number $Depcode : Optional : This is department code
|
||||
* @param number $CostCode : Optional :This is costcenter code
|
||||
*/
|
||||
function DeleteDepartment($DepCode='',$CostCode='')
|
||||
{
|
||||
$this->db->where("DEPCode", $DepCode);
|
||||
$this->db->where("DEPCode", $DepCode);
|
||||
$this->db->where("CostCenterCode", $CostCode);
|
||||
$this->db->delete('T_CostCenter_Departments');
|
||||
//print_r( $this->db->last_query());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get costcenter department information by using department code and costcenter id
|
||||
* @param number $Depcode : Optional : This is department code
|
||||
* @param number $CostCode : Optional : This is cost code
|
||||
* @return array $query->result_array() : This is result of the query (config master information)
|
||||
*/
|
||||
function checkDeptCostExists($DepCode='',$CostCode='')
|
||||
{
|
||||
$this->db->select('CostCenterCode,DEPCode');
|
||||
@ -174,15 +187,16 @@ function addconfigmaster($config)
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the Config value from configuration table
|
||||
* To get the Config value from configuration table
|
||||
* @param number @ConfigID : This is ConfigID
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getConfigValue($ConfigID )
|
||||
function getConfigValue($ConfigID)
|
||||
{
|
||||
|
||||
$this->db->select('ConfigValue');
|
||||
$this->db->from('T_ConfigDetails');
|
||||
$this->db->where('Config_id ',$ConfigID );
|
||||
$this->db->where('Config_id ',$ConfigID );
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
|
||||
@ -4,11 +4,8 @@ class costcenter_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get the Cost listing
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function CostListing()
|
||||
{
|
||||
@ -17,30 +14,31 @@ class costcenter_model extends CI_Model
|
||||
$this->db->from('T_CostCenter_Master as Cost');
|
||||
$this->db->join('T_Employee_Details as Emp', 'Emp.EmpID=Cost.ApprovedBy');
|
||||
|
||||
|
||||
$query = $this->db->get();
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To store cost information by id
|
||||
* @param number $Cost : This will have cost
|
||||
* @return number $insert_id : This will return how many value are inserted
|
||||
*/
|
||||
|
||||
function addNewcost($Cost)
|
||||
function addNewcost($Cost)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('T_CostCenter_Master', $Cost);
|
||||
|
||||
$this->db->insert('T_CostCenter_Master', $Cost);
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get fiscalyear information from company table
|
||||
* @return $query->result() : This is result of the query
|
||||
*/
|
||||
function getFiscalYear()
|
||||
{
|
||||
$this->db->select('year(FiscalYearStartOn) as StartYear,year(FiscalYearEndsOn) as EndYear');
|
||||
@ -50,20 +48,27 @@ function addNewcost($Cost)
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store costcenter department information
|
||||
* @param array $Dept : This will have all the information of costcenter's department
|
||||
* @return number $insert_id : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function addCostCenterDepartment($Dept)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
$this->db->insert('T_CostCenter_Departments', $Dept);
|
||||
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
// print_r( $this->db->last_query());
|
||||
return $insert_id;
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store costcenter Budget information
|
||||
* @param array $Budget : this will have all the information of costcenter's department
|
||||
* @return number $insert_id : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
function addBudget($Budget)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
@ -72,10 +77,14 @@ function addNewcost($Cost)
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
// print_r( $this->db->last_query());
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get approver name by using department code
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function getApproverName()
|
||||
{
|
||||
$this->db->select('EmpID,FirstName,LastName,Designation');
|
||||
@ -88,15 +97,14 @@ function addNewcost($Cost)
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To get costcenter information by id
|
||||
* @param number $CostcenterID : This is cost center code
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function getuserInfo($CostCenterID)
|
||||
{
|
||||
$this->db->select('CostCentreID, CostName,Description,CreatedDate');
|
||||
$this->db->from('T_CostCentre');
|
||||
|
||||
$this->db->where('CostCentreID', $CostCenterID);
|
||||
$query = $this->db->get();
|
||||
|
||||
@ -104,15 +112,15 @@ function addNewcost($Cost)
|
||||
}
|
||||
/**
|
||||
* This function used to get Cost center Master information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @return array $query->result() : This is result of the query (Costcenter master information)
|
||||
*/
|
||||
function GetCostCenterMaster($CostCenterCode)
|
||||
{
|
||||
$this->db->select('Cost.CostCenterCode,Cost.CostCenterName,Cost.ApprovedBy,emp.FirstName,emp.Designation,max(BudgetYear) as BudYear' );
|
||||
$this->db->from('T_CostCenter_Master Cost');
|
||||
$this->db->join('T_Employee_Details emp', 'emp.EmpID = Cost.ApprovedBy');
|
||||
$this->db->join('T_CostCenter_Budget Bud', ' Bud.CostCenterCode = Cost.CostCenterCode');
|
||||
$this->db->join('T_Employee_Details emp', 'emp.EmpID = Cost.ApprovedBy');
|
||||
$this->db->join('T_CostCenter_Budget Bud', ' Bud.CostCenterCode = Cost.CostCenterCode');
|
||||
$this->db->where('Cost.CostCenterCode', $CostCenterCode);
|
||||
$query = $this->db->get();
|
||||
|
||||
@ -120,40 +128,41 @@ function addNewcost($Cost)
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get Cost center Department information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Cost center Department information by Cost center ID
|
||||
* @param number $CostCenterCode : This is the CostCenterCode as Parameter
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function GetCostCenterDepartment($CostCenterCode)
|
||||
{
|
||||
$this->db->select('Dept.DEPCode,Det.DepartmentName');
|
||||
$this->db->from('T_CostCenter_Departments Dept');
|
||||
$this->db->join('T_DepartmentDetails Det', 'Det.DEPCode = Dept.DEPCode');
|
||||
|
||||
$this->db->join('T_DepartmentDetails Det', 'Det.DEPCode = Dept.DEPCode');
|
||||
$this->db->where('Dept.CostCenterCode', $CostCenterCode);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Cost center Budget year information by Cost center ID
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function GetBudgetYear($CostCenterCode)
|
||||
{
|
||||
|
||||
$subQuery = 'select BudgetYear from T_CostCenter_Budget where CostCenterCode=? ';
|
||||
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode));
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @return array $query->result() : This is user information
|
||||
*/
|
||||
function GetCostCenterBudget($CostCenterCode)
|
||||
{
|
||||
@ -161,15 +170,17 @@ function addNewcost($Cost)
|
||||
$subQuery = 'select BudgetType,BudgetYear,BudgetAmount,Remarks from T_CostCenter_Budget where CostCenterCode=? and
|
||||
BudgetYear=(select max(BudgetYear) from T_CostCenter_Budget where CostCenterCode=?)';
|
||||
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode,$CostCenterCode));
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @param number $ConfigID : This is Config Id
|
||||
* @param number $Year : This is budget year
|
||||
* @return array $query->result_array() : This is result of the query
|
||||
*/
|
||||
function GetCostBudgetTypeByYear($CostCenterCode,$ConfigID,$Year)
|
||||
{
|
||||
@ -179,31 +190,32 @@ function addNewcost($Cost)
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode,$Year,$ConfigID));
|
||||
|
||||
|
||||
return $query->result_array();
|
||||
return $query->result_array();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get Cost center Budget information by Cost center ID
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Cost center Budget information by Cost center ID and budget year
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @param number $Year : This is Budget year
|
||||
* @return array $query->result_array() : This is result of the query
|
||||
*/
|
||||
|
||||
function GetCostCenterBudgetByYear($CostCenterCode,$Year)
|
||||
{
|
||||
|
||||
$subQuery = 'select BudgetType,BudgetYear,BudgetAmount,Remarks from T_CostCenter_Budget where CostCenterCode=? and
|
||||
budgetyear=?';
|
||||
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode,$Year));
|
||||
|
||||
return $query->result_array();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to Department list which is not available in the Costcenter master
|
||||
* To get Department list which is not available in the Costcenter master
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function GetDepartmentNotinCostCenter($CostCenterCode)
|
||||
{
|
||||
@ -220,9 +232,10 @@ function addNewcost($Cost)
|
||||
|
||||
|
||||
/**
|
||||
* This function used to Department list which is not available in the Costcenter master
|
||||
* @param number $CostCenterCode : CostCenterCode as Parameter
|
||||
* @return array $result : This is user information
|
||||
* To get Department list which is not available in the Costcenter master based on cost code and config id
|
||||
* @param number $CostCenterCode : This is CostCenterCode as Parameter
|
||||
* @param number $ConfigID : This is ConfigID as Parameter
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function GetBudgetTypeNotinCostCenter($CostCenterCode,$ConfigID)
|
||||
{
|
||||
@ -232,11 +245,14 @@ function addNewcost($Cost)
|
||||
|
||||
$query = $this->db->query($subQuery, array($CostCenterCode,$ConfigID));
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
|
||||
return $query->result();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store edited the Costcenter master
|
||||
* @param number $CostCenterCode : This have all the edited CostCenter datas
|
||||
*/
|
||||
function EditCost($Cost,$CostCenterCode)
|
||||
{
|
||||
$this->db->where('CostCenterCode', $CostCenterCode);
|
||||
@ -246,7 +262,11 @@ function addNewcost($Cost)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store the Costcenter budget by costcenter's budget
|
||||
* @param number $Budget : This will have all the budget details
|
||||
* @return number $insert_id : This is result of the query
|
||||
*/
|
||||
function EditBudget($Budget)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
@ -255,30 +275,45 @@ function addNewcost($Cost)
|
||||
$insert_id = $this->db->affected_rows();
|
||||
|
||||
$this->db->trans_complete();
|
||||
// print_r( $this->db->last_query());
|
||||
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete the Costcenter budget
|
||||
* @param string $BudgetType : Optional : This is Budgettype as Parameter
|
||||
* @param number $BudgetYear : Optional : This is Budgetyear as Parameter
|
||||
* @param number $CostCenterCode : Optional : This is Costcenter as parameter
|
||||
*/
|
||||
function DeleteBudget($BudgetType='',$BudgetYear='',$CostCenterCode ='')
|
||||
{
|
||||
$this->db->where("BudgetType", $BudgetType);
|
||||
$this->db->where("BudgetType", $BudgetType);
|
||||
$this->db->where("BudgetYear", $BudgetYear);
|
||||
$this->db->where("CostCenterCode", $CostCenterCode);
|
||||
$this->db->delete('T_CostCenter_Budget');
|
||||
//print_r( $this->db->last_query());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete the Costcenter department
|
||||
* @param number $Depcode : Optional : This is Depcode as Parameter
|
||||
* @param number $CostCode : Optional : This is Costcenter as parameter
|
||||
*/
|
||||
function DeleteDepartment($DepCode='',$CostCode='')
|
||||
{
|
||||
|
||||
// echo "fsds";
|
||||
// die();
|
||||
$this->db->where("DEPCode", $DepCode);
|
||||
$this->db->where("CostCenterCode", $CostCode);
|
||||
$this->db->delete('T_CostCenter_Departments');
|
||||
//print_r( $this->db->last_query());
|
||||
$this->db->where("CostCenterCode", $CostCode);
|
||||
$this->db->delete('T_CostCenter_Departments');
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To check the costcenter if department details is already exists are not
|
||||
* @param number $Depcode : Optional : This is Depcode as Parameter
|
||||
* @param number $CostCode : Optional : This is Costcenter as parameter
|
||||
* @return array $query->result_array() : result of the query
|
||||
*/
|
||||
function checkDeptCostExists($DepCode='',$CostCode='')
|
||||
{
|
||||
$this->db->select('CostCenterCode,DEPCode');
|
||||
@ -292,6 +327,13 @@ function addNewcost($Cost)
|
||||
return $query->result_array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To check costcenter is already exists are not
|
||||
* @param number $Depcode : Optional : This is Depcode as Parameter
|
||||
* @param number $CostCode : Optional : This is Costcenter as parameter
|
||||
* @return array $query->result_array() : result of the query
|
||||
*/
|
||||
function checkCostDetailsExists($Code='',$CostName='')
|
||||
{
|
||||
$this->db->select('CostCenterCode');
|
||||
@ -307,9 +349,9 @@ function addNewcost($Cost)
|
||||
return $query->result_array();
|
||||
}
|
||||
}
|
||||
/* *//**
|
||||
* This function is used to get the Department details from T_DepartmentDetails
|
||||
* @return array $result : This is result of the query
|
||||
/**
|
||||
* To get the Department details from T_DepartmentDetails
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function getDepartment()
|
||||
{
|
||||
@ -320,21 +362,26 @@ function addNewcost($Cost)
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the Config value from configuration table
|
||||
* @return array $result : This is result of the query
|
||||
* @param number $ConfigID : This is ConfigID as parameter
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function getConfigValue($ConfigID )
|
||||
{
|
||||
|
||||
$this->db->select('ConfigValue');
|
||||
$this->db->from('T_ConfigDetails');
|
||||
$this->db->where('Config_id ',$ConfigID );
|
||||
$this->db->where('Config_id ',$ConfigID );
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get costcenter's information for export xl
|
||||
*/
|
||||
function export_excel(){
|
||||
$where = null;
|
||||
|
||||
@ -356,13 +403,19 @@ function addNewcost($Cost)
|
||||
return $this->db->get('T_CostCenter_Master as bud')->result_array();
|
||||
|
||||
}
|
||||
//get exist budget year details
|
||||
/**
|
||||
* To check the costcenter if budget year details is already exists are not
|
||||
* @param string $BudgetType : This is budget type
|
||||
* @param number $BudgetYear : This is budget year
|
||||
* @param number $CostCode : This is cost code
|
||||
*/
|
||||
function CheckExistBudget($BudgetType,$BudgetYear,$CostCode){
|
||||
$this->db->select('CostCenterCode');
|
||||
$this->db->from('T_CostCenter_Budget');
|
||||
|
||||
$this->db->select('CostCenterCode');
|
||||
$this->db->from('T_CostCenter_Budget');
|
||||
$this->db->where('CostCenterCode',$CostCode);
|
||||
$this->db->where('BudgetType',$BudgetType);
|
||||
$this->db->where('BudgetYear',$BudgetYear);
|
||||
$this->db->where('BudgetType',$BudgetType);
|
||||
$this->db->where('BudgetYear',$BudgetYear);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
@ -374,13 +427,18 @@ function addNewcost($Cost)
|
||||
}
|
||||
}
|
||||
|
||||
//update budget
|
||||
/**
|
||||
* To update Costcenter Budget Details
|
||||
* @param array $Budget : This will have all the edited datas of costcenter's budget
|
||||
* @param string $BudgetType : This is budget type
|
||||
* @param number $BudgetYear : This is budget year
|
||||
* @param number $CostCode : This is Cost code
|
||||
*/
|
||||
function updateBudget($Budget,$BudgetType,$BudgetYear,$CostCode)
|
||||
{
|
||||
$this->db->where('CostCenterCode',$CostCode);
|
||||
$this->db->where('BudgetType',$BudgetType);
|
||||
$this->db->where('BudgetYear',$BudgetYear);
|
||||
|
||||
$this->db->where('BudgetType',$BudgetType);
|
||||
$this->db->where('BudgetYear',$BudgetYear);
|
||||
$this->db->update('T_CostCenter_Budget', $Budget);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ where att.Month_Year = ? and att.EmpID = ?;";
|
||||
function totalpurchaseorder(){
|
||||
|
||||
|
||||
$sql="select count(PONO) as totalpurchaseorder from T_PurchaseOrder_Master";
|
||||
$sql="select count(PONO) as totalpurchaseorder from T_PurchaseOrder_Master where Status != 'ST030'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -137,7 +137,7 @@ where att.Month_Year = ? and att.EmpID = ?;";
|
||||
function totalordervalue(){
|
||||
|
||||
|
||||
$sql="select sum(totalordervalue) as totalordervalue from T_PurchaseOrder_Master";
|
||||
$sql="select sum(totalordervalue) as totalordervalue from T_PurchaseOrder_Master where Status != 'ST030'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -145,11 +145,36 @@ where att.Month_Year = ? and att.EmpID = ?;";
|
||||
function pendingpo(){
|
||||
|
||||
|
||||
$sql="select count(PONO) as pending from T_PurchaseOrder_Master where status='ST020'";
|
||||
$sql="select count(PONO) as pending from T_PurchaseOrder_Master where status='ST020' and Status != 'ST030'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function req_pending(){
|
||||
|
||||
|
||||
$sql="SELECT count(Status) as TOTAL_PENDING_REQUESTS FROM T_Requestion_Master where Status = 'ST002';";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
function reqdetail(){
|
||||
|
||||
|
||||
$sql="SELECT count(Status) as TODAY_REQUESTS FROM T_Requestion_Master where date(ReqDate) = date(now());";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
|
||||
// echo "from Model";
|
||||
// print_r($query->result());
|
||||
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
function january(){
|
||||
|
||||
|
||||
@ -158,41 +183,51 @@ where att.Month_Year = ? and att.EmpID = ?;";
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function totalserviceamount()
|
||||
{
|
||||
$sql="select sum(BudgetAmount) as totalserviceamount from T_CostCenter_Budget where BudgetType='SERVICE'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
// function totalserviceamount()
|
||||
// {
|
||||
// $sql="select sum(BudgetAmount) as totalserviceamount from T_CostCenter_Budget where BudgetType='SERVICE'";
|
||||
// $query = $this->db->query($sql);
|
||||
// return $query->result();
|
||||
|
||||
}
|
||||
function totalcapitalamount()
|
||||
{
|
||||
$sql="select sum(BudgetAmount) as totalcapitalamount from T_CostCenter_Budget where BudgetType='CAPITAL'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
function totalimportamount()
|
||||
{
|
||||
$sql="select sum(BudgetAmount) as totalimportamount from T_CostCenter_Budget where BudgetType='IMPORT'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
function totalrevenueamount()
|
||||
{
|
||||
$sql="select sum(BudgetAmount) as totalrevenueamount from T_CostCenter_Budget where BudgetType='REVENUE'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
// }
|
||||
// function totalcapitalamount()
|
||||
// {
|
||||
// $sql="select sum(BudgetAmount) as totalcapitalamount from T_CostCenter_Budget where BudgetType='CAPITAL'";
|
||||
// $query = $this->db->query($sql);
|
||||
// return $query->result();
|
||||
// }
|
||||
// function totalimportamount()
|
||||
// {
|
||||
// $sql="select sum(BudgetAmount) as totalimportamount from T_CostCenter_Budget where BudgetType='IMPORT'";
|
||||
// $query = $this->db->query($sql);
|
||||
// return $query->result();
|
||||
// }
|
||||
// function totalrevenueamount()
|
||||
// {
|
||||
// $sql="select sum(BudgetAmount) as totalrevenueamount from T_CostCenter_Budget where BudgetType='REVENUE'";
|
||||
// $query = $this->db->query($sql);
|
||||
// return $query->result();
|
||||
// }
|
||||
//totalservice
|
||||
function getTotalServicePoCount(){
|
||||
$i=1;
|
||||
|
||||
if (date('m') >= 4)
|
||||
{
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
} else {
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
}
|
||||
$ab=$yearl;
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
while($i<=12){
|
||||
|
||||
|
||||
$sql="SELECT count(cmast.PONO) as totalService FROM T_PurchaseOrder_Master cmast
|
||||
join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='SERVICE' and month(PODate) = $i ";
|
||||
left join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
left join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='SERVICE' and month(PODate) = $i
|
||||
and date(cmast.PODate) >= '".$fa."-04-01' and date(cmast.PODate) <= '".$aa."-03-31'";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
$array_result[]=$query->result();
|
||||
@ -206,13 +241,23 @@ $i++;
|
||||
|
||||
function getTotalimportPoCount(){
|
||||
$i=1;
|
||||
|
||||
if (date('m') >= 4)
|
||||
{
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
} else {
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
}
|
||||
$ab=$yearl;
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
while($i<=12){
|
||||
|
||||
|
||||
$sql="SELECT count(cmast.PONO) as totalImport FROM T_PurchaseOrder_Master cmast
|
||||
join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='IMPORT' and month(PODate) = $i ";
|
||||
left join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
left join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='IMPORT' and month(PODate) = $i
|
||||
and date(cmast.PODate) >= '".$fa."-04-01' and date(cmast.PODate) <= '".$aa."-03-31'";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
$array_result[]=$query->result();
|
||||
@ -225,13 +270,22 @@ $i++;
|
||||
}
|
||||
function getTotalcapitalPoCount(){
|
||||
$i=1;
|
||||
|
||||
if (date('m') >= 4)
|
||||
{
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
} else {
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
}
|
||||
$ab=$yearl;
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
while($i<=12){
|
||||
|
||||
$sql="SELECT count(cmast.PONO) as totalcapital FROM T_PurchaseOrder_Master cmast
|
||||
join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='CAPITAL' and month(PODate) = $i ";
|
||||
left join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
left join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='CAPITAL' and month(PODate) = $i
|
||||
and date(cmast.PODate) >= '".$fa."-04-01' and date(cmast.PODate) <= '".$aa."-03-31'";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
$array_result[]=$query->result();
|
||||
@ -244,13 +298,22 @@ $i++;
|
||||
}
|
||||
function getTotalrevenuePoCount(){
|
||||
$i=1;
|
||||
|
||||
if (date('m') >= 4)
|
||||
{
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
} else {
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
}
|
||||
$ab=$yearl;
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
while($i<=12){
|
||||
|
||||
$sql="SELECT count(cmast.PONO) as totalrevenue FROM T_PurchaseOrder_Master cmast
|
||||
join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='REVENUE' and month(PODate) = $i ";
|
||||
left join T_PurchaseOrder_LineItem line on line.PONO=cmast.PONO
|
||||
left join T_Requestion_Master req on req.ReqNo=line.ReqNo
|
||||
where ReqType='REVENUE' and month(PODate) = $i
|
||||
and date(cmast.PODate) >= '".$fa."-04-01' and date(cmast.PODate) <= '".$aa."-03-31'";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
$array_result[]=$query->result();
|
||||
@ -364,17 +427,14 @@ function capitalbud ()
|
||||
function capitalbal ()
|
||||
{
|
||||
$sql="SELECT ROUND(sum(BudgetAmount)-(SELECT
|
||||
case po.CapitalRange
|
||||
when '0'
|
||||
then ifnull((sum(distinct(PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate)),0)
|
||||
when '1'
|
||||
then ifnull((sum(distinct PO_Line_Item.Quantity * PO_Line_Item.Rate)),0)
|
||||
end
|
||||
ifnull(sum(distinct if(CapitalRange=0,(( PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate),( PO_Line_Item.Quantity * PO_Line_Item.Rate) - st.Afterdiscountval)),0)
|
||||
as Util_Amount
|
||||
from T_CostCenter_Budget Cost_Center_Budget
|
||||
join T_PurchaseOrder_LineItem PO_Line_Item on Cost_Center_Budget.CostCenterCode=PO_Line_Item.CostCenterCode
|
||||
JOIN T_PurchaseOrder_Master po on po.PONO=PO_Line_Item.PONO and po.POType=Cost_Center_Budget.BudgetType
|
||||
WHERE Cost_Center_Budget.BudgetType='CAPITAL' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())),2) as balcapitalbudget FROM T_CostCenter_Budget where BudgetType ='CAPITAL' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())";
|
||||
JOIN T_PurchaseOrder_Master po on po.PONO=PO_Line_Item.PONO and po.POType=Cost_Center_Budget.BudgetType and po.Status !='ST030'
|
||||
left JOIN T_Service_Tax st on st.LineItemNo = PO_Line_Item.LineItemNo
|
||||
WHERE Cost_Center_Budget.BudgetType='CAPITAL' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())),2) as balcapitalbudget FROM T_CostCenter_Budget where BudgetType ='CAPITAL' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())
|
||||
";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
@ -413,32 +473,8 @@ WHERE Cost_Center_Budget.BudgetType='REVENUE' and YEAR(STR_TO_DATE(`BudgetYear`,
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
function reqdetail(){
|
||||
|
||||
|
||||
$sql="SELECT count(Status) as TODAY_REQUESTS FROM T_Requestion_Master where date(ReqDate) = date(now());";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
|
||||
// echo "from Model";
|
||||
// print_r($query->result());
|
||||
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function req_pending(){
|
||||
|
||||
|
||||
$sql="SELECT count(Status) as TOTAL_PENDING_REQUESTS FROM T_Requestion_Master where Status = 'ST002';";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function req_list(){
|
||||
|
||||
@ -461,7 +497,7 @@ function reqdetail(){
|
||||
function report_relpo(){
|
||||
|
||||
|
||||
$sql="select Mast.PONO,Mast.POType,date_format(Mast.PODate,'%d-%m-%Y') as CreatedDate,date_format(Mast.ReleasedOn,'%d-%m-%Y') as ReleasedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
|
||||
$sql="select Mast.PONO,Mast.POType,date_format(Mast.PODate,'%d-%m-%Y') as PODate,date_format(Mast.ReleasedOn,'%d-%m-%Y') as ReleasedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
|
||||
from T_PurchaseOrder_Master Mast
|
||||
JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
|
||||
JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
|
||||
@ -482,7 +518,7 @@ group by Mast.PONO";
|
||||
function report_openpending(){
|
||||
|
||||
|
||||
$sql="select Mast.PONO as PONO,Mast.POType as POType,date_format(Mast.PODate,'%d-%m-%Y') as CreatedDate,date_format(Mast.ApprovedOn,'%d-%m-%Y') as ApprovedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
|
||||
$sql="select Mast.PONO as PONO,Mast.POType as POType,date_format(Mast.PODate,'%d-%m-%Y') as PODate,date_format(Mast.ApprovedOn,'%d-%m-%Y') as ApprovedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
|
||||
from T_PurchaseOrder_Master Mast
|
||||
JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
|
||||
JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
|
||||
@ -603,12 +639,13 @@ group by po.SupplierID,pl.MaterialCode";
|
||||
|
||||
|
||||
$sql="select
|
||||
DATE_FORMAT(IF(matv.CreatedDate = '0000-00-00', NOW(), matv.CreatedDate), '%b-%Y') AS Month,
|
||||
matv.MaterialCode,mat.MaterialName,mat.UOM,ROUND(AVG(matv.Rate),2) as Average_Rate
|
||||
from T_MaterialItem_PO matv
|
||||
join T_MaterialMaster mat on matv.MaterialCode=mat.MaterialCode
|
||||
group by matv.MaterialCode
|
||||
order by monthname(matv.CreatedDate)";
|
||||
DATE_FORMAT(IF(pm.PODate = '0000-00-00', NOW(), pm.PODate), '%b-%Y') AS Month,
|
||||
matv.MaterialCode,mat.MaterialName,mat.UOM,ROUND(AVG(matv.Rate),2) as Average_Rate
|
||||
from T_MaterialItem_PO matv
|
||||
join T_PurchaseOrder_Master pm on pm.CreatedDate = matv.CreatedDate
|
||||
join T_MaterialMaster mat on matv.MaterialCode=mat.MaterialCode
|
||||
group by matv.MaterialCode
|
||||
order by monthname(pm.PODate)";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -618,7 +655,7 @@ order by monthname(matv.CreatedDate)";
|
||||
function report_purchase($cname,$prod,$fa,$aa,$m,$frm,$t){
|
||||
|
||||
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
$sql="SELECT pm.PONO as pono,pm.POType as potype,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(pl.Rate),0) as rate,
|
||||
@ -692,7 +729,7 @@ $sql.="group by pono,material_name,supplier_name";
|
||||
function report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d){
|
||||
|
||||
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
$sql="SELECT pm.PONO as pono,pm.POType as potype,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(pl.Rate),0) as rate,
|
||||
@ -1077,7 +1114,7 @@ group by supplier_name,material_name";
|
||||
function ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t,$cat){
|
||||
|
||||
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
$sql="SELECT pm.PONO as pono,pm.POType as potype,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,mm.Category as category,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(pl.Rate),0) as rate,
|
||||
@ -1155,7 +1192,7 @@ $sql.="group by pono,material_name,category,supplier_name";
|
||||
function ireport_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat){
|
||||
|
||||
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
$sql="SELECT pm.PONO as pono,pm.POType as potype,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,mm.Category as category,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(pl.Rate),0) as rate,
|
||||
@ -1524,10 +1561,10 @@ left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
when (month(pm.CreatedDate) >=4) then
|
||||
(YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE) and MONTH(pm.CreatedDate) >= 4 ) or ( YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE)+1 and MONTH(pm.CreatedDate) <= 3 )
|
||||
when (month(pm.PODate) >=4) then
|
||||
(YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE)+1 and MONTH(pm.PODate) <= 3 )
|
||||
else
|
||||
(YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.CreatedDate) >= 4 ) or ( YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE) and MONTH(pm.CreatedDate) <= 3 )
|
||||
(YEAR(pm.PODate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) <= 3 )
|
||||
end
|
||||
group by category
|
||||
) as year left join
|
||||
@ -1537,7 +1574,7 @@ left join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
month(pm.CreatedDate) = month(current_date())
|
||||
month(pm.PODate) = month(current_date())
|
||||
group by category
|
||||
) as month on month.category=year.category
|
||||
left join
|
||||
@ -1547,7 +1584,7 @@ left join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.CreatedDate) = current_date()
|
||||
date(pm.PODate) = current_date()
|
||||
group by category
|
||||
) as today on today.category=month.category
|
||||
group by category ";
|
||||
@ -1563,10 +1600,10 @@ left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
when (month(pm.CreatedDate) >=4) then
|
||||
(YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE) and MONTH(pm.CreatedDate) >= 4 ) or ( YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE)+1 and MONTH(pm.CreatedDate) <= 3 )
|
||||
when (month(pm.PODate) >=4) then
|
||||
(YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE)+1 and MONTH(pm.PODate) <= 3 )
|
||||
else
|
||||
(YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.CreatedDate) >= 4 ) or ( YEAR(pm.CreatedDate) = YEAR(CURRENT_DATE) and MONTH(pm.CreatedDate) <= 3 )
|
||||
(YEAR(pm.PODate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) <= 3 )
|
||||
end
|
||||
and mm.Category = '".$cat."'
|
||||
group by supplier_name,material_name";
|
||||
@ -1582,7 +1619,7 @@ left join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
month(pm.CreatedDate) = month(current_date()) and mm.Category = '".$cat."'
|
||||
month(pm.PODate) = month(current_date()) and mm.Category = '".$cat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -1595,7 +1632,7 @@ left join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.CreatedDate) = current_date() and mm.Category = '".$cat."'
|
||||
date(pm.PODate) = current_date() and mm.Category = '".$cat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
echo $sql;
|
||||
@ -1604,32 +1641,32 @@ group by supplier_name,material_name";
|
||||
function rawi_report_consolidate($cname,$fa,$aa){
|
||||
|
||||
|
||||
$sql="select mm.Category as category,
|
||||
SUM(IF(month(pm.CreatedDate) = 4, pl.Quantity, 0)) AS April,
|
||||
SUM(IF(month(pm.CreatedDate) = 5, pl.Quantity, 0)) AS May,
|
||||
SUM(IF(month(pm.CreatedDate) = 6, pl.Quantity, 0)) AS June,
|
||||
SUM(IF(month(pm.CreatedDate) = 7, pl.Quantity, 0)) AS July,
|
||||
SUM(IF(month(pm.CreatedDate) = 8, pl.Quantity, 0)) AS August,
|
||||
SUM(IF(month(pm.CreatedDate) = 9, pl.Quantity, 0)) AS September,
|
||||
SUM(IF(month(pm.CreatedDate) = 10, pl.Quantity, 0)) AS October,
|
||||
SUM(IF(month(pm.CreatedDate) = 11, pl.Quantity, 0)) AS November,
|
||||
SUM(IF(month(pm.CreatedDate) = 12, pl.Quantity, 0)) AS December,
|
||||
SUM(IF(month(pm.CreatedDate) = 1, pl.Quantity, 0)) AS January,
|
||||
SUM(IF(month(pm.CreatedDate) = 2, pl.Quantity, 0)) AS February,
|
||||
SUM(IF(month(pm.CreatedDate) = 3, pl.Quantity, 0)) AS March,
|
||||
$sql="select sd.SupplierID as sid,mm.MaterialCode as mid,mm.Category as category,sd.SupplierName as supplier_name,mm.MaterialName as material_name,
|
||||
SUM(IF(month(pm.PODate) = 4, pl.Quantity, 0)) AS April,
|
||||
SUM(IF(month(pm.PODate) = 5, pl.Quantity, 0)) AS May,
|
||||
SUM(IF(month(pm.PODate) = 6, pl.Quantity, 0)) AS June,
|
||||
SUM(IF(month(pm.PODate) = 7, pl.Quantity, 0)) AS July,
|
||||
SUM(IF(month(pm.PODate) = 8, pl.Quantity, 0)) AS August,
|
||||
SUM(IF(month(pm.PODate) = 9, pl.Quantity, 0)) AS September,
|
||||
SUM(IF(month(pm.PODate) = 10, pl.Quantity, 0)) AS October,
|
||||
SUM(IF(month(pm.PODate) = 11, pl.Quantity, 0)) AS November,
|
||||
SUM(IF(month(pm.PODate) = 12, pl.Quantity, 0)) AS December,
|
||||
SUM(IF(month(pm.PODate) = 1, pl.Quantity, 0)) AS January,
|
||||
SUM(IF(month(pm.PODate) = 2, pl.Quantity, 0)) AS February,
|
||||
SUM(IF(month(pm.PODate) = 3, pl.Quantity, 0)) AS March,
|
||||
sum(pl.Quantity) as qtotal,
|
||||
SUM(IF(month(pm.CreatedDate) = 4, pl.Quantity * pl.Rate, 0)) AS vApril,
|
||||
SUM(IF(month(pm.CreatedDate) = 5, pl.Quantity * pl.Rate, 0)) AS vMay,
|
||||
SUM(IF(month(pm.CreatedDate) = 6, pl.Quantity * pl.Rate, 0)) AS vJune,
|
||||
SUM(IF(month(pm.CreatedDate) = 7, pl.Quantity * pl.Rate, 0)) AS vJuly,
|
||||
SUM(IF(month(pm.CreatedDate) = 8, pl.Quantity * pl.Rate, 0)) AS vAugust,
|
||||
SUM(IF(month(pm.CreatedDate) = 9, pl.Quantity * pl.Rate, 0)) AS vSeptember,
|
||||
SUM(IF(month(pm.CreatedDate) = 10, pl.Quantity * pl.Rate, 0)) AS vOctober,
|
||||
SUM(IF(month(pm.CreatedDate) = 11, pl.Quantity * pl.Rate, 0)) AS vNovember,
|
||||
SUM(IF(month(pm.CreatedDate) = 12, pl.Quantity * pl.Rate, 0)) AS vDecember,
|
||||
SUM(IF(month(pm.CreatedDate) = 1, pl.Quantity * pl.Rate, 0)) AS vJanuary,
|
||||
SUM(IF(month(pm.CreatedDate) = 2, pl.Quantity * pl.Rate, 0)) AS vFebruary,
|
||||
SUM(IF(month(pm.CreatedDate) = 3, pl.Quantity * pl.Rate, 0)) AS vMarch,
|
||||
SUM(IF(month(pm.PODate) = 4, pl.Quantity * pl.Rate, 0)) AS vApril,
|
||||
SUM(IF(month(pm.PODate) = 5, pl.Quantity * pl.Rate, 0)) AS vMay,
|
||||
SUM(IF(month(pm.PODate) = 6, pl.Quantity * pl.Rate, 0)) AS vJune,
|
||||
SUM(IF(month(pm.PODate) = 7, pl.Quantity * pl.Rate, 0)) AS vJuly,
|
||||
SUM(IF(month(pm.PODate) = 8, pl.Quantity * pl.Rate, 0)) AS vAugust,
|
||||
SUM(IF(month(pm.PODate) = 9, pl.Quantity * pl.Rate, 0)) AS vSeptember,
|
||||
SUM(IF(month(pm.PODate) = 10, pl.Quantity * pl.Rate, 0)) AS vOctober,
|
||||
SUM(IF(month(pm.PODate) = 11, pl.Quantity * pl.Rate, 0)) AS vNovember,
|
||||
SUM(IF(month(pm.PODate) = 12, pl.Quantity * pl.Rate, 0)) AS vDecember,
|
||||
SUM(IF(month(pm.PODate) = 1, pl.Quantity * pl.Rate, 0)) AS vJanuary,
|
||||
SUM(IF(month(pm.PODate) = 2, pl.Quantity * pl.Rate, 0)) AS vFebruary,
|
||||
SUM(IF(month(pm.PODate) = 3, pl.Quantity * pl.Rate, 0)) AS vMarch,
|
||||
sum(pl.Quantity * pl.Rate) as vtotal
|
||||
FROM T_PurchaseOrder_Master pm
|
||||
join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
@ -1647,7 +1684,7 @@ if ($cname!= ''){
|
||||
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (pm.CreatedDate >= '".$fa."-04-01' and pm.CreatedDate <= '".$aa."-03-31')";
|
||||
$sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
|
||||
@ -1667,10 +1704,10 @@ join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
monthname(pm.CreatedDate) = '".$m."' and mm.Category = '".$cat."' ";
|
||||
monthname(pm.PODate) = '".$m."' and mm.Category = '".$cat."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (pm.CreatedDate >= '".$fa."-04-01' and pm.CreatedDate <= '".$aa."-03-31')";
|
||||
$sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
$sql.= "group by category,supplier_name,material_name";
|
||||
@ -1691,7 +1728,7 @@ where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO f
|
||||
mm.Category = '".$cat."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (pm.CreatedDate >= '".$fa."-04-01' and pm.CreatedDate <= '".$aa."-03-31')";
|
||||
$sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
$sql.= "group by category,supplier_name,material_name";
|
||||
|
||||
@ -2,48 +2,10 @@
|
||||
|
||||
class department_model extends CI_Model
|
||||
{
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @return number $count : This is row count
|
||||
*/
|
||||
// function departmentListingCount($searchText = '')
|
||||
// {
|
||||
// $this->db->select('BaseT.DepartmentID, BaseT.SupplierName, BaseT.Address, BaseT.ContactNumber, BaseT.AlternateContactNumber,BaseT.EmailAddress,BaseT.Exiseregistration,BaseT.TIN,BaseT.PAN,BaseT.GSTNO,BaseT.GSTRange,BaseT.CollectrateAddress,BaseT.UANumber,BaseT.PaymentTerms,BaseT.PaymentDays,BaseT.PayableAT');
|
||||
// $this->db->from('T_DepartmentDetails as BaseT');
|
||||
// //$this->db->join('tbl_users as users', 'users.userId = BaseT.userId','left');
|
||||
// //$this->db->join('T_SupplierDetails as ID', 'ID.DepartmentID = BaseT.DepartmentID','left');
|
||||
// if(!empty($searchText)) {
|
||||
// $likeCriteria = "(BaseT.DepartmentID LIKE '%".$searchText."%'
|
||||
// OR BaseT.SupplierName LIKE '%".$searchText."%'
|
||||
// OR BaseT.Address LIKE '%".$searchText."%'
|
||||
// OR BaseT.ContactNumber LIKE '%".$searchText."%'
|
||||
// OR BaseT.AlternateContactNumber LIKE '%".$searchText."%'
|
||||
// OR BaseT.EmailAddress LIKE '%".$searchText."%'
|
||||
// OR BaseT.Exiseregistration LIKE '%".$searchText."%'
|
||||
// OR BaseT.TIN LIKE '%".$searchText."%'
|
||||
// OR BaseT.PAN LIKE '%".$searchText."%'
|
||||
// OR BaseT.GSTNO LIKE '%".$searchText."%'
|
||||
// OR BaseT.GSTRange LIKE '%".$searchText."%'
|
||||
// OR BaseT.CollectrateAddress LIKE '%".$searchText."%'
|
||||
// OR BaseT.UANumber LIKE '%".$searchText."%'
|
||||
// OR BaseT.PaymentTerms LIKE '%".$searchText."%'
|
||||
// OR BaseT.PaymentDays LIKE '%".$searchText."%'
|
||||
// OR BaseT.PayableAT LIKE '%".$searchText."%')";
|
||||
// $this->db->where($likeCriteria);
|
||||
// }
|
||||
// //$this->db->where('BaseT.isDeleted', 0);
|
||||
// //$this->db->where('BaseT.userId !=', 1);
|
||||
// $query = $this->db->get();
|
||||
|
||||
// return count($query->result());
|
||||
// }
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function departmentListing()
|
||||
{
|
||||
@ -55,57 +17,44 @@ class department_model extends CI_Model
|
||||
return $result;
|
||||
}
|
||||
|
||||
// function ($searchText = '')
|
||||
// {
|
||||
// if(!empty($searchText)) {
|
||||
// $likeCriteria = "(BaseT.DepartmentName LIKE '%".$searchText."%'
|
||||
// OR BaseT.DEPCode LIKE '%".$searchText."%'
|
||||
// OR BaseT.HeadDept LIKE '%".$searchText."%'
|
||||
// OR BaseT.IsActive LIKE '%".$searchText."%')";
|
||||
// $this->db->where($likeCriteria);
|
||||
// }
|
||||
// //$this->db->where('BaseT.isDeleted', 0);
|
||||
// //$this->db->where('BaseT.userId !=', 1);
|
||||
// // $this->db->limit($page, $segment);
|
||||
// $query = $this->db->get();
|
||||
|
||||
// $result = $query->result();
|
||||
// return $result;
|
||||
// }
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To get Department information by id
|
||||
* @param array $department : This will have all the department datas
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
|
||||
function addNewdepartment($department)
|
||||
function addNewdepartment($department)
|
||||
{
|
||||
|
||||
$this->db->insert('T_DepartmentDetails', $department);
|
||||
|
||||
$SID = $this->db->affected_rows();
|
||||
$SID = $this->db->affected_rows();
|
||||
|
||||
return $SID;
|
||||
|
||||
}
|
||||
|
||||
function getdepcode()
|
||||
{
|
||||
//$limit = 12;
|
||||
$this->db->distinct();
|
||||
$this->db->select('DEPCode, DepartmentName');
|
||||
$this->db->from('T_DepartmentDetails');
|
||||
$this->db->where('IsActive =', 1);
|
||||
//$this->db->limit($limit);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To get active department datas
|
||||
* @return array $result : result of the query(returns DepartmentCode and DepartmentName)
|
||||
*/
|
||||
function getdepcode()
|
||||
{
|
||||
|
||||
$this->db->distinct();
|
||||
$this->db->select('DEPCode, DepartmentName');
|
||||
$this->db->from('T_DepartmentDetails');
|
||||
$this->db->where('IsActive =', 1);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* To get department details
|
||||
* @param number $DEPCode : Optional : this is department code
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function getDeptInfo($DEPCode='')
|
||||
{
|
||||
@ -113,11 +62,14 @@ function getdepcode()
|
||||
$this->db->from('T_DepartmentDetails');
|
||||
$this->db->where('DEPCode', $DEPCode);
|
||||
$query = $this->db->get();
|
||||
// print_r($this->db->last_query());
|
||||
return $query->result();
|
||||
}
|
||||
/* This function to get the Supplier Address on respective Supplier ID */
|
||||
|
||||
|
||||
/**
|
||||
* To store edited department details
|
||||
* @param array $department : This wil have all edited department datas
|
||||
* @param number $DEPCode : This is department code
|
||||
**/
|
||||
function Updatedepartment($department, $DEPCode)
|
||||
{
|
||||
$this->db->where('DEPCode', $DEPCode);
|
||||
|
||||
@ -6,18 +6,14 @@ class employeedetails_model extends CI_Model
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get the employee listing
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function employeeListing()
|
||||
{
|
||||
$this->db->select(' Emp.*,Dep.DepartmentName as DepartmentName');
|
||||
$this->db->from('T_Employee_Details Emp');
|
||||
$this->db->select(' Emp.*,Dep.DepartmentName as DepartmentName');
|
||||
$this->db->from('T_Employee_Details Emp');
|
||||
$this->db->join('T_DepartmentDetails Dep', 'Emp.Departmentcode = Dep.DEPCode','left');
|
||||
|
||||
$this->db->order_by("Emp.EmpID", "asc");
|
||||
|
||||
$query = $this->db->get();
|
||||
@ -26,7 +22,10 @@ class employeedetails_model extends CI_Model
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get the role data for employee
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function getUserRoles()
|
||||
{
|
||||
$this->db->select('roleId, role');
|
||||
@ -37,9 +36,9 @@ class employeedetails_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the Config value from configuration table
|
||||
* @return array $result : This is result of the query
|
||||
/**
|
||||
* To get the Config value from configuration table
|
||||
* @return array $query->result() : This is result of the query
|
||||
*/
|
||||
function getConfigValue($ConfigID )
|
||||
{
|
||||
@ -52,9 +51,9 @@ class employeedetails_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/* *//**
|
||||
* This function is used to get the Department details from T_DepartmentDetails
|
||||
* @return array $result : This is result of the query
|
||||
/**
|
||||
* To get the Department details from T_DepartmentDetails
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function getDepartment()
|
||||
{
|
||||
@ -65,33 +64,40 @@ class employeedetails_model extends CI_Model
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
* To store employee details
|
||||
* @param array $Employee : This will have all the employee datas
|
||||
* @return number $EmpID : This will return how many value are inserted (return as number/count)
|
||||
*/
|
||||
|
||||
function addNewemployee($Employee)
|
||||
function addNewemployee($Employee)
|
||||
{
|
||||
|
||||
$this->db->insert('T_Employee_Details', $Employee);
|
||||
|
||||
$EmpID = $this->db->affected_rows();
|
||||
|
||||
return $EmpID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store the edited employee details
|
||||
* @param array $Emp : This will have all the edited employee datas
|
||||
* @param number $EmpID : This is employee id
|
||||
*/
|
||||
function UpdateEmployee($Emp, $EmpID)
|
||||
{
|
||||
//echo $EmpID;
|
||||
|
||||
$this->db->where('EmpID', $EmpID);
|
||||
$this->db->update('T_Employee_Details', $Emp);
|
||||
//print_r($this->db->last_query());
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get employee details
|
||||
* @param number $EmpID : This is employee id
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function viewemployee( $EmpID)
|
||||
{
|
||||
$this->db->select('Emp.*,Dep.DepartmentName as DepartmentName');
|
||||
@ -100,22 +106,31 @@ function addNewemployee($Employee)
|
||||
$this->db->where('Emp.EmpID', $EmpID);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
$result = $query->result();
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
return $result;
|
||||
return $result;
|
||||
}
|
||||
|
||||
/* This function to get the Employee department on respective Employee */
|
||||
/**
|
||||
* To get the Employee department on respective Employee
|
||||
* @param number $EmployeeID : this is employee Id
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function GetEmployeeDepartment($EmployeeID)
|
||||
{
|
||||
$this->db->select('DepartmentName');
|
||||
$this->db->from('T_EmployeeDetails');
|
||||
$this->db->where($EmployeeID);
|
||||
$this->db->where($EmployeeID);
|
||||
$query = $this->db->get();
|
||||
return $query->result_array();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To check respective Employee emailid already exists or not
|
||||
* @param number $empid : this is employee Id
|
||||
* @param number $email : this is employee's emailid
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function checkMailExists($email='',$Empid='')
|
||||
{
|
||||
$this->db->select('EmailId');
|
||||
@ -126,12 +141,18 @@ function addNewemployee($Employee)
|
||||
$this->db->where('EmpID !=',$Empid);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
//print_r($this->db->last_query());
|
||||
|
||||
if ($query->num_rows > 0) {
|
||||
return $query->result_array();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To check respective Employee aadhar no already exists or not
|
||||
* @param number $Empid : this is employee Id
|
||||
* @param number $AadharNo : this is employee's aadhar no
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function checkAadharExists($AadharNo,$Empid='')
|
||||
{
|
||||
$this->db->select('AadharNo');
|
||||
@ -142,11 +163,18 @@ function addNewemployee($Employee)
|
||||
$this->db->where('EmpID !=',$Empid);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
//print_r($this->db->last_query());
|
||||
|
||||
if ($query->num_rows > 0) {
|
||||
return $query->result_array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To check respective Employee's panno already exists or not
|
||||
* @param number $Empid : this is employee Id
|
||||
* @param number $AadharNo : this is employee's pan no
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function checkPANExists($PANNo,$Empid='')
|
||||
{
|
||||
$this->db->select('PANNo');
|
||||
@ -163,7 +191,11 @@ function addNewemployee($Employee)
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To check respective Employee's profile pic already exists or not
|
||||
* @param number $pic : this is employee profile pic (pic name)
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function checkPhotoExists($Pic)
|
||||
{
|
||||
$this->db->select('ProfilePic');
|
||||
@ -171,35 +203,46 @@ function addNewemployee($Employee)
|
||||
$this->db->where($Pic);
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r($this->db->last_query());
|
||||
|
||||
if ($query->num_rows > 0) {
|
||||
return $query->result_array();
|
||||
}
|
||||
}
|
||||
function getEmployeeCount( )
|
||||
|
||||
/**
|
||||
* To get employee's count
|
||||
* @return array $query->result_array() : result of the query
|
||||
**/
|
||||
function getEmployeeCount( )
|
||||
{
|
||||
|
||||
$this->db->select('count(*) as EmpCount');
|
||||
$this->db->from('T_Employee_Details');
|
||||
$this->db->where('IsActive ',1 );
|
||||
$this->db->where('IsActive ',1 );
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function getBankDetails()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_Bank_Details');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To get bank details
|
||||
* @return array $result : result of the query
|
||||
**/
|
||||
function getBankDetails()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_Bank_Details');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get Asset's information for export xl
|
||||
*/
|
||||
function export_excel(){
|
||||
|
||||
$this->db->select(' det.*,Dep.DepartmentName as DepartmentName,det.firstname,emp1.firstname as UpdatedByName,emp1.firstname as CreatedByName');
|
||||
$this->db->join('T_DepartmentDetails Dep', 'det.Departmentcode = Dep.DEPCode','left');
|
||||
$this->db->join('T_DepartmentDetails Dep', 'det.Departmentcode = Dep.DEPCode','left');
|
||||
$this->db->join('tbl_users as tbl',' det.createdby = tbl.userid','left');
|
||||
$this->db->join('T_Employee_Details as emp', 'emp.empid=tbl.empid','left');
|
||||
$this->db->join('tbl_users as tbl1',' det.UpdatedBy = tbl1.userid','left');
|
||||
|
||||
@ -3,18 +3,10 @@
|
||||
class emppaydate_model extends CI_Model
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get the employee pay listing
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
|
||||
|
||||
function emppayListing()
|
||||
{
|
||||
$this->db->select('T_Emp_Pay_Data.*,T_Employee_Details.FirstName,T_Employee_Details.LastName');
|
||||
@ -24,7 +16,11 @@ class emppaydate_model extends CI_Model
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete the employee pay datas
|
||||
* @return array $query : This is result of the query
|
||||
*/
|
||||
function deleteEmployeePay($EmpID)
|
||||
{
|
||||
$this->db->where('EmpID',$EmpID);
|
||||
@ -34,8 +30,11 @@ class emppaydate_model extends CI_Model
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* To store the employee payments datas
|
||||
* @param $emppay
|
||||
* @return array $paydataid :
|
||||
*/
|
||||
function addNewemppay($emppay)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
@ -47,7 +46,13 @@ class emppaydate_model extends CI_Model
|
||||
|
||||
return $emppay;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store the employees loan information
|
||||
* @param string $string :
|
||||
* @param array $dataarray :
|
||||
* @return array $loanid :
|
||||
*/
|
||||
function addLoanInfo($dataarray,$string)
|
||||
{
|
||||
if($string == 'add'){
|
||||
@ -63,7 +68,13 @@ class emppaydate_model extends CI_Model
|
||||
$loanid = $this->db->affected_rows();
|
||||
return $loanid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To get the employees payment information
|
||||
* @param string $paydataid:
|
||||
* @return array $loanid :
|
||||
*/
|
||||
function getUserInfo($paydataid)
|
||||
{
|
||||
$sql = 'select T_Emp_Pay_Data.Pay_Data_ID,T_Emp_Pay_Data.EmpID as PAYEMPID,T_Emp_Pay_Data.Basic_Pay,T_Emp_Pay_Data.HRA_Rate,T_Emp_Pay_Data.Allowances,T_Emp_Pay_Data.Food_Allowances,T_Emp_Pay_Data.PF_Rate,T_Emp_Pay_Data.ESI_Rate,T_Emp_Pay_Data.HRA_Amount,T_Emp_Pay_Data.TotalSalary,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Loan_Master.*from T_Emp_Pay_Data
|
||||
@ -75,21 +86,25 @@ class emppaydate_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To store edited emppay information
|
||||
* @param array $emppaydatas :
|
||||
*/
|
||||
function editemppay($emppaydatas)
|
||||
{
|
||||
|
||||
$paydateid=$emppaydatas['Pay_Data_ID'];
|
||||
//echo $paydateid;
|
||||
//print_r($emppaydatas);die();
|
||||
|
||||
$this->db->where('Pay_Data_ID' ,$paydateid);
|
||||
$this->db->update('T_Emp_Pay_Data',$emppaydatas);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To view emppay information
|
||||
* @param number $emppaydata : This will have all edited emppay details
|
||||
* @param array $paydateid : This is paydate id
|
||||
*/
|
||||
function viewemppay($emppaydata, $paydateid)
|
||||
{
|
||||
$this->db->where('Pay_Data_ID', $paydateid);
|
||||
|
||||
@ -2,85 +2,76 @@
|
||||
|
||||
class inwardgateregister_model extends CI_Model
|
||||
{
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @return number $count : This is row count
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get the IGR details for listing
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function igrListing()
|
||||
{
|
||||
|
||||
|
||||
$this->db->select('igr.*,PO.DeliveryDate,sup.SupplierName');
|
||||
$this->db->from('T_IGR_Master igr');
|
||||
$this->db->join('T_PurchaseOrder_Master PO','igr.PONO = PO.PONO');
|
||||
$this->db->join('T_SupplierDetailsN` sup','PO.SupplierID = sup.SupplierID');
|
||||
$this->db->order_by('igr.CreatedDate','desc');
|
||||
$this->db->order_by('igr.CreatedDate','desc');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get the po details
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function getpurchaseorder()
|
||||
{
|
||||
$this->db->distinct();
|
||||
$this->db->distinct();
|
||||
$this->db->select('POM.PONO,POM.ServiceDescription,POM.DeliveryDate,sup.SupplierName,sup.Address,POM.status');
|
||||
$this->db->from('T_PurchaseOrder_Master POM');
|
||||
$this->db->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO');
|
||||
$this->db->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO');
|
||||
$this->db->join('T_SupplierDetailsN sup', 'POM.SupplierID = sup.SupplierID');
|
||||
$this->db->where('POM.Status',PO_RELEASED);
|
||||
$this->db->where('POM.POType !=',SERVICE);
|
||||
$this->db->or_where('POM.Status',IGR_CREATED);
|
||||
$this->db->or_where('POM.Status',MRIR_CREATED);
|
||||
$this->db->or_where('POM.Status',MRIR_APPROVED);
|
||||
$query = $this->db->get();
|
||||
$this->db->where('POM.Status',PO_RELEASED);
|
||||
$this->db->where('POM.POType !=',SERVICE);
|
||||
$this->db->or_where('POM.Status',IGR_CREATED);
|
||||
$this->db->or_where('POM.Status',MRIR_CREATED);
|
||||
$this->db->or_where('POM.Status',MRIR_APPROVED);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
//print_r($this->db->last_query());
|
||||
return $result;
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To get the po details for revalant Po
|
||||
* @param number $PO : this is po number
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function viewpurchaseorder($PO)
|
||||
{
|
||||
|
||||
$subQuery ='SELECT distinct POM.PONO,POL.MaterialCode,POL.Quantity,POL.ReceivedQuantity,(POL.Quantity -POL.ReceivedQuantity ) as PendingQty,POL.PONO,MM.MaterialName,MM.UOM
|
||||
from T_PurchaseOrder_Master POM
|
||||
left join T_PurchaseOrder_LineItem POL on POL.PONO = POM.PONO
|
||||
left join T_IGR_Master IGM on IGM.PONO =POL.PONO
|
||||
left join T_IGR_Details igr on igr.MaterialCode = POL.MaterialCode and IGM.PONO =POL.PONO
|
||||
left join T_MaterialMaster MM
|
||||
on MM.MaterialCode = POL.MaterialCode where POM.PONO=? ';// and POM.Status not in(?) ';
|
||||
from T_PurchaseOrder_Master POM
|
||||
left join T_PurchaseOrder_LineItem POL on POL.PONO = POM.PONO
|
||||
left join T_IGR_Master IGM on IGM.PONO =POL.PONO
|
||||
left join T_IGR_Details igr on igr.MaterialCode = POL.MaterialCode and IGM.PONO =POL.PONO
|
||||
left join T_MaterialMaster MM
|
||||
on MM.MaterialCode = POL.MaterialCode where POM.PONO=? ';
|
||||
|
||||
$query = $this->db->query($subQuery, array($PO,IGR_CREATED));
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
$query = $this->db->query($subQuery, array($PO,IGR_CREATED));
|
||||
return $query->result();
|
||||
|
||||
/* $this->db->select('POM.PONO,POL.MaterialCode,POL.Quantity,POL.PONO,MM.MaterialName,MM.UOM');
|
||||
$this->db->from('T_PurchaseOrder_Master POM');
|
||||
$this->db->join('T_PurchaseOrder_LineItem POL', 'POL.PONO = POM.PONO','left');
|
||||
$this->db->join('T_MaterialMaster MM', 'MM.MaterialCode = POL.MaterialCode','left');
|
||||
$this->db->where('POM.PONO',$PO );
|
||||
|
||||
$this->db->where('POL.Status !=',POLINEITEM_IGR_CREATED );
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
|
||||
$this->db->last_query();
|
||||
return $result; */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To store the igr master details
|
||||
* @param array $igrM : This will have all igr master details
|
||||
* @var number $insert_id :
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function addigrM($igrM)
|
||||
{
|
||||
|
||||
@ -88,8 +79,7 @@ class inwardgateregister_model extends CI_Model
|
||||
$this->db->insert('T_IGR_Master', $igrM);
|
||||
$insert_id = $this->db->affected_rows();
|
||||
$this->db->trans_complete();
|
||||
// print_r($this->db->last_query());
|
||||
//print_r($insert_id);
|
||||
|
||||
if($insert_id>0)
|
||||
{
|
||||
$subQuery = 'select max(IGRNO) as IGRNO from T_IGR_Master';
|
||||
@ -100,6 +90,12 @@ class inwardgateregister_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To store the igr child details
|
||||
* @param array $igrD : This will have all igr child details
|
||||
* @var number $insert_id :
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function addigrD($igrD)
|
||||
{
|
||||
$this->db->trans_start();
|
||||
@ -116,6 +112,12 @@ class inwardgateregister_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To get igr details for revalant IGRNO
|
||||
* @param number $IGRNO : This is IGRNO
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function viewigr($IGRNO)
|
||||
{
|
||||
$this->db->distinct();
|
||||
@ -131,11 +133,17 @@ class inwardgateregister_model extends CI_Model
|
||||
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r( $this->db->last_query());
|
||||
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To store edited po lineitem details
|
||||
* @param number $PONO : This is PONO
|
||||
* @param number $MaterialCode : This material code
|
||||
* @param array $Lineitem : This will have all edited po lineitem details
|
||||
*/
|
||||
function UpdatePOLineItem($LineItem,$PONO,$MaterialCode)
|
||||
{
|
||||
$this->db->where('PONO', $PONO);
|
||||
@ -145,6 +153,13 @@ class inwardgateregister_model extends CI_Model
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* To store edited po master details
|
||||
* @param number $PONO : This is PONO
|
||||
* @var array $POStatus : for updation operation : this will have igrcreated's const value and updater' id
|
||||
* @param number $updatedBy : This is updater's id
|
||||
* @param array $Lineitem : This will have all edited po lineitem details
|
||||
*/
|
||||
function UpdatePOMaster($PONO,$updatedBy)
|
||||
{
|
||||
$this->db->select('*');
|
||||
@ -162,14 +177,20 @@ class inwardgateregister_model extends CI_Model
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To get po lineitem details for recieved qty
|
||||
* @param number $PONO : This is PONO
|
||||
* @param number $MaterialCode : This is material code
|
||||
* @return array $result : result of the query
|
||||
*/
|
||||
function getPOLineItemReceivedQty($PONO,$MaterialCode)
|
||||
{
|
||||
$this->db->select('ReceivedQuantity');
|
||||
$this->db->select('ReceivedQuantity');
|
||||
$this->db->from('T_PurchaseOrder_LineItem');
|
||||
$this->db->where('PONO',$PONO);
|
||||
$this->db->where('MaterialCode',$MaterialCode);
|
||||
$query = $this->db->get();
|
||||
// print_r( $this->db->last_query());
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ class Login_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function used to check the login credentials of the user
|
||||
* To check the login credentials of the user
|
||||
* @param string $email : This is email of the user
|
||||
* @param string $password : This is encrypted password of the user
|
||||
*/
|
||||
|
||||
@ -4,15 +4,13 @@ class monthlypay_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
* To get monthwise payment list
|
||||
* @param date $current : This is current month and year
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function monthlyListing($current="")
|
||||
{
|
||||
//echo $current;
|
||||
|
||||
$this->db->select('T_Monthly_Pay_Inputs.*,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Payroll.Key,T_Loan_Master.Loan_ID');
|
||||
$this->db->from('T_Monthly_Pay_Inputs');
|
||||
$this->db->join('T_Employee_Details','T_Monthly_Pay_Inputs.EmpID=T_Employee_Details.EmpID');
|
||||
@ -21,18 +19,23 @@ class monthlypay_model extends CI_Model
|
||||
$this->db->where('Month_Year',$current);
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r($query->result());
|
||||
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get employee payment details
|
||||
* @param date $current : Optional
|
||||
* @param array $s : Optional
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getEmpPayDetails($current="",$s="")
|
||||
{
|
||||
|
||||
$this->db->select('T_Employee_Details.EmpID,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Employee_Details.DateofJoining');
|
||||
$this->db->from('T_Employee_Details');
|
||||
//$this->db->join('T_Emp_Pay_Data','T_Emp_Pay_Data.EmpID=T_Employee_Details.EmpID','Left');
|
||||
$this->db->where('T_Employee_Details.IsActive',1);
|
||||
$this->db->order_by('EmpID','asc');
|
||||
$query = $this->db->get();
|
||||
@ -41,11 +44,16 @@ class monthlypay_model extends CI_Model
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* To get employee payment month wise details
|
||||
* @param date $current : Optional : This is current month and year value
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getEmpPayDetailsforMonthInputs($current="")
|
||||
{
|
||||
|
||||
$current = '01-'.$current;
|
||||
//echo $current;
|
||||
|
||||
$current = date_create($current);
|
||||
$current = date_format($current,'Y-m-d');
|
||||
$sql = "select T_Emp_Pay_Data.EmpID,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Employee_Details.DateofJoining,T_Attendance.Days_Worked as Days_worked,T_Attendance.Absent as LOP_Days,T_Attendance.Paid_Leave as Paid_leave,T_Attendance.Total_OTHrs as OT_Hrs_Worked,T_Attendance.NoofDays,T_Loan_Master.Loan_ID from T_Emp_Pay_Data
|
||||
@ -59,6 +67,11 @@ class monthlypay_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* To get public holiday details for attendances
|
||||
* @param date $current : Optional : This is current month and year value
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function getPublicHoldays($current="")
|
||||
{
|
||||
if(!empty($current))
|
||||
@ -79,19 +92,29 @@ class monthlypay_model extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To declare date is holiday
|
||||
* @param date $Date : This is date
|
||||
* @return array $query->result() : result of the query
|
||||
*/
|
||||
function checkHoliday($Date)
|
||||
{
|
||||
$Date = date('Y-m-d',strtotime($Date));
|
||||
//echo $Date;die();[
|
||||
|
||||
$sql="select count(*) as count from T_Public_Holidays where H_Date = ?";
|
||||
$query = $this->db->query($sql,array($Date));
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
/**
|
||||
* To store holiday date
|
||||
* @param array $data : This is date
|
||||
* @param string $String : it has 'i' and 'u' ('i' handles insertion and 'u' handles updation)
|
||||
* @return array $i : result of the query
|
||||
*/
|
||||
function saveHolidays($data,$string)
|
||||
{
|
||||
//print_r($data);
|
||||
|
||||
if($string == 'i')
|
||||
{
|
||||
$this->db->insert('T_Public_Holidays',$data);
|
||||
@ -107,7 +130,11 @@ class monthlypay_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To delete holiday date
|
||||
* @param date $d : This is date
|
||||
* @return $this->db->affected_rows() : result of the query
|
||||
*/
|
||||
function deleteHoliday($d)
|
||||
{
|
||||
$d = date_format(date_create($d),'Y-m-d');
|
||||
@ -115,6 +142,12 @@ class monthlypay_model extends CI_Model
|
||||
$this->db->delete('T_Public_Holidays');
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
|
||||
/**
|
||||
* To get details for attendances
|
||||
* @param date $current : Optional : This is date
|
||||
* @return $result : result of the query
|
||||
*/
|
||||
function monthlyAttendance($current="")
|
||||
{
|
||||
|
||||
@ -128,7 +161,14 @@ class monthlypay_model extends CI_Model
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* To store attendances Information (its handles insertion and updation operation)
|
||||
* @param array $data : this will have all attendances inforamtion
|
||||
* @var number $res : gets count
|
||||
* @return array $i : result of the query
|
||||
*/
|
||||
function saveMonthlyData_model($data)
|
||||
{
|
||||
|
||||
@ -167,6 +207,13 @@ class monthlypay_model extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* To store cashbook Information (its insertion and updation operation)
|
||||
* @param array $monthattendance : this will have all cashbook details
|
||||
* @param number $Month_Year :
|
||||
* @param number $EmpID :
|
||||
* @return array $this->db->affected_rows() : result of the query
|
||||
*/
|
||||
function saveAttendance($monthattendance,$Month_Year,$EmpID)
|
||||
{
|
||||
$this->db->select('count(*) as c');
|
||||
@ -180,26 +227,15 @@ class monthlypay_model extends CI_Model
|
||||
if($ans == 0)
|
||||
{
|
||||
|
||||
//array_pop();
|
||||
$this->db->insert('T_Attendance',$monthattendance);
|
||||
return $this->db->affected_rows();
|
||||
//echo "INS";
|
||||
// if($this->db->affected_rows() > 0)
|
||||
// {
|
||||
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->db->where('Month_Year',$Month_Year);
|
||||
$this->db->where('EmpID',$EmpID);
|
||||
$this->db->update('T_Attendance',$monthattendance);
|
||||
//echo "UPDATE";
|
||||
return $this->db->affected_rows();
|
||||
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ class supplier_model extends CI_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* To get the Supplier Information for listing
|
||||
* To get the Supplier Information for listing
|
||||
* @return array $result : This is result
|
||||
*/
|
||||
function supplierListing()
|
||||
@ -38,7 +38,7 @@ class supplier_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To get Payment information
|
||||
* @param number $payment :Optional : To get payment value
|
||||
* @param number $payment : Optional : To get payment value
|
||||
* @return array $result : This is result of the query(payment information)
|
||||
*/
|
||||
function getPaymentTerms($payment = '')
|
||||
@ -52,7 +52,7 @@ class supplier_model extends CI_Model
|
||||
|
||||
/**
|
||||
* To Check PAN number is already exists are not
|
||||
* @param number $SID : Optional:To get Supplier ID
|
||||
* @param number $SID : Optional : To get Supplier ID
|
||||
* @param number $PAN : To get PAN number from the controller - for check purpose if already exists are not
|
||||
* @return $query->result_array() : This is result of the query (PAN Number information based on supplier ID)
|
||||
*/
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mmi))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -87,12 +89,13 @@ if(!empty($mmi))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -103,15 +106,17 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-ItemWise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
title: 'Report - Material Master - Item Wise',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,13 @@ if(!empty($mmr))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -27,6 +31,14 @@ if(!empty($mmr))
|
||||
|
||||
|
||||
</style>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
@ -103,15 +115,18 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-Receipt Value Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
title: 'Report - Material Master - ReceiptValue',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -91,13 +93,15 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
@ -107,15 +111,18 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-SupplierWise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
title: 'Report - Material Master - SupplierWise',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($rel_po))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -33,7 +35,7 @@ if(!empty($rel_po))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Order Value - Released</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Order Value - Released</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="row">
|
||||
@ -81,7 +83,7 @@ if(!empty($rel_po))
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->CreatedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->PODate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php echo $rel->TotalOrderValue?></span></td>
|
||||
@ -103,12 +105,14 @@ if(!empty($rel_po))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -120,13 +124,15 @@ $(document).ready(function() {
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export ReleasedPO-Order value',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
title: 'Report - Released PO',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -29,7 +32,17 @@
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Consolidate</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Consolidate</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
}
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -598,13 +611,13 @@
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -615,15 +628,18 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'REPORT-Consolidate(Quantity)',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
]
|
||||
},
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
@ -633,13 +649,26 @@ $(document).ready(function() {
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate(Value)',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -9,9 +9,11 @@
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -28,8 +30,8 @@
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -40,7 +42,22 @@
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Consolidate-Inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate-Inward</b>br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('client_name')){
|
||||
|
||||
$cl=$this->input->post('client_name');
|
||||
|
||||
echo $cl;
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -613,11 +630,13 @@
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -629,15 +648,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate(Quantity)',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
@ -645,15 +676,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate(Value)',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -158,11 +160,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -174,15 +178,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative month Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate month-Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -9,9 +9,11 @@
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -40,7 +42,25 @@
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate (Category-Wise)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate (Category-Wise)</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
|
||||
$cl=$this->input->post('client_name');
|
||||
|
||||
echo $cl;
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -642,11 +662,13 @@
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -658,15 +680,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate-Category(Quantity)',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
@ -674,15 +708,26 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate-Category(Quantity)',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +39,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate Month(<?php
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate Category-Wise(<?php
|
||||
$m = $this->input->get('ab');
|
||||
echo $m;
|
||||
?>)</b></p></h3></center>
|
||||
@ -159,11 +161,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -175,15 +179,26 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative month Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Consolidate Category-Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -5,10 +5,12 @@ if(!empty($ccrpt))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -41,7 +43,16 @@ if(!empty($ccrpt))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cost Center</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cost Center</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
}
|
||||
?></p></h3></center>
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
@ -121,13 +132,13 @@ if(!empty($ccrpt))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -139,15 +150,35 @@ if(!empty($ccrpt))
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Cost Center Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-CostCentre',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +39,24 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative</b>(<i>
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -214,12 +233,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -230,15 +251,36 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
buttons: [
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -5,9 +5,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -36,7 +37,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Today</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative (<?php echo date('d-m-Y'); ?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -139,12 +140,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -156,13 +159,24 @@ $(document).ready(function() {
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Today - Inward </b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative - Inward (<?php echo date('d-m-Y');?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -140,12 +141,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -156,14 +159,25 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative Day Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -150,12 +151,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -166,15 +169,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative Day',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +27,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
</style>
|
||||
@ -36,7 +38,22 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative -inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative -inward(<i>
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?> </i>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -213,12 +230,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -229,15 +248,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +39,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Month</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Month (<?php echo date('F'); ?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -147,12 +149,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -163,15 +167,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative month Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative Month',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +27,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +39,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Month -Inward </b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Month -Inward (<?php echo date('F'); ?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -146,12 +148,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -162,15 +166,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative month Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative Month-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +39,25 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Month (Category-Wise)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Month Category-Wise (<i>
|
||||
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -157,12 +177,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -173,15 +195,27 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative month Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Category Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,24 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative (Category-Wise)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative - Category Wise</b>(<i>
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -222,12 +240,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -238,15 +258,29 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Category Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,11 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +39,24 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Year</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Year</b></b>(<i>
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -152,12 +171,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -168,15 +189,26 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Year',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +26,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +38,25 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Year - Inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Year - Inward</b>(<i>
|
||||
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -152,12 +171,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -168,15 +189,26 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Year-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,25 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Year (Category-Wise)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Year - Category Wise </b>(<i>
|
||||
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
echo $yearl;
|
||||
|
||||
?>
|
||||
|
||||
</i>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -163,12 +182,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -179,16 +200,26 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export cumulative Year Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'REPORT-Cumulative-Year - Category Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
] } );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Month-wise(<?php echo $mont; ?>)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Month-wise (<?php echo $mont; ?>) </b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@ -126,12 +127,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -142,15 +145,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Month-wise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Month Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +26,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +38,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Month-wise-Inward(<?php echo $mont; ?>)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Month-wise-Inward(<?php echo $mont; ?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@ -125,13 +126,14 @@ if(!empty($mms))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -142,15 +144,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Month-wise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Month Wise Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($open_po))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -102,12 +103,14 @@ if(!empty($open_po))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -118,15 +121,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Open Orders-Pending',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Open Order-Pending',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
@ -13,9 +15,10 @@ if(!empty($mms))
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -44,7 +47,39 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Purchase</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Purchase</b>
|
||||
<br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
echo ' '.' ';
|
||||
}
|
||||
if($this->input->post('item_name')){
|
||||
$it=$this->input->post('item_name');
|
||||
echo $it;
|
||||
echo ' '.' ';
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'to'.$t;
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -95,7 +130,7 @@ if(!empty($mms))
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
@ -165,7 +200,6 @@ if(!empty($mms))
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-md-offset-2"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
@ -182,7 +216,7 @@ if(!empty($mms))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<table class="table table-bordered table-hover" width="100%"id="cc" style="font-size:11px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO NO</th>
|
||||
@ -223,7 +257,9 @@ if(!empty($mms))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->pono;?></span></td>
|
||||
<td><span>
|
||||
<a href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$rel->pono.'&ReqType='.$rel->potype; ?>"><?php echo $rel->pono;?></a>
|
||||
</span></td>
|
||||
<td style="text-align:center"><span><?php echo $rel->created_date;?></span></td>
|
||||
<td style="text-align:right"><span><?php echo $rel->created_time;?></span></td>
|
||||
<td><span><?php echo $rel->material_name;?></span></td>
|
||||
@ -311,7 +347,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_value,2,'.','');
|
||||
echo number_format($tot_value,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
@ -331,9 +367,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_SCGT,2,'.','');
|
||||
|
||||
|
||||
echo number_format($tot_SCGT,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
@ -343,7 +377,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_CGST;
|
||||
echo number_format($tot_CGST,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
@ -353,7 +387,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_ICGT;
|
||||
echo number_format($tot_ICGT,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
@ -363,7 +397,6 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
//echo $tot_dis;
|
||||
echo number_format($tot_dis,2,'.','');
|
||||
|
||||
}
|
||||
@ -374,7 +407,6 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
//echo $tot_frg;
|
||||
echo number_format($tot_frg,2,'.','');
|
||||
|
||||
}
|
||||
@ -385,7 +417,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_pac,2,'.','');
|
||||
echo number_format($tot_pac,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
@ -395,7 +427,7 @@ if(!empty($mms))
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_tot,2,'.','');//echo $tot_tot;
|
||||
echo number_format($tot_tot,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
@ -421,11 +453,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -438,13 +472,19 @@ $(document).ready(function() {
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'Report - Purchase',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
@ -13,9 +13,10 @@ if(!empty($mms))
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -32,8 +33,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -44,7 +45,59 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Purchase-Inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Purchase-Inward</b><br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('client_name')){
|
||||
|
||||
$cl=$this->input->post('client_name');
|
||||
|
||||
echo $cl;
|
||||
|
||||
echo ' '.' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('item_name')){
|
||||
|
||||
$it=$this->input->post('item_name');
|
||||
|
||||
echo $it;
|
||||
|
||||
echo ' '.' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('month')){
|
||||
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
|
||||
$frm = $this->input->post('from_date');
|
||||
|
||||
$t = $this->input->post('to_date');
|
||||
|
||||
echo $frm.'to'.$t;
|
||||
|
||||
}
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -180,7 +233,7 @@ if(!empty($mms))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:11px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO NO</th>
|
||||
@ -222,7 +275,9 @@ if(!empty($mms))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->pono;?></span></td>
|
||||
<td><span>
|
||||
<a href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$rel->pono.'&ReqType='.$rel->potype; ?>"><?php echo $rel->pono;?></a>
|
||||
</span></td>
|
||||
<td style="text-align:center"><span><?php echo $rel->created_date;?></span></td>
|
||||
<td style="text-align:right"><span><?php echo $rel->created_time;?></span></td>
|
||||
<td><span><?php echo $rel->material_name;?></span></td>
|
||||
@ -418,12 +473,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -434,15 +490,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Purchase-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,52 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411;"><b>Report - Purchase</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411;"><b>Report - Purchase-SupplierWise</b><br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('client_name')){
|
||||
|
||||
$cl=$this->input->post('client_name');
|
||||
|
||||
echo $cl;
|
||||
|
||||
echo ' '.' ';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('month')){
|
||||
|
||||
$m=$this->input->post('month');
|
||||
|
||||
echo '('.$m.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
|
||||
$frm = $this->input->post('from_date');
|
||||
|
||||
$t = $this->input->post('to_date');
|
||||
|
||||
echo $frm.'to'.$t;
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -48,10 +94,10 @@ if(!empty($mms))
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
@ -265,12 +311,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -281,15 +328,29 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Supplier-Wise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -15,9 +15,10 @@ if(!empty($mms))
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -34,8 +35,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
</style>
|
||||
@ -45,7 +46,57 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Supplier-Inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Supplier-Inward</b><br><br>
|
||||
|
||||
<?php
|
||||
|
||||
if($this->input->post('client_name')){
|
||||
|
||||
$cl=$this->input->post('client_name');
|
||||
|
||||
echo $cl;
|
||||
|
||||
echo ' '.' ';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('month')){
|
||||
|
||||
$m=$this->input->post('month');
|
||||
|
||||
echo '('.$m.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
|
||||
$frm = $this->input->post('from_date');
|
||||
|
||||
$t = $this->input->post('to_date');
|
||||
|
||||
echo $frm.'to'.$t;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -56,10 +107,10 @@ if(!empty($mms))
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-2">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
@ -260,12 +311,13 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -276,15 +328,29 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Supplier-Wise-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -4,9 +4,10 @@ if(!empty($Total))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -32,7 +33,18 @@ if(!empty($Total))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Total Orders</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Total Orders</b> <br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
}
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
|
||||
<!-- /.box-header -->
|
||||
@ -117,12 +129,13 @@ if(!empty($Total))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
@ -133,15 +146,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Total Orders',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - TotalOrders',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -37,7 +38,25 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Year-Wise</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Year-Wise</b><br><br>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -172,13 +191,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
@ -188,15 +208,29 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - YearWise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +26,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
</style>
|
||||
@ -36,7 +37,21 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Year-Wise-Inward</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Year-Wise-Inward</b><br><br>
|
||||
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
|
||||
echo '('.$ab.')';
|
||||
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
@ -167,14 +182,14 @@ if(!empty($mms))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
@ -184,15 +199,29 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Purchase Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - YearWise',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -127,13 +128,15 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
@ -143,15 +146,28 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Year-wise-Total Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - YearWise-Total',
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -25,8 +26,8 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #5d0411;
|
||||
border-color: #5d0411;
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +38,7 @@ if(!empty($mms))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Year-wise-Total(<?php echo $year; ?>)</b></p></h3></center>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Year-wise-Total(<?php echo $year; ?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@ -127,13 +128,14 @@ if(!empty($mms))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
@ -143,15 +145,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Year-wise-Total Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - YearWise-Total-Inward',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
@ -143,7 +143,7 @@ function loadAccountType(id)
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b><span for="Accountcode">Select Accounut type:</span> </b> </br></br>
|
||||
<b><span for="Accountcode">Select Account type:</span> </b> </br></br>
|
||||
<input type="radio" onclick = loadAccountType(this.id); id="myradio1" name="myradio" value="1" checked>RECEIPT
|
||||
<input type="radio" onclick = loadAccountType(this.id); id="myradio2" name="myradio" value="2" >PAYMENT
|
||||
|
||||
@ -152,7 +152,7 @@ function loadAccountType(id)
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group"><b>
|
||||
<span for="PONO">Accounut Name Select:</span> </b><span style="color:red">*</span> </br></br>
|
||||
<span for="PONO">Account Name Select:</span> </b><span style="color:red">*</span> </br></br>
|
||||
<select class="form-control required " required id="accode" required name="accode">
|
||||
<option value="-1">Account Name Select</option>
|
||||
|
||||
|
||||
@ -737,7 +737,31 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<p class="text-center">
|
||||
<strong>1 April, 2017 - 31 March, 2018</strong>
|
||||
<strong>
|
||||
<?php
|
||||
|
||||
if (date('m') >= 4) {
|
||||
|
||||
$yearl = date('Y').'-'.(date('Y')+1);
|
||||
|
||||
} else {
|
||||
|
||||
$yearl = (date('Y')-1).'-'.date('Y');
|
||||
|
||||
}
|
||||
|
||||
$ab=$yearl;
|
||||
|
||||
$fa=substr($ab,0,-5);
|
||||
|
||||
$aa=substr($ab,5,5);
|
||||
|
||||
echo '1 April, '.$fa.' - 31 March, '.$aa.'';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
<div class="chart">
|
||||
@ -754,15 +778,16 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
<br><br>
|
||||
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($totalserviceamount))
|
||||
{
|
||||
foreach($totalserviceamount as $service)
|
||||
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($servicebudgt))
|
||||
|
||||
{
|
||||
|
||||
foreach($servicebudgt as $service)
|
||||
{
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">SERVICE : </strong><strong style="color:#00c0ef;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $service->totalserviceamount;?></strong></span>
|
||||
<span class="description-text"><strong style="font-size:16px;">SERVICE : </strong><strong style="color:#00c0ef;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $service->totalservicebudget;?></strong></span>
|
||||
|
||||
<h5 class="description-header" </h5>
|
||||
|
||||
@ -774,14 +799,18 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<br>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($totalrevenueamount))
|
||||
{
|
||||
foreach($totalrevenueamount as $revenue)
|
||||
|
||||
{
|
||||
|
||||
<?php if(!empty($revenuebudgt))
|
||||
|
||||
{
|
||||
|
||||
foreach($revenuebudgt as $revenue)
|
||||
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">REVENUE : </strong><strong style="color:#dd4b39;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $revenue->totalrevenueamount;?></strong></span>
|
||||
<span class="description-text"><strong style="font-size:16px;">REVENUE : </strong><strong style="color:#dd4b39;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $revenue->totalrevenuebudget;?></strong></span>
|
||||
|
||||
|
||||
<?php
|
||||
@ -793,14 +822,12 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<br>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($totalimportamount))
|
||||
{
|
||||
foreach($totalimportamount as $import)
|
||||
|
||||
{
|
||||
|
||||
<?php if(!empty($importbudgt))
|
||||
{
|
||||
foreach($importbudgt as $import)
|
||||
{
|
||||
?>
|
||||
<span class="description-text"><strong style="font-size:16px;">IMPORT : </strong><strong style="color:#00a65a;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $import->totalimportamount;?></strong></span>
|
||||
<span class="description-text"><strong style="font-size:16px;">IMPORT : </strong><strong style="color:#00a65a;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $import->totalimportbudget?></strong></span>
|
||||
|
||||
|
||||
<?php
|
||||
@ -811,14 +838,15 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<br>
|
||||
<!-- /.progress-group -->
|
||||
<div class="progress-group">
|
||||
<?php if(!empty($totalcapitalamount))
|
||||
<?php if(!empty($capitalbud))
|
||||
{
|
||||
foreach($totalcapitalamount as $capital)
|
||||
foreach($capitalbud as $capital)
|
||||
|
||||
{
|
||||
|
||||
?>
|
||||
<span class="description-text" ><strong style="font-size:16px;">CAPITAL :  </strong><strong style="color:#f39c12;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $capital->totalcapitalamount;?></strong></span>
|
||||
<span class="description-text"><strong style="font-size:16px;">CAPITAL :  </strong><strong style="color:#f39c12;font-size:18px;"><i class="fa fa-rupee " style="padding: 5px;"></i><?php echo $capital->totalcapitalbudget;?></strong></span>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
@ -1132,7 +1160,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
//alert(arr.total2);
|
||||
var salesChartData = {
|
||||
labels: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
labels: [ "April", "May", "June", "July", "August", "September", "October", "November", "December","January", "February", "March"],
|
||||
|
||||
datasets: [
|
||||
|
||||
@ -1144,8 +1172,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data:serviceValues
|
||||
|
||||
data:[serviceValues[3],serviceValues[4],serviceValues[5],serviceValues[6],serviceValues[7],serviceValues[8],serviceValues[9],serviceValues[10],serviceValues[11],serviceValues[0],serviceValues[1],serviceValues[2]]
|
||||
},
|
||||
|
||||
{
|
||||
@ -1156,7 +1183,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data:revenueValues
|
||||
data:[revenueValues[3],revenueValues[4],revenueValues[5],revenueValues[6],revenueValues[7],revenueValues[8],revenueValues[9],revenueValues[10],revenueValues[11],revenueValues[0],revenueValues[1],revenueValues[2]]
|
||||
},
|
||||
{
|
||||
label: "Food",
|
||||
@ -1166,7 +1193,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1",
|
||||
data:ImportValues
|
||||
data:[ImportValues[3],ImportValues[4],ImportValues[5],ImportValues[6],ImportValues[7],ImportValues[8],ImportValues[9],ImportValues[10],ImportValues[11],ImportValues[0],ImportValues[1],ImportValues[2]]
|
||||
},
|
||||
{
|
||||
label: "Food",
|
||||
@ -1176,7 +1203,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1",
|
||||
data:capitalValues
|
||||
data:[capitalValues[3],capitalValues[4],capitalValues[5],capitalValues[6],capitalValues[7],capitalValues[8],capitalValues[9],capitalValues[10],capitalValues[11],capitalValues[0],capitalValues[1],capitalValues[2]]
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
@ -6,9 +6,10 @@ if(!empty($pending_list))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
@ -101,14 +102,14 @@ if(!empty($pending_list))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment-with-locales.min.js"></script>
|
||||
<script>
|
||||
|
||||
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script>
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
@ -117,15 +118,30 @@ $(document).ready(function() {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export pending details',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
extend: 'excelHtml5',
|
||||
|
||||
footer: 'true',
|
||||
|
||||
//messageTop: $('h3').text(),
|
||||
|
||||
title: 'Report - Pending Request',
|
||||
|
||||
exportOptions: {
|
||||
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
'colvis'
|
||||
|
||||
]
|
||||
|
||||
} );
|
||||
} );
|
||||
//dateFormat: 'dd-mm-yy'
|
||||
|
||||
@ -150,10 +150,10 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red" style="height: 90px;padding:25px;"><i class="fa fa-hourglass-end"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/Viewtoday' ?>" data-toggle="tooltip" title="Click here to View Today's Payments"><?php echo "Today's Payments" ?></a></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/Viewtoday' ?>" data-toggle="tooltip" title="Click here to View Today's Payment"><?php echo "Today's Payment" ?></a></span>
|
||||
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol.number_format($today_in,2,'.',''); ?> </span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($today_ex,2,'.',''); ?> </span>
|
||||
<span class="info-box-text text-center"><strong>Payment :</strong><?php echo $inrsymbol.number_format($today_ex,2,'.',''); ?> </span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -165,9 +165,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua" style="height: 90px;padding:25px;"><i<i class="fa fa-spinner"></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/monthexpenses' ?>" data-toggle="tooltip" title="Click here to View Monthly Payments"><?php echo "Monthly Payments" ?></a></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/monthexpenses' ?>" data-toggle="tooltip" title="Click here to View Monthly Payment"><?php echo "Monthly Payment" ?></a></span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol.number_format($month_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($month_ex,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payment :</strong><?php echo $inrsymbol.number_format($month_ex,2,'.',''); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -178,9 +178,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/yearexpenses' ?>" data-toggle="tooltip" title="Click here to View Yearly Payments"><?php echo "Year Payments" ?></a></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/yearexpenses' ?>" data-toggle="tooltip" title="Click here to View Yearly Payment"><?php echo "Year Payment" ?></a></span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol. number_format($year_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payment :</strong><?php echo $inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -190,9 +190,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-hourglass-1 " style="padding: 5px; background-color:orange;"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/depmenu' ?>" data-toggle="tooltip" title="Click here to View Department payments"><?php echo "Dep Payments" ?></a></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/depmenu' ?>" data-toggle="tooltip" title="Click here to View Department Payment"><?php echo "Dep Payment" ?></a></span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol. number_format($year_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payment :</strong><?php echo $inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -225,7 +225,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
|
||||
|
||||
<CENTER><h3 class="box-title"><strong>Day Wise Payments</strong></h3></CENTER>
|
||||
<CENTER><h3 class="box-title"><strong>Day Wise Payment</strong></h3></CENTER>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
@ -237,16 +237,17 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<th>Received From</th>
|
||||
<th>Paid To</th>
|
||||
<th style="text-align:right;"> Receipt <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th style="text-align:right;"> Payments <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th style="text-align:right;"> Payment <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th>Description</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($cashbook)){
|
||||
<?php
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($cashbook)){
|
||||
foreach($cashbook as $cash)
|
||||
{
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user