consolidate links
This commit is contained in:
parent
0f353b2a3f
commit
332f6027c3
@ -39,9 +39,6 @@ class report extends BaseController
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['pending_list']=$this->dahsboard_Model->req_list($fa,$aa,$m,$frm,$t,$agf,$agt);
|
||||
//print_r($data);
|
||||
|
||||
|
||||
|
||||
}
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
@ -260,7 +257,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$prod = $this->input->post('item_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
@ -274,7 +271,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->report_purchase($cname,$prod,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||
@ -426,7 +426,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -439,6 +439,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->report_supplier($cname,$fa,$aa,$m,$frm,$t);
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
@ -456,7 +460,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -466,7 +470,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->report_consolidate($cname,$fa,$aa);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
@ -549,7 +556,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$prod = $this->input->post('item_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
@ -564,7 +571,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t,$cat);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||
@ -688,7 +698,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -701,7 +711,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->ireport_supplier($cname,$fa,$aa,$m,$frm,$t);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
@ -722,7 +735,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -732,7 +745,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->ireport_consolidate($cname,$fa,$aa);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
||||
@ -742,6 +758,61 @@ class report extends BaseController
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function i_consolidate_month()
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
$sid=$this->input->get('sid');
|
||||
$mid = $this->input->get('mid');
|
||||
//$mat = $this->input->get('mid');
|
||||
$m = $this->input->get('m');
|
||||
$ab=$this->input->get('ab');
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
//print_r($prod);
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_month_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function i_consolidate_year()
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
$sid=$this->input->get('sid');
|
||||
$mid = $this->input->get('mid');
|
||||
//$mat = $this->input->get('mid');
|
||||
$ab=$this->input->get('ab');
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
//print_r($prod);
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
||||
// print_r( $data['spurchse']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_year_inward",$this->global,$data, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
public function icumulative()
|
||||
{
|
||||
@ -869,7 +940,7 @@ class report extends BaseController
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Siddharth : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
if ($this->input->post('btn_submit')) {
|
||||
$cname = $this->input->post('client_name');
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
@ -879,7 +950,10 @@ class report extends BaseController
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse']=$this->dahsboard_Model->rawi_report_consolidate($cname,$fa,$aa);
|
||||
|
||||
}
|
||||
$data['material']=$this->dahsboard_Model->category();
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
||||
|
||||
@ -160,7 +160,13 @@ $sql= "select * FROM T_Emp_Pay_Data where EmpID = ?;";
|
||||
function totalpurchaseorder(){
|
||||
|
||||
|
||||
$sql="select count(PONO) as totalpurchaseorder from T_PurchaseOrder_Master where Status != 'ST030'";
|
||||
$sql="select count(PONO) as totalpurchaseorder from T_PurchaseOrder_Master pm where Status != 'ST030'
|
||||
and case
|
||||
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.PODate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) <= 3 )
|
||||
end";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -168,7 +174,13 @@ $sql= "select * FROM T_Emp_Pay_Data where EmpID = ?;";
|
||||
function totalordervalue(){
|
||||
|
||||
|
||||
$sql="select sum(totalordervalue) as totalordervalue from T_PurchaseOrder_Master where Status != 'ST030'";
|
||||
$sql="select sum(totalordervalue) as totalordervalue from T_PurchaseOrder_Master pm where Status != 'ST030'
|
||||
and case
|
||||
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.PODate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) <= 3 )
|
||||
end";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -176,7 +188,13 @@ $sql= "select * FROM T_Emp_Pay_Data where EmpID = ?;";
|
||||
function pendingpo(){
|
||||
|
||||
|
||||
$sql="select count(PONO) as pending from T_PurchaseOrder_Master where status='ST020' and Status != 'ST030'";
|
||||
$sql="select count(PONO) as pending from T_PurchaseOrder_Master pm where status='ST020' and Status != 'ST030'
|
||||
and case
|
||||
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.PODate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.PODate) >= 4 ) or ( YEAR(pm.PODate) = YEAR(CURRENT_DATE) and MONTH(pm.PODate) <= 3 )
|
||||
end";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -184,7 +202,13 @@ $sql= "select * FROM T_Emp_Pay_Data where EmpID = ?;";
|
||||
function req_pending(){
|
||||
|
||||
|
||||
$sql="SELECT count(Status) as TOTAL_PENDING_REQUESTS FROM T_Requestion_Master where Status = 'ST002';";
|
||||
$sql="SELECT count(Status) as TOTAL_PENDING_REQUESTS FROM T_Requestion_Master pm where Status = 'ST002'
|
||||
and case
|
||||
when (month(pm.ReqDate) >=4) then
|
||||
(YEAR(pm.ReqDate) = YEAR(CURRENT_DATE) and MONTH(pm.ReqDate) >= 4 ) or ( YEAR(pm.ReqDate) = YEAR(CURRENT_DATE)+1 and MONTH(pm.ReqDate) <= 3 )
|
||||
else
|
||||
(YEAR(pm.ReqDate) = YEAR(CURRENT_DATE)-1 and MONTH(pm.ReqDate) >= 4 ) or ( YEAR(pm.ReqDate) = YEAR(CURRENT_DATE) and MONTH(pm.ReqDate) <= 3 )
|
||||
end";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -1249,7 +1273,7 @@ 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.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -1328,7 +1352,7 @@ 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.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -1400,7 +1424,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' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master)
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master)
|
||||
group by month(created_date)";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -1419,7 +1443,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' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and sd.SupplierName is not null and pm.PONO in (select PONO from T_IGR_Master) and month(pm.PODate)= ? and year(pm.PODate) = ?
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and sd.SupplierName is not null and pm.PONO in (select PONO from T_IGR_Master) and month(pm.PODate)= ? and year(pm.PODate) = ?
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql,array($month,$year));
|
||||
return $query->result();
|
||||
@ -1432,7 +1456,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' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and sd.SupplierName is not null and date(pm.PODate) >= '$a-04-01' and date(pm.PODate) <= '$b-03-31'
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and sd.SupplierName is not null and date(pm.PODate) >= '$a-04-01' and date(pm.PODate) <= '$b-03-31'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql,array());
|
||||
return $query->result();
|
||||
@ -1482,7 +1506,7 @@ 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.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -1551,7 +1575,7 @@ 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
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -1573,6 +1597,48 @@ if ($cname!= ''){
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function i_consolidate_month($m=null,$sid=null,$mid=null,$fa=null,$aa=null){
|
||||
|
||||
$sql="select mm.Category as category,sd.SupplierID as sid,sd.SupplierName as supplier_name,mm.MaterialCode as mid,mm.MaterialName as material_name,
|
||||
sum(pl.Quantity) as quantity,
|
||||
sum(pl.Quantity * pl.Rate) as total
|
||||
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
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
monthname(pm.PODate) = '".$m."' and sd.SupplierID = '".$sid."' and mm.MaterialCode = '".$mid."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
$sql.= "group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
//echo $sql;
|
||||
return $query->result();
|
||||
}
|
||||
function i_consolidate_year($sid=null,$mid=null,$fa=null,$aa=null){
|
||||
|
||||
$sql="select mm.Category as category,sd.SupplierID as sid,sd.SupplierName as supplier_name,mm.MaterialCode as mid,mm.MaterialName as material_name,
|
||||
sum(pl.Quantity) as quantity,
|
||||
sum(pl.Quantity * pl.Rate) as total
|
||||
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
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
sd.SupplierID = '".$sid."' and mm.MaterialCode = '".$mid."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
$sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
$sql.= "group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
//echo $sql;
|
||||
return $query->result();
|
||||
}
|
||||
function ireport_cumulative(){
|
||||
|
||||
$sql="SELECT year.sid as sid,year.mid as mid,year.supplier_name as supplier_name,year.material_name as material_name,year.quantity as quantity,year.total as total,month.mquantity as mquantity,month.mtotal as mtotal,today.tquantity as tquantity,today.ttotal as ttotal
|
||||
@ -1581,7 +1647,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
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 )
|
||||
@ -1595,7 +1661,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
month(pm.PODate) = 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
|
||||
@ -1605,7 +1671,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.PODate) = current_date()
|
||||
group by supplier_name,material_name
|
||||
) as today on today.supplier_name=month.supplier_name and today.material_name=month.material_name
|
||||
@ -1621,7 +1687,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and month(pm.PODate) = month(current_date()) and sd.SupplierID = '".$sup."' and mm.MaterialCode = '".$mat."'
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and month(pm.PODate) = 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();
|
||||
@ -1633,7 +1699,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
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 )
|
||||
@ -1652,7 +1718,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.PODate) = current_date() and sd.SupplierID = '".$sup."' and mm.MaterialCode = '".$mat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
@ -1666,7 +1732,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
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 )
|
||||
@ -1680,7 +1746,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
month(pm.PODate) = month(current_date())
|
||||
group by category
|
||||
) as month on month.category=year.category
|
||||
@ -1690,7 +1756,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.PODate) = current_date()
|
||||
group by category
|
||||
) as today on today.category=month.category
|
||||
@ -1705,7 +1771,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
case
|
||||
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 )
|
||||
@ -1725,7 +1791,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
month(pm.PODate) = month(current_date()) and mm.Category = '".$cat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
@ -1738,7 +1804,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 pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
date(pm.PODate) = current_date() and mm.Category = '".$cat."'
|
||||
group by supplier_name,material_name";
|
||||
$query = $this->db->query($sql);
|
||||
@ -1779,7 +1845,7 @@ 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
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) ";
|
||||
|
||||
if ($cname!= ''){
|
||||
|
||||
@ -1810,7 +1876,7 @@ 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
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
monthname(pm.PODate) = '".$m."' and mm.Category = '".$cat."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
@ -1831,7 +1897,7 @@ 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
|
||||
where pm.Status != 'ST030' and pm.Status = 'ST056' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and
|
||||
mm.Category = '".$cat."' ";
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
|
||||
@ -154,6 +154,7 @@
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -371,6 +372,11 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@ -401,6 +407,7 @@
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -416,9 +423,7 @@
|
||||
$tot = 0;
|
||||
foreach ($spurchse as $result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->supplier_name)) { echo $result->supplier_name; } else {echo "-";}
|
||||
?></td>
|
||||
<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->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
?></td>
|
||||
@ -617,6 +622,12 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
@ -151,7 +151,8 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -176,57 +177,69 @@
|
||||
?></td>
|
||||
<td style="text-align:right;"><?php
|
||||
$apr= $apr + round($result->April);
|
||||
if(!empty($result->April)) { echo round($result->April); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'April';?>"><?php echo round($result->April);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$may= $may + round($result->May);
|
||||
if(!empty($result->May)) { echo round($result->May); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'May';?>"><?php echo round($result->May);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jun= $jun + round($result->June);
|
||||
if(!empty($result->June)) { echo round($result->June); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'June';?>"><?php echo round($result->June);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jul= $jul + round($result->July);
|
||||
if(!empty($result->July)) { echo round($result->July); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'July';?>"><?php echo round($result->July);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$aug= $aug + round($result->August);
|
||||
if(!empty($result->August)) { echo round($result->August); } else {echo "-";}
|
||||
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'August';?>"><?php echo round($result->August);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$sep= $sep + $result->September;
|
||||
if(!empty($result->September)) { echo round($result->September); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'September';?>"><?php echo round($result->September);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$oct= $oct + round($result->October);
|
||||
if(!empty($result->October)) { echo round($result->October); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'October';?>"><?php echo round($result->October);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$nov= $nov + round($result->November);
|
||||
if(!empty($result->November)) { echo round($result->November); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'November';?>"><?php echo round($result->November);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$dec= $dec + round($result->December);
|
||||
if(!empty($result->December)) { echo round($result->December); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'December';?>"><?php echo round($result->December);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jan= $jan + round($result->January);
|
||||
if(!empty($result->January)) { echo round($result->January); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'January';?>"><?php echo round($result->January);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$feb= $feb + round($result->February);
|
||||
if(!empty($result->February)) { echo round($result->February); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'February';?>"><?php echo round($result->February);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$mar= $mar + round($result->March);
|
||||
if(!empty($result->March)) { echo round($result->March); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'March';?>"><?php echo round($result->March);?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$tot= $tot + round($result->qtotal);
|
||||
if(!empty($result->qtotal)) { echo round($result->qtotal); } else {echo "-";}
|
||||
?></td>
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_year?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>"><?php echo round($result->qtotal);?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -369,13 +382,19 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="box-body" id="b" style="display:none">
|
||||
|
||||
|
||||
<table class="table table-bordered table-hover" style="font-size:14px;" id="ta">
|
||||
<table class="table table-bordered table-hover" style="font-size:13px!important;" id="ta">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
@ -399,6 +418,7 @@
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -414,65 +434,77 @@
|
||||
$tot = 0;
|
||||
foreach ($spurchse as $result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->supplier_name)) { echo $result->supplier_name; } else {echo "-";}
|
||||
?></td>
|
||||
<td style="text-align:left;">
|
||||
<a href="<?= base_url() ?>report/ilink_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->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
?></td>
|
||||
<td style="text-align:right;"><?php
|
||||
$apr= $apr + round($result->vApril);
|
||||
if(!empty($result->vApril)) { echo number_format($result->vApril,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$apr= $apr + number_format($result->vApril,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'April';?>"><?php echo number_format($result->vApril,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$may= $may + round($result->vMay);
|
||||
if(!empty($result->vMay)) { echo number_format($result->vMay,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$may= $may + number_format($result->vMay,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'May';?>"><?php echo number_format($result->vMay,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jun= $jun + round($result->vJune);
|
||||
if(!empty($result->vJune)) { echo number_format($result->vJune,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$jun= $jun + number_format($result->vJune,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'June';?>"><?php echo number_format($result->vJune,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jul= $jul + round($result->vJuly);
|
||||
if(!empty($result->vJuly)) { echo number_format($result->vJuly,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$jul= $jul + number_format($result->vJuly,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'July';?>"><?php echo number_format($result->vJuly,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$aug= $aug + round($result->vAugust);
|
||||
if(!empty($result->vAugust)) { echo number_format($result->vAugust,2,'.',''); } else {echo "-";}
|
||||
|
||||
?></td>
|
||||
$aug= $aug + number_format($result->vAugust,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'August';?>"><?php echo number_format($result->vAugust,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$sep= $sep + $result->vSeptember;
|
||||
if(!empty($result->vSeptember)) { echo number_format($result->vSeptember,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$sep= $sep + number_format($result->vSeptember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'September';?>"><?php echo number_format($result->vSeptember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$oct= $oct + round($result->vOctober);
|
||||
if(!empty($result->vOctober)) { echo number_format($result->vOctober,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$oct= $oct + number_format($result->vOctober,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'October';?>"><?php echo number_format($result->vOctober,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$nov= $nov + round($result->vNovember);
|
||||
if(!empty($result->vNovember)) { echo number_format($result->vNovember,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$nov= $nov + number_format($result->vNovember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'November';?>"><?php echo number_format($result->vNovember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$dec= $dec + round($result->vDecember);
|
||||
if(!empty($result->vDecember)) { echo number_format($result->vDecember,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$dec= $dec + number_format($result->vDecember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'December';?>"><?php echo number_format($result->vDecember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$jan= $jan + round($result->vJanuary);
|
||||
if(!empty($result->vJanuary)) { echo number_format($result->vJanuary,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$jan= $jan + number_format($result->vJanuary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'January';?>"><?php echo number_format($result->vJanuary,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$feb= $feb + round($result->vFebruary);
|
||||
if(!empty($result->vFebruary)) { echo number_format($result->vFebruary,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$feb= $feb + number_format($result->vFebruary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'February';?>"><?php echo number_format($result->vFebruary,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$mar= $mar + round($result->vMarch);
|
||||
if(!empty($result->vMarch)) { echo number_format($result->vMarch,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$mar= $mar + number_format($result->vMarch,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_month?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>&m=<?php echo 'March';?>"><?php echo number_format($result->vMarch,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php
|
||||
$tot= $tot + round($result->vtotal);
|
||||
if(!empty($result->vtotal)) { echo number_format($result->vtotal,2,'.',''); } else {echo "-";}
|
||||
?></td>
|
||||
$tot= $tot + number_format($result->vtotal,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/i_consolidate_year?ab=<?php echo $ab;?>&mid=<?php echo $result->mid;?>&sid=<?php echo $result->sid;?>"><?php echo number_format($result->vtotal,2,'.','');?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -615,6 +647,12 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
199
application/views/Report_consolidate_month_inward.php
Normal file
199
application/views/Report_consolidate_month_inward.php
Normal file
@ -0,0 +1,199 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<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;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- 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-Inward(<?php
|
||||
$m = $this->input->get('m');
|
||||
echo $m;
|
||||
?>)</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<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 (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(!empty($spurchse)){
|
||||
$tqt=0;
|
||||
$tvt=0;
|
||||
$ab=$this->input->get('ab');
|
||||
$month=date('F');
|
||||
$m = $this->input->get('m');
|
||||
//echo $month;
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span>
|
||||
<a href="<?= base_url() ?>report/ilink_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&mid=<?php echo $rel->mid;?>&m=<?php echo $m;?>"><?php echo $rel->supplier_name;?> </a>
|
||||
</span></td>
|
||||
<td><span><?php echo $rel->material_name;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tqt= $tqt + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tvt= $tvt + number_format($rel->total,2,'.','');
|
||||
echo number_format($rel->total,2,'.','');?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo '';
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tqt;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<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
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"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: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'REPORT-Consolidate Category-Wise',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -151,6 +151,7 @@
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -384,13 +385,19 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="box-body" id="b" style="display:none">
|
||||
|
||||
|
||||
<table class="table table-bordered table-hover" style="font-size:14px;" id="ta">
|
||||
<table class="table table-bordered table-hover" style="font-size:13px!important;" id="ta">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Category</th>
|
||||
@ -413,6 +420,7 @@
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$apr = 0;
|
||||
$may = 0;
|
||||
$jun = 0;
|
||||
@ -433,81 +441,81 @@
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$apr= $apr + round($result->vApril);
|
||||
$apr= $apr + number_format($result->vApril,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'April';?>"><?php echo round($result->vApril);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'April';?>"><?php echo number_format($result->vApril,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$may= $may + round($result->vMay);
|
||||
$may= $may + number_format($result->vMay,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'May';?>"><?php echo round($result->vMay);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'May';?>"><?php echo number_format($result->vMay,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$jun= $jun + round($result->vJune);
|
||||
$jun= $jun + number_format($result->vJune,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'June';?>"><?php echo round($result->vJune);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'June';?>"><?php echo number_format($result->vJune,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$jul= $jul + round($result->vJuly);
|
||||
$jul= $jul + number_format($result->vJuly,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'July';?>"><?php echo round($result->vJuly);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'July';?>"><?php echo number_format($result->vJuly,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$aug= $aug + round($result->vAugust);
|
||||
$aug= $aug + number_format($result->vAugust,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'August';?>"><?php echo round($result->vAugust);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'August';?>"><?php echo number_format($result->vAugust,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$sep= $sep + $result->vSeptember;
|
||||
$sep= $sep + number_format($result->vSeptember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'September';?>"><?php echo round($result->vSeptember);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'September';?>"><?php echo number_format($result->vSeptember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$oct= $oct + round($result->vOctober);
|
||||
$oct= $oct + number_format($result->vOctober,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'October';?>"><?php echo round($result->vOctober);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'October';?>"><?php echo number_format($result->vOctober,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$nov= $nov + round($result->vNovember);
|
||||
$nov= $nov + number_format($result->vNovember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'November';?>"><?php echo round($result->vNovember);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'November';?>"><?php echo number_format($result->vNovember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$dec= $dec + round($result->vDecember);
|
||||
$dec= $dec + number_format($result->vDecember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'December';?>"><?php echo round($result->vDecember);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'December';?>"><?php echo number_format($result->vDecember,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$jan= $jan + round($result->vJanuary);
|
||||
$jan= $jan + number_format($result->vJanuary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'January';?>"><?php echo round($result->vJanuary);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'January';?>"><?php echo number_format($result->vJanuary,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$feb= $feb + round($result->vFebruary);
|
||||
$feb= $feb + number_format($result->vFebruary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'February';?>"><?php echo round($result->vFebruary);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'February';?>"><?php echo number_format($result->vFebruary,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$mar= $mar + round($result->vMarch);
|
||||
$mar= $mar + number_format($result->vMarch,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'March';?>"><?php echo round($result->vMarch);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'March';?>"><?php echo number_format($result->vMarch,2,'.','');?> </a>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<?php
|
||||
$tot= $tot + round($result->vtotal);
|
||||
$tot= $tot + number_format($result->vtotal,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_year?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>"><?php echo round($result->vtotal);?> </a>
|
||||
<a href="<?= base_url() ?>report/rawi_consolidate_year?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>"><?php echo number_format($result->vtotal,2,'.','');?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -644,6 +652,12 @@
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
201
application/views/Report_consolidate_year_inward.php
Normal file
201
application/views/Report_consolidate_year_inward.php
Normal file
@ -0,0 +1,201 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<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;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- 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-Inward<?php
|
||||
if ($this->input->get('ab')){
|
||||
$ab = $this->input->get('ab');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
?></b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<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 (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(!empty($spurchse)){
|
||||
$tqt=0;
|
||||
$tvt=0;
|
||||
$ab=$this->input->get('ab');
|
||||
$month=date('F');
|
||||
$m = $this->input->get('m');
|
||||
//echo $month;
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span>
|
||||
<a href="<?= base_url() ?>report/ilink_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&mid=<?php echo $rel->mid;?>"><?php echo $rel->supplier_name;?> </a>
|
||||
</span></td>
|
||||
<td><span><?php echo $rel->material_name;?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tqt= $tqt + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tvt= $tvt + number_format($rel->total,2,'.','');
|
||||
echo number_format($rel->total,2,'.','');?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo '';
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tqt;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<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
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"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: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'REPORT-Consolidate Category-Wise',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ if(!empty($mms))
|
||||
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;
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
|
||||
?>
|
||||
@ -216,7 +216,7 @@ if(!empty($mms))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" width="100%"id="cc" style="font-size:11px !important;">
|
||||
<table class="table table-bordered table-hover" width="100%"id="cc" style="font-size:10px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO NO</th>
|
||||
|
||||
@ -74,7 +74,7 @@ if(!empty($mms))
|
||||
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;
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
@ -213,7 +213,7 @@ if(!empty($mms))
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:11px !important;">
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:10px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO NO</th>
|
||||
|
||||
@ -25,6 +25,10 @@ if(!empty($Total))
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user