report screens
This commit is contained in:
parent
be31b7c493
commit
57b70dbd9f
@ -66,25 +66,36 @@ class report extends BaseController
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
|
||||
|
||||
|
||||
$data['Total']=$this->dahsboard_Model->report_total();
|
||||
|
||||
|
||||
if ($this->input->post('financialyear')) {
|
||||
$ab = $this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['Total']=$this->dahsboard_Model->report_total($fa,$aa);
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$this->loadviews("Report_totalorders",$this->global,$data, NULL);
|
||||
|
||||
}
|
||||
public function ccr()
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
|
||||
|
||||
if ($this->input->post('financialyear')) {
|
||||
$ab = $this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
|
||||
|
||||
$data['ccrpt']=$this->dahsboard_Model->report_ccr();
|
||||
|
||||
|
||||
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['ccrpt']=$this->dahsboard_Model->report_ccr($fa,$aa);
|
||||
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
||||
|
||||
//print_r($data);
|
||||
|
||||
}
|
||||
|
||||
21072
application/logs/log-2017-11-29.php
Normal file
21072
application/logs/log-2017-11-29.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -379,7 +379,7 @@ group by PONO,POType,Dept_Name";
|
||||
|
||||
}
|
||||
|
||||
function report_total(){
|
||||
function report_total($fa,$aa){
|
||||
|
||||
|
||||
$sql="select Dept_Details.DepartmentName As Dept_Name,
|
||||
@ -391,11 +391,13 @@ group by PONO,POType,Dept_Name";
|
||||
SUM(CASE WHEN Mast.Status = 'ST026' THEN 1 ELSE 0 END) AS Released,
|
||||
SUM(CASE WHEN Mast.Status = 'ST027' THEN 1 ELSE 0 END) AS IGR_Created,
|
||||
SUM(CASE WHEN Mast.Status = 'ST044' THEN 1 ELSE 0 END) AS MRIR_Approved,
|
||||
SUM(CASE WHEN Mast.Status = 'ST045' THEN 1 ELSE 0 END) AS MRIR_Rejected
|
||||
SUM(CASE WHEN Mast.Status = 'ST045' THEN 1 ELSE 0 END) AS MRIR_Rejected,
|
||||
SUM(CASE WHEN Mast.Status = 'ST056' THEN 1 ELSE 0 END) AS Special_po
|
||||
from T_PO_Detail Mast
|
||||
JOIN T_Requestion_Master as Req on Req.ReqNo=Mast.ReqNo
|
||||
JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
|
||||
JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
|
||||
where Mast.PODate >= '".$fa."-04-01' and Mast.PODate <= '".$aa."-03-31'
|
||||
group by Dept_Name";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -404,7 +406,7 @@ group by Dept_Name";
|
||||
|
||||
}
|
||||
|
||||
function report_ccr(){
|
||||
function report_ccr($fa,$aa){
|
||||
|
||||
|
||||
$sql="SELECT Cost_Center_Budget.CostCenterCode as Cost_Center_Code, CostCenterName as Cost_Center_Name,group_concat(distinct Dept_Details.DepartmentName) as Dept_Name,Cost_Center_Budget.BudgetType as BudgetType,Cost_Center_Budget.BudgetYear as BudgetYear,
|
||||
@ -438,7 +440,7 @@ JOIN T_CostCenter_Master Cost_Mast on Cost_Center_Budget.CostCenterCode=Cost_Mas
|
||||
JOIN T_CostCenter_Departments CostCentDept on CostCentDept.CostCenterCode=Cost_Mast.CostCenterCode
|
||||
JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode= CostCentDept.DEPCode
|
||||
left JOIN T_Service_Tax st on st.LineItemNo = PO_Line_Item.LineItemNo
|
||||
WHERE Cost_Center_Budget.BudgetType = po.POType
|
||||
WHERE Cost_Center_Budget.BudgetType = po.POType and date(po.CreatedDate) >= '".$fa."-04-01' and date(po.CreatedDate) <= '".$aa."-03-31'
|
||||
group by
|
||||
Cost_Center_Budget.CostCenterCode,Cost_Center_Budget.BudgetYear,Cost_Center_Budget.BudgetType
|
||||
order by Cost_Center_Budget.CostCenterCode";
|
||||
@ -469,7 +471,7 @@ group by po.SupplierID,pl.MaterialCode";
|
||||
function report_MMItem(){
|
||||
|
||||
|
||||
$sql="SELECT MaterialCode,MaterialName,UOM,Category FROM T_MaterialMaster group by MaterialCode";
|
||||
$sql="SELECT MaterialCode,MaterialName,UOM,Category,HSNCODE FROM T_MaterialMaster group by MaterialCode";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -496,14 +498,32 @@ order by monthname(matv.CreatedDate)";
|
||||
function report_purchase($cname,$prod,$fa,$aa,$m,$frm,$t){
|
||||
|
||||
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.CreatedDate,'%d-%m-%Y') as created_date, TIME_FORMAT(pm.CreatedDate,'%l:%i %p') as created_time,mm.MaterialName as material_name,sd.SupplierName as supplier_name,ifnull(sum(pl.Quantity),0) as quantity,ifnull(sum(pl.Rate),0) as rate,round(ifnull(sum(pl.Quantity * pl.Rate),0),2) as value,ifnull(sum(st.After_SGST),0) as sgst,ifnull(sum(st.After_CGST),0) as cgst,ifnull(sum(st.After_IGST),0) as igst,round((ifnull(sum(pl.Quantity * pl.Rate),0) + ifnull(sum(st.After_SGST),0) + ifnull(sum(st.After_CGST),0) + ifnull(sum(st.After_IGST),0)),2) as total
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.CreatedDate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.CreatedDate,'%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,
|
||||
round(ifnull(sum(pl.Quantity * pl.Rate),0),2) as value,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterSGST),sum(st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterCGST),sum(st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterIGST),sum(st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterDiscount),sum(st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterFreightValue),sum(st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterPackagingValue),0),0) as Package,
|
||||
round((ifnull(sum(pl.Quantity * pl.Rate),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterSGST),sum(st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterCGST),sum(st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterIGST),sum(st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterFreightValue),sum(st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterPackagingValue),0),0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(rt.AfterDiscount),sum(st.Afterdiscountval)),0)),2) as total
|
||||
FROM T_PurchaseOrder_Master pm
|
||||
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
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.PONO>'0' ";
|
||||
pm.Status != 'ST030' ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -548,14 +568,31 @@ $sql.="group by pono,material_name,supplier_name";
|
||||
function report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d){
|
||||
|
||||
|
||||
$sql="SELECT sd.SupplierID as sid,mm.MaterialCode as mid,pm.PONO as pono,date_format(pm.CreatedDate,'%d-%m-%Y') as created_date, TIME_FORMAT(pm.CreatedDate,'%l:%i %p') as created_time,mm.MaterialName as material_name,sd.SupplierName as supplier_name,ifnull(sum(pl.Quantity),0) as quantity,ifnull(sum(pl.Rate),0) as rate,round(ifnull(sum(pl.Quantity * pl.Rate),0),2) as value,ifnull(sum(st.After_SGST),0) as sgst,ifnull(sum(st.After_CGST),0) as cgst,ifnull(sum(st.After_IGST),0) as igst,round((ifnull(sum(pl.Quantity * pl.Rate),0) + ifnull(sum(st.After_SGST),0) + ifnull(sum(st.After_CGST),0) + ifnull(sum(st.After_IGST),0)),2) as total
|
||||
$sql="SELECT pm.PONO as pono,date_format(pm.CreatedDate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.CreatedDate,'%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,
|
||||
round(ifnull(sum(pl.Quantity * pl.Rate),0),2) as value,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterSGST),sum(st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterCGST),sum(st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterIGST),sum(st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterDiscount),sum(st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterFreightValue),sum(st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(rt.AfterPackagingValue),0),0) as Package,
|
||||
round((ifnull(sum(pl.Quantity * pl.Rate),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterSGST),sum(st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterCGST),sum(st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterIGST),sum(st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterFreightValue),sum(st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(rt.AfterPackagingValue),0),0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(rt.AfterDiscount),sum(st.Afterdiscountval)),0)),2) as total
|
||||
FROM T_PurchaseOrder_Master pm
|
||||
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
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.PONO>'0' ";
|
||||
left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where pm.Status != 'ST030' ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -636,6 +673,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
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
where pm.Status != 'ST030'
|
||||
group by month(created_date)";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -663,7 +701,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
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
where sd.SupplierName is not null and month(pm.CreatedDate)= ? and year(pm.CreatedDate) = ?
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and month(pm.CreatedDate)= ? and year(pm.CreatedDate) = ?
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql,array($month,$year));
|
||||
return $query->result();
|
||||
@ -676,7 +714,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
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
where sd.SupplierName is not null and date(pm.CreatedDate) >= '$a-04-01' and date(pm.CreatedDate) <= '$b-03-31'
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and date(pm.CreatedDate) >= '$a-04-01' and date(pm.CreatedDate) <= '$b-03-31'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql,array());
|
||||
return $query->result();
|
||||
@ -691,7 +729,7 @@ join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO
|
||||
join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.PONO>'0' ";
|
||||
pm.Status != 'ST030' ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -759,7 +797,8 @@ sum(pl.Quantity * pl.Rate) as vtotal
|
||||
FROM T_PurchaseOrder_Master pm
|
||||
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 ";
|
||||
join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
|
||||
where pm.Status != 'ST030' ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -789,7 +828,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null 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 )
|
||||
@ -803,7 +842,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and
|
||||
month(pm.CreatedDate) = month(current_date())
|
||||
group by supplier_name,material_name
|
||||
) as month on month.supplier_name=year.supplier_name and month.material_name=year.material_name
|
||||
@ -813,7 +852,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and
|
||||
date(pm.CreatedDate) = current_date()
|
||||
group by supplier_name,material_name
|
||||
) as today on today.supplier_name=month.supplier_name and today.material_name=month.material_name
|
||||
@ -829,7 +868,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and month(pm.CreatedDate) = month(current_date()) and sd.SupplierID = '".$sup."' and mm.MaterialCode = '".$mat."'
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and month(pm.CreatedDate) = month(current_date()) and sd.SupplierID = '".$sup."' and mm.MaterialCode = '".$mat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -841,7 +880,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null 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 )
|
||||
@ -853,24 +892,6 @@ group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
function totalcapitalpo ()
|
||||
{
|
||||
$sql="SELECT count(cmast.PONO) as totalcapitalpo 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
|
||||
join T_Status sta on sta.statusCode=req.status
|
||||
where ReqType='CAPITAL'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function report_cum_day($sup=null,$mat=null){
|
||||
|
||||
$sql="SELECT sd.SupplierID as sid,mm.MaterialCode as mid,sd.SupplierName as supplier_name,ifnull(mm.MaterialName,'-') as material_name,IF(pl.Quantity IS NULL or pl.Quantity = '', 0, sum(pl.Quantity)) as tquantity,ifnull(sum(pl.Quantity * pl.Rate),0) as ttotal
|
||||
@ -878,7 +899,7 @@ FROM T_PurchaseOrder_Master pm
|
||||
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 sd.SupplierName is not null and
|
||||
where pm.Status != 'ST030' and sd.SupplierName is not null and
|
||||
date(pm.CreatedDate) = current_date() and sd.SupplierID = '".$sup."' and mm.MaterialCode = '".$mat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
@ -886,6 +907,4 @@ group by supplier_name,material_name";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@ -43,7 +43,7 @@ if(!empty($mmi))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" style="font-size: 12px;" id="cc">
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -51,6 +51,7 @@ if(!empty($mmi))
|
||||
<th>Material Name</th>
|
||||
<th>UOM</th>
|
||||
<th>Category</th>
|
||||
<th>HSNCODE</th>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -66,7 +67,7 @@ if(!empty($mmi))
|
||||
<td><span><?php echo $rel->MaterialName?></span></td>
|
||||
<td><span><?php echo $rel->UOM?></span></td>
|
||||
<td><span><?php echo $rel->Category?></span></td>
|
||||
|
||||
<td><span><?php echo $rel->HSNCODE?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ if(!empty($rel_po))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO NO</th>
|
||||
@ -69,7 +69,7 @@ if(!empty($rel_po))
|
||||
<th>Created Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -1,6 +1,14 @@
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
@ -43,11 +51,11 @@
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Customer'; ?>
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Customer</option>
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
@ -87,13 +95,14 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<br>
|
||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 col-md-offset-10" style="padding:3%;">
|
||||
<div class="col-md-2 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
@ -110,8 +119,8 @@
|
||||
<table class="table table-bordered table-hover" id="tab" style="font-size:10.4px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier</th>
|
||||
<th style="text-align:center;">Product</th>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
<th style="text-align:center;">Material Name</th>
|
||||
<th style="text-align:center;">April</th>
|
||||
<th style="text-align:center;">May</th>
|
||||
<th style="text-align:center;">June</th>
|
||||
@ -357,21 +366,21 @@
|
||||
<table class="table table-bordered table-hover" style="font-size:10.4px;" id="ta">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier</th>
|
||||
<th style="text-align:center;">Product</th>
|
||||
<th style="text-align:center;">April</th>
|
||||
<th style="text-align:center;">May</th>
|
||||
<th style="text-align:center;">June</th>
|
||||
<th style="text-align:center;">July</th>
|
||||
<th style="text-align:center;">August</th>
|
||||
<th style="text-align:center;">September</th>
|
||||
<th style="text-align:center;">October</th>
|
||||
<th style="text-align:center;">November</th>
|
||||
<th style="text-align:center;">December</th>
|
||||
<th style="text-align:center;">January</th>
|
||||
<th style="text-align: center;">February</th>
|
||||
<th style="text-align: center;">March</th>
|
||||
<th style="text-align: center;">Total</th>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
<th style="text-align:center;">Material Name</th>
|
||||
<th style="text-align:center;">April (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">May (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">June (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">July (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">August (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">September (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">October (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">November (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">December (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center;">January (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align: center;">February (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align: center;">March (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align: center;">Total (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -393,7 +402,9 @@
|
||||
$tot = 0;
|
||||
foreach ($spurchse as $result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;"><a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $result->sid;?>&ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>"><?php echo $result->supplier_name;?></a></td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->supplier_name)) { echo $result->supplier_name; } else {echo "-";}
|
||||
?></td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
?></td>
|
||||
|
||||
@ -35,6 +35,10 @@ if(!empty($ccrpt))
|
||||
padding: 3%;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
@ -44,23 +48,41 @@ if(!empty($ccrpt))
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cost Center</b></p></h3></center>
|
||||
<div class="col-md-3" style="margin-left: -30px;">
|
||||
<div class="input-group input-daterange input">
|
||||
<div class="input-group-addon"><b>Budget Year:</b></div>
|
||||
<select id="mySelect" >
|
||||
<option value="" >Select Year</option>
|
||||
<option value="2017 - 2018">2017 - 2018</option>
|
||||
<option value="2018 - 2019">2018 - 2019</option>
|
||||
<option value="2019 - 2020">2019 - 2020</option>
|
||||
</select>
|
||||
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px">
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Cost Center Code</th>
|
||||
@ -68,8 +90,8 @@ if(!empty($ccrpt))
|
||||
<th>Department</th>
|
||||
<th>Budget Type</th>
|
||||
<th>Budget Year</th>
|
||||
<th>Utilized Amount</th>
|
||||
<th>Balance Amount</th>
|
||||
<th>Utilized Amount ( <i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Balance Amount ( <i class="fa fa-rupee " ></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -78,16 +100,14 @@ if(!empty($ccrpt))
|
||||
foreach($ccrpt as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->Cost_Center_Code?></span></td>
|
||||
<td><span><?php echo $rel->Cost_Center_Name?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td><span><?php echo $rel->BudgetType?></span></td>
|
||||
<td><span><?php echo $rel->BudgetYear?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Util_Amount?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Avlbl_Amt?></span></td>
|
||||
|
||||
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td><span><?php echo $rel->BudgetType?></span></td>
|
||||
<td><span><?php echo $rel->BudgetYear?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Util_Amount?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Avlbl_Amt?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -151,43 +171,4 @@ $(document).ready(function() {
|
||||
|
||||
|
||||
</script>
|
||||
<!--<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#cc').DataTable
|
||||
({
|
||||
paging: true,
|
||||
info: true
|
||||
|
||||
});
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
|
||||
----------
|
||||
$(document).ready(function() {
|
||||
$('#cc').DataTable( {
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
</script>-->
|
||||
|
||||
|
||||
|
||||
|
||||
@ -54,19 +54,19 @@ if(!empty($mms))
|
||||
}
|
||||
$ab=$yearl;
|
||||
?>
|
||||
<th style="text-align:center" rowspan="2">Supplier</th>
|
||||
<th style="text-align:center" rowspan="2">Product</th>
|
||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||
<th style="text-align:center" rowspan="2">Material Name</th>
|
||||
<th style="text-align:center" colspan="2"><?php echo date('d-m-Y'); ?></th>
|
||||
<th style="text-align:center" colspan="2"><?php echo date('M-Y'); ?></th>
|
||||
<th style="text-align:center" colspan="2"><?php echo $ab; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -47,13 +47,13 @@ if(!empty($mms))
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th style="text-align:center" rowspan="2">Supplier</th>
|
||||
<th style="text-align:center" rowspan="2">Product</th>
|
||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||
<th style="text-align:center" rowspan="2">Material Name</th>
|
||||
<th style="text-align:center" colspan="2"><?php echo date('d-m-Y'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -47,13 +47,13 @@ if(!empty($mms))
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th style="text-align:center" rowspan="2">Supplier</th>
|
||||
<th style="text-align:center" rowspan="2">Product</th>
|
||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||
<th style="text-align:center" rowspan="2">Material Name</th>
|
||||
<th style="text-align:center" colspan="2"><?php echo date('M-Y'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -54,13 +54,13 @@ if(!empty($mms))
|
||||
}
|
||||
$ab=$yearl;
|
||||
?>
|
||||
<th style="text-align:center" rowspan="2">Supplier</th>
|
||||
<th style="text-align:center" rowspan="2">Product</th>
|
||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||
<th style="text-align:center" rowspan="2">Material Name</th>
|
||||
<th style="text-align:center" colspan="2"><?php echo $ab; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Value ( <i class="fa fa-rupee " ></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -45,10 +45,10 @@ if(!empty($mms))
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier</th>
|
||||
<th style="text-align:center">Product</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value</th>
|
||||
<th style="text-align:center">Total Value ( <i class="fa fa-rupee " ></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -70,7 +70,7 @@ if(!empty($mms))
|
||||
<td><span><?php echo $rel->material_name;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tr3= $tr3 + round($rel->quantity);
|
||||
echo $rel->quantity;?></span></td>
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tr4= $tr4 + $rel->total;
|
||||
echo $rel->total;?></span></td>
|
||||
|
||||
@ -60,7 +60,7 @@ if(!empty($open_po))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO NO</th>
|
||||
@ -68,7 +68,7 @@ if(!empty($open_po))
|
||||
<th>Created Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -6,6 +6,15 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
@ -48,11 +57,11 @@ if(!empty($mms))
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Customer'; ?>
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Customer</option>
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
@ -68,11 +77,11 @@ if(!empty($mms))
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo'Product'; ?>
|
||||
<?php echo'Material'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Product</option>
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
|
||||
|
||||
@ -91,7 +100,7 @@ if(!empty($mms))
|
||||
<br><br><br><br>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
@ -180,15 +189,19 @@ if(!empty($mms))
|
||||
<th style="text-align:center">PO NO</th>
|
||||
<th style="text-align:center">Date</th>
|
||||
<th style="text-align:center">Time</th>
|
||||
<th style="text-align:center">Material</th>
|
||||
<th style="text-align:center">Supplier</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Rate</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">SGST</th>
|
||||
<th style="text-align:center">CGST</th>
|
||||
<th style="text-align:center">IGST</th>
|
||||
<th style="text-align:center">Total</th>
|
||||
<th style="text-align:center">UOM</th>
|
||||
<th style="text-align:center">Rate (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Value (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">SGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">CGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">IGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Discount (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Freight (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Package (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -200,6 +213,9 @@ if(!empty($mms))
|
||||
$tot_CGST = 0;
|
||||
$tot_SCGT = 0.0000;
|
||||
$tot_ICGT = 0;
|
||||
$tot_dis = 0;
|
||||
$tot_frg = 0;
|
||||
$tot_pac = 0;
|
||||
$tot_tot = 0;
|
||||
|
||||
foreach($purchase as $rel)
|
||||
@ -215,23 +231,34 @@ if(!empty($mms))
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_rate= $tot_rate + round($rel->rate);
|
||||
echo round($rel->rate);?></span></td>
|
||||
echo $rel->UOM;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + round($rel->value);
|
||||
echo round($rel->value);?></span></td>
|
||||
$tot_rate= $tot_rate + $rel->rate;
|
||||
echo $rel->rate;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_SCGT= $tot_SCGT + round($rel->sgst);
|
||||
echo round($rel->sgst);?></span></td>
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo $rel->value;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_CGST= $tot_CGST + round($rel->cgst);
|
||||
echo round($rel->cgst);?></span></td>
|
||||
$tot_SCGT= $tot_SCGT + $rel->sgst;
|
||||
echo $rel->sgst;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_ICGT= $tot_ICGT + round($rel->igst);
|
||||
echo round($rel->igst);?></span></td>
|
||||
$tot_CGST= $tot_CGST + $rel->cgst;
|
||||
echo $rel->cgst;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_tot= $tot_tot + round($rel->total);
|
||||
echo round($rel->total);?></span></td>
|
||||
$tot_ICGT= $tot_ICGT + $rel->igst;
|
||||
echo $rel->igst;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_dis= $tot_dis + $rel->discount;
|
||||
echo $rel->discount;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_frg= $tot_frg + $rel->freight;
|
||||
echo $rel->freight;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_pac= $tot_pac + $rel->Package;
|
||||
echo $rel->Package;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_tot= $tot_tot + $rel->total;
|
||||
echo $rel->total;?></span></td>
|
||||
|
||||
|
||||
|
||||
@ -265,6 +292,15 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount"><strong>
|
||||
<?php
|
||||
{
|
||||
//echo format_currency($tot_rate,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
@ -307,6 +343,36 @@ if(!empty($mms))
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_dis;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_frg;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_pac;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
|
||||
@ -6,6 +6,15 @@ if(!empty($mms))
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
@ -48,11 +57,11 @@ if(!empty($mms))
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Customer'; ?>
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Customer</option>
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
@ -70,7 +79,7 @@ if(!empty($mms))
|
||||
<br><br><br><br>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
@ -156,11 +165,11 @@ if(!empty($mms))
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier</th>
|
||||
<th style="text-align:center">Count</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value</th>
|
||||
<th style="text-align:center">Total</th>
|
||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -188,11 +197,11 @@ if(!empty($mms))
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + round($rel->value);
|
||||
echo round($rel->value);?></span></td>
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo $rel->value;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_tot= $tot_tot + round($rel->total);
|
||||
echo round($rel->total);?></span></td>
|
||||
$tot_tot= $tot_tot + $rel->total;
|
||||
echo $rel->total;?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -37,7 +37,36 @@ if(!empty($Total))
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Total Orders</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -49,14 +78,19 @@ if(!empty($Total))
|
||||
|
||||
<th>Department</th>
|
||||
<th>PO Created</th>
|
||||
<th>Special PO</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Approved</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Service completed</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>MRIR Rejected</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>Service completed</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
@ -70,17 +104,16 @@ if(!empty($Total))
|
||||
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php echo $rel->PO_Created?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Special_po?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Approver_Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Approved?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Releaser_Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Approver_Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Service_completed?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Released?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Released?></span></td>
|
||||
<td align="right"><span><?php echo $rel->IGR_Created?></span></td>
|
||||
<td align="right"><span><?php echo $rel->MRIR_Approved?></span></td>
|
||||
<td align="right"><span><?php echo $rel->MRIR_Rejected?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<td align="right"><span><?php echo $rel->MRIR_Approved?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Service_completed?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
@ -49,8 +49,6 @@ if(!empty($mms))
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
@ -83,7 +81,7 @@ if(!empty($mms))
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value</th>
|
||||
<th style="text-align:center">Total Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -91,7 +89,7 @@ if(!empty($mms))
|
||||
<tbody>
|
||||
<?php
|
||||
$tr3=0;
|
||||
$tr4=0;
|
||||
$tr4=00;
|
||||
foreach($year as $rel)
|
||||
{
|
||||
?>
|
||||
|
||||
@ -45,10 +45,10 @@ if(!empty($mms))
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier</th>
|
||||
<th style="text-align:center">Product</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value</th>
|
||||
<th style="text-align:center">Total Value (in <i class="fa fa-rupee " style="padding: 5px;"></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
@ -60,7 +60,7 @@ if(!empty($pending_list))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requistion Date</th>
|
||||
@ -106,7 +106,7 @@ if(!empty($pending_list))
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user