revenue po zero rate accept, dash board
This commit is contained in:
parent
51a8396928
commit
93cd7cd232
@ -66,7 +66,18 @@ class user extends BaseController
|
|||||||
$data['getTotalServicePoCount'] = $this->dahsboard_Model->getTotalServicePoCount();
|
$data['getTotalServicePoCount'] = $this->dahsboard_Model->getTotalServicePoCount();
|
||||||
$data['getTotalimportPoCount'] = $this->dahsboard_Model->getTotalimportPoCount();
|
$data['getTotalimportPoCount'] = $this->dahsboard_Model->getTotalimportPoCount();
|
||||||
$data['getTotalcapitalPoCount'] = $this->dahsboard_Model->getTotalcapitalPoCount();
|
$data['getTotalcapitalPoCount'] = $this->dahsboard_Model->getTotalcapitalPoCount();
|
||||||
$data['getTotalrevenuePoCount'] = $this->dahsboard_Model->getTotalrevenuePoCount();
|
$data['getTotalrevenuePoCount'] = $this->dahsboard_Model->getTotalrevenuePoCount();
|
||||||
|
|
||||||
|
|
||||||
|
//dashboard pie chart
|
||||||
|
$data['importbudgt'] = $this->dahsboard_Model->importbudgt();
|
||||||
|
$data['importbal'] = $this->dahsboard_Model->importbal();
|
||||||
|
$data['servicebudgt'] = $this->dahsboard_Model->servicebudgt();
|
||||||
|
$data['servicebal'] = $this->dahsboard_Model->servicebal();
|
||||||
|
$data['revenuebudgt'] = $this->dahsboard_Model->revenuebudgt();
|
||||||
|
$data['revenuebal'] = $this->dahsboard_Model->revenuebal();
|
||||||
|
$data['capitalbud'] = $this->dahsboard_Model->capitalbud();
|
||||||
|
$data['capitalbal'] = $this->dahsboard_Model->capitalbal();
|
||||||
|
|
||||||
|
|
||||||
$this->loadViews("dashboard", $this->global, $data , NULL);
|
$this->loadViews("dashboard", $this->global, $data , NULL);
|
||||||
|
|||||||
@ -853,6 +853,24 @@ group by supplier_name,material_name";
|
|||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
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){
|
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
|
$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
|
||||||
@ -868,4 +886,6 @@ group by supplier_name,material_name";
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -7950,12 +7950,12 @@ $('.EditRevenue').click(function(){
|
|||||||
$('#EditRevenueRate').focus();
|
$('#EditRevenueRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRevenueRate').val() == 0)
|
// else if($('#EditRevenueRate').val() == 0)
|
||||||
{
|
// {
|
||||||
alert('Please Enter the Valid Rate of the Item');
|
// alert('Please Enter the Valid Rate of the Item');
|
||||||
$('#EditRevenueRate').focus();
|
// $('#EditRevenueRate').focus();
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
1848
application/views/dashboard.php
Executable file → Normal file
1848
application/views/dashboard.php
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
@ -2529,7 +2529,7 @@ function validateEditRevenueTax()
|
|||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '' || $('#EditRate').val() == 0)
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
alert('Please Enter the Rate of the Item');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
|
|||||||
@ -143,12 +143,12 @@ function validateRevenueTax()
|
|||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == "0")
|
// else if($('#Rate').val() == "0")
|
||||||
{
|
// {
|
||||||
alert('Please Enter the Valid Rate of the Item');
|
// alert('Please Enter the Valid Rate of the Item');
|
||||||
$('#Rate').focus();
|
// $('#Rate').focus();
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user