bank changes
This commit is contained in:
parent
b97cc9813a
commit
8afe99da53
@ -226,6 +226,7 @@ $route['addNewIncomeExpense'] = "cashbook/addNewIncomeExpenseLoad";
|
||||
$route['addIncomeExpense'] = "cashbook/addIncomeExpense";
|
||||
$route['updateExpense'] = "cashbook/updateExpense";
|
||||
|
||||
//<----------Cashbook page - Bank statement-------------->
|
||||
//<----------Cashbook page - Bank statement-------------->
|
||||
$route['Bankingview']= "cashbook/bankfileview";
|
||||
$route['Bankfiletostatement']= "cashbook/bankfileupload";
|
||||
@ -235,16 +236,22 @@ $route['Cashstatement']= "cashbook/cashreceipt";
|
||||
$route['BankingFile']= "cashbook/bankfileupload";
|
||||
//$route['Filelist']="cashbook/filelist";
|
||||
//$route['Bankingrecord']= "cashbook/bankdata";
|
||||
$route['Bankamountpaid']= "cashbook/amountpaid";
|
||||
//$route['Bankamountpaid']= "cashbook/amountpaid";
|
||||
$route['Bankamountpaid']= "cashbook/amountpaidsupplier";
|
||||
$route['Bankamountunpaid']= "cashbook/amountunpaid";
|
||||
$route['Bankamountreceived']= "cashbook/amountreceived";
|
||||
//$route['Bankamountreceived']= "cashbook/amountreceived";
|
||||
$route['Bankamountreceived']= "cashbook/bankreceivedsupp";
|
||||
$route['Bankamountunreceived']= "cashbook/bankunreceivedsupp";
|
||||
$route['Receiptamount']="cashbook/receipt";
|
||||
$route['Receipt']= "cashbook/cashreceipt";
|
||||
$route['Payment']= "cashbook/cashpayment";
|
||||
$route['Invoice']= "cashbook/bankinvoice";
|
||||
$route['Bankcash']= "cashbook/cashbanking";
|
||||
$route['Amountreceived']="cashbook/amountreceived";
|
||||
$route['DeleteInvoice']="cashbook/deletemappingiv";
|
||||
$route['DeletePo']="cashbook/Deletemappingporeport";
|
||||
$route['MappingInvoice']="cashbook/mappinginvoice";
|
||||
//$route['Deleteinvoiceurl']="cashbook/Deletemappingcashbookcredit";
|
||||
$route['qualityreportlist'] = "quality/reportList";
|
||||
$route['qualityreportlistinward'] = "quality/reportListInward";
|
||||
//<-------------Store page----------------->
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -290,12 +290,40 @@ GROUP BY financial_year";
|
||||
|
||||
|
||||
|
||||
}
|
||||
function report_finyearamountreceived(){
|
||||
|
||||
|
||||
$sql="SELECT
|
||||
CASE WHEN MONTH(indate)>=4 THEN
|
||||
concat(YEAR(indate), '-',YEAR(indate)+1)
|
||||
ELSE concat(YEAR(indate)-1,'-', YEAR(indate)) END AS financial_year
|
||||
FROM T_Bankinvoicereport
|
||||
GROUP BY financial_year";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
function report_finyearamountunreceived(){
|
||||
|
||||
|
||||
$sql="SELECT
|
||||
CASE WHEN MONTH(invoice_date_created)>=4 THEN
|
||||
concat(YEAR(invoice_date_created), '-',YEAR(invoice_date_created)+1)
|
||||
ELSE concat(YEAR(invoice_date_created)-1,'-', YEAR(invoice_date_created)) END AS financial_year
|
||||
FROM ip_invoices
|
||||
GROUP BY financial_year";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function bankstatement($fdate,$tdate,$fa,$aa){
|
||||
|
||||
|
||||
|
||||
|
||||
$sql="SELECT *,date_format(reportdate,'%d-%m-%Y')as date,tie.total,date_format(valuedate,'%d-%m-%Y')as valuedate from T_bankreport as br left join t_income_expense as tie on tie.bankid=br.ID where br.reportdate !=0 ";
|
||||
|
||||
|
||||
@ -417,6 +445,64 @@ if ($Supplierid!= ''){
|
||||
|
||||
|
||||
$sql.="group by id.IGRItemNo";
|
||||
//echo $sql;
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
function debitbankstatemet1(){
|
||||
|
||||
|
||||
$sql="select im.IGRNO as igrn,pm.POType as potype,im.PONO as PONO,im.IGRNO,id.IGRItemNo,im.MaterialRcvdDate as CreatedDate,br.Balancetopay,br.Amountpaid,sd.SupplierName as SupplierName,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.SGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.SGST /100))),0),2) as sgst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.CGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.CGST /100))),0),2) as cgst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.IGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.IGST /100))),0),2) as igst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)- (rt.AfterDiscount),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)- (st.Afterdiscountval)),0),2) as discount,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate) + (rt.AfterFreightValue),
|
||||
(id.QuantityAsPerInvoice * pl.Rate) + (st.AfterFreightValue)),0),2) as freight,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate) +(rt.AfterPackagingValue),0),0),2) as Package,
|
||||
|
||||
round((
|
||||
if(POType = 'IMPORT',(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
|
||||
ifnull((id.QuantityAsPerInvoice * pl.Rate),0)))
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2)
|
||||
- round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2)),2) as total
|
||||
from T_IGR_Master im
|
||||
left join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
|
||||
join T_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
|
||||
join T_PurchaseOrder_Master pm on pm.PONO = pl.PONO
|
||||
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
|
||||
left join T_Bankporeport br on br.IGRLineItemNo=id.IGRItemNo
|
||||
where im.IGRStatus = 'ST027' and id.BankStatus!='ST072' and br.IsActive=1" ;
|
||||
|
||||
$sql.=" group by id.IGRItemNo";
|
||||
//echo $sql;
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
@ -550,22 +636,98 @@ $sql.="group by sd.SupplierName";
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
// function seperatesupplier($supplierid)
|
||||
|
||||
// {
|
||||
// $this->db->select('pom.PONO,supp.SupplierName,pom.TotalOrderValue');
|
||||
// $this->db->from ('T_SupplierDetailsN supp');
|
||||
// $this->db->join('T_PurchaseOrder_Master pom','pom.SupplierID=supp.SupplierID');
|
||||
// $this->db->where_in('pom.Status',[ST044,ST056]);
|
||||
// $this->db->where('supp.SupplierID',$supplierid);
|
||||
// //$this->db->group_by('supp.SupplierName');
|
||||
// $query = $this->db->get();
|
||||
// return $query->result();
|
||||
// }
|
||||
function suppliertotalfilter($fa,$aa,$m,$fdate,$tdate)
|
||||
{
|
||||
$sql="select sd.SupplierName as SupplierName,sd.SupplierID,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.SGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.SGST /100))),0),2) as sgst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.CGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.CGST /100))),0),2) as cgst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(rt.IGST/100)),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+((id.QuantityAsPerInvoice * pl.Rate)*(st.IGST /100))),0),2) as igst,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)- (rt.AfterDiscount),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)- (st.Afterdiscountval)),0),2) as discount,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate) + (rt.AfterFreightValue),
|
||||
(id.QuantityAsPerInvoice * pl.Rate) + (st.AfterFreightValue)),0),2) as freight,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate) +(rt.AfterPackagingValue),0),0),2) as Package,
|
||||
|
||||
sum(round((
|
||||
if(POType = 'IMPORT',(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
|
||||
ifnull((id.QuantityAsPerInvoice * pl.Rate),0)))
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2)
|
||||
+ round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2)
|
||||
- round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
|
||||
(id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2)),2)) as total
|
||||
from T_IGR_Master im
|
||||
left join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
|
||||
join T_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
|
||||
join T_PurchaseOrder_Master pm on pm.PONO = pl.PONO
|
||||
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
|
||||
left join T_Bankporeport br on br.IGRLineItemNo=id.IGRItemNo
|
||||
where im.IGRStatus = 'ST027' and id.BankStatus ='ST072'";
|
||||
|
||||
|
||||
// if ($Supplierid!= ''){
|
||||
|
||||
// $sql.="and sd.SupplierID = '".$Supplierid."'";
|
||||
|
||||
// }
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$sql.=" and (im.MaterialRcvdDate >= '".$fa."-04-01' and im.MaterialRcvdDate <= '".$aa."-03-31')";
|
||||
|
||||
}
|
||||
if ($m!= ''){
|
||||
|
||||
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||
$sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ($fdate and $tdate != ''){
|
||||
$fromd= date("Y-m-d",strtotime($fdate));
|
||||
$tod=date("Y-m-d",strtotime($tdate));
|
||||
|
||||
$sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
|
||||
and date(im.MaterialRcvdDate) <= '".$tod."'";
|
||||
|
||||
}
|
||||
|
||||
|
||||
$sql.="group by sd.SupplierName";
|
||||
//echo $sql;
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function amountunpaid($supplierid)
|
||||
{
|
||||
|
||||
$sql="select im.IGRNO as igrn,pm.POType as potype,im.PONO as PONO,im.IGRNO,id.IGRItemNo,im.MaterialRcvdDate,br.Balancetopay,br.Amountpaid,sd.SupplierName as SupplierName,sd.SupplierID,im.DeliveryChellanOrInvoiceNo,
|
||||
$sql="select im.IGRNO as igrn,pm.POType as potype,im.PONO as PONO,im.IGRNO,id.IGRItemNo,im.MaterialRcvdDate,im.DeliveryChellanDate,im.CreatedDate,br.Balancetopay,br.Amountpaid,sd.SupplierName as SupplierName,bu.FilePath,bu.BillNo,inward.FilePath as Fpath, sd.SupplierID,im.DeliveryChellanOrInvoiceNo,DATEDIFF(CURDATE(),id.CreatedDate)as days,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+(rt.AfterSGST),
|
||||
(id.QuantityAsPerInvoice * pl.Rate)+(st.After_SGST )),0),2) as sgst,
|
||||
@ -613,6 +775,8 @@ 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
|
||||
left join T_Bankporeport br on br.IGRLineItemNo=id.IGRItemNo
|
||||
left join T_Inwardgateregister_fileupload inward on inward.IGRNO =im.IGRNO
|
||||
left join T_PurchaseOrder_BillUpload bu on bu.PONO=pm.PONO
|
||||
where im.IGRStatus = 'ST027' and id.BankStatus ='ST072' and sd.SupplierID='".$supplierid."'";
|
||||
$sql.="group by id.IGRItemNo";
|
||||
//echo $sql;
|
||||
@ -785,7 +949,8 @@ function receiptdata()
|
||||
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername');
|
||||
$this->db->join ('T_bankreport br','br.ID=bm.mid');
|
||||
$this->db->join('T_Inwardgateregister_fileupload inward','inward.IGRNO =igrm.IGRNO','left');
|
||||
$this->db->join ('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO','left');
|
||||
$this->db->join ('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO','left');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
if($fdate!='' && $tdate!='')
|
||||
{
|
||||
$this->db->where('igrm.MaterialRcvdDate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||
@ -795,8 +960,7 @@ function receiptdata()
|
||||
$this->db->where('sd.SupplierID',$SupplierName);
|
||||
}
|
||||
|
||||
|
||||
$this->db->group_by('bm.id');
|
||||
$this->db->group_by('bm.IGRLineItemNo');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
@ -860,8 +1024,8 @@ function receiptdata()
|
||||
function creditinvoicelist($bankid)
|
||||
{
|
||||
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,
|
||||
bm.balancetoreceived,bm.amountreceived,bm.ID,br.Credit');
|
||||
$this->db->from ('T_Bankmappingiv bm');
|
||||
bm.balancetoreceived,bm.amountreceived,bm.ID,br.Credit,br.cclearbalance,br.cbalancetocleared');
|
||||
$this->db->from ('T_Bankinvoicereport bm');
|
||||
$this->db->join('T_bankreport br','br.ID=bm.bankid');
|
||||
$this->db->where('bm.bankid',$bankid);
|
||||
$this->db->where('bm.IsActive',1);
|
||||
@ -870,27 +1034,77 @@ function receiptdata()
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function creditinvoicelistfilter($Customer,$fdate,$tdate)
|
||||
function creditinvoicelistfilter($fdate,$tdate,$fa,$aa,$m)
|
||||
|
||||
{
|
||||
|
||||
$this->db->select('bm.ID,bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,
|
||||
bm.balancetoreceived,bm.amountreceived,br.cclearbalance,br.cbalancetocleared');
|
||||
$this->db->from ('T_Bankmappingiv bm');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
$this->db->from ('T_Bankinvoicereport bm');
|
||||
|
||||
$this->db->join ('ip_clients ic','ic.client_name = bm.customername','left');
|
||||
$this->db->join('T_bankreport br','br.ID = bm.bankid');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$year="(bm.indate >= '".$fa."-04-01' and bm.indate <= '".$aa."-03-31')";
|
||||
$this->db->where($year);
|
||||
}
|
||||
if ($m!= ''){
|
||||
|
||||
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||
$month="monthname(bm.indate) = '".$m."'";
|
||||
$this->db->where($month);
|
||||
|
||||
}
|
||||
if($fdate!='' && $tdate!='')
|
||||
{
|
||||
$this->db->where('bm.indate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||
}
|
||||
if($Customer!='')
|
||||
{
|
||||
$this->db->where('ic.client_id',$Customer);
|
||||
}
|
||||
|
||||
//$this->db->group_by('invoiceno');
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function uncreditinvoicelistfilter($fdate,$tdate,$fa,$aa,$m)
|
||||
|
||||
{
|
||||
|
||||
|
||||
$this->db->select('iva.invoice_id,iva.invoice_total,iv.invoice_date_created,iv.invoice_number,iva.invoice_paid,ic.client_name,BI.balancetoreceived,BI.amountreceived');
|
||||
$this->db->from ('ip_invoice_amounts iva');
|
||||
$this->db->join ('ip_invoices iv','iva.invoice_id = iv.invoice_id');
|
||||
$this->db->join ('ip_clients ic','iv.client_id = ic.client_id','left');
|
||||
$this->db->join ('T_Bankinvoicereport BI',' iv.invoice_number =BI.invoiceno','left');
|
||||
|
||||
$this->db->where('iv.invoice_status_id','2');
|
||||
$this->db->where('iv.receivedstatus','ST066');
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$year="(iv.invoice_date_created >= '".$fa."-04-01' and iv.invoice_date_created <= '".$aa."-03-31')";
|
||||
$this->db->where($year);
|
||||
}
|
||||
if ($m!= ''){
|
||||
|
||||
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||
$month="monthname(iv.invoice_date_created) = '".$m."'";
|
||||
$this->db->where($month);
|
||||
|
||||
}
|
||||
if($fdate!='' && $tdate!='')
|
||||
{
|
||||
$this->db->where('iv.invoice_date_created BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||
}
|
||||
// $this->db->group_by('iva.invoice_id');
|
||||
//$this->db->where('inc.type','PAYMENT');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
|
||||
}
|
||||
//for cashbook edit screen and update bankreport//
|
||||
function invoiceamonut($bankid)
|
||||
@ -952,17 +1166,16 @@ function receiptdata()
|
||||
|
||||
}
|
||||
|
||||
function debitlistpo($pono)
|
||||
function debitlistpo($igrlineitem)
|
||||
{
|
||||
$this->db->select('bmp.mid,bmp.PONO,bmp.IGRLineItemNo,bmp.Amountpaid,br.Narration');
|
||||
$this->db->from ('T_Bankmappingpo as bmp');
|
||||
$this->db->join('T_bankreport br','br.ID = bmp.mid');
|
||||
$this->db->where('bmp.PONO',$pono);
|
||||
$this->db->where('bmp.IGRLineItemNo',$igrlineitem);
|
||||
$this->db->where('bmp.IsActive',1);
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function creditlistinv($invno)
|
||||
{
|
||||
@ -1181,13 +1394,65 @@ function receiptdata()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
function paided()
|
||||
function paided($suppliername)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_Bankmappingpo');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
||||
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,bm.IGRLineItemNo,br.Balancetocleared,br.Clearbalance');
|
||||
$this->db->from ('T_Bankporeport bm');
|
||||
$this->db->join('T_Inwardgateregister_fileupload inward','inward.IGRNO =bm.IGRNO','left');
|
||||
$this->db->join('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO','left');
|
||||
$this->db->join('T_bankreport br','br.ID=bm.mid','left');
|
||||
$this->db->where('bm.Suppliername',$suppliername);
|
||||
$this->db->where('bm.IsActive',1);
|
||||
$this->db->group_by('bm.IGRLineItemNo');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function amountpaidsupplierwise()
|
||||
{
|
||||
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
||||
bm.Balancetopay,sum(bm.Amountpaid) as Amountpaid,bm.IGRNO,bm.IGRLineItemNo');
|
||||
$this->db->from ('T_Bankporeport bm');
|
||||
$this->db->group_by('bm.Suppliername');
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function amountpaidsupplierwisefilter($fa,$aa,$m,$fdate,$tdate)
|
||||
{
|
||||
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,sum(bm.Totalpoamount)as Totalpoamount,
|
||||
bm.Balancetopay,sum(bm.Amountpaid) as Amountpaid,bm.Podate,bm.IGRLineItemNo');
|
||||
$this->db->from ('T_Bankporeport bm');
|
||||
|
||||
|
||||
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$year="(bm.Podate >= '".$fa."-04-01' and bm.Podate <= '".$aa."-03-31')";
|
||||
$this->db->where($year);
|
||||
}
|
||||
if ($m!= ''){
|
||||
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||
$month="monthname(bm.Podate) = '".$m."'";
|
||||
$this->db->where($month);
|
||||
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||
|
||||
}
|
||||
if ($fdate and $tdate != ''){
|
||||
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||
$todate=date("Y-m-d",strtotime($tdate));
|
||||
$date = "date(bm.Podate) >= '".$fromdate."'
|
||||
and date(bm.Podate) <= '".$todate."'";
|
||||
$this->db->where($date);
|
||||
}
|
||||
|
||||
|
||||
$this->db->group_by('bm.Suppliername');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
// function unpaided()
|
||||
@ -1204,16 +1469,141 @@ function receiptdata()
|
||||
// // return $result;
|
||||
|
||||
// }
|
||||
function received()
|
||||
function received($clientname)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('T_Bankmappingiv');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,
|
||||
bm.balancetoreceived,bm.amountreceived,bm.ID,br.Credit,br.cclearbalance,br.cbalancetocleared');
|
||||
$this->db->from ('T_Bankinvoicereport bm');
|
||||
$this->db->join('T_bankreport br','br.ID=bm.bankid');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
$this->db->where('bm.customername',$clientname);
|
||||
//$this->db->group_by('invoiceno');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
|
||||
function creditinvoicesupplierwise()
|
||||
{
|
||||
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,ic.client_id,
|
||||
bm.balancetoreceived,sum(bm.amountreceived)as amountreceived,bm.ID,br.Credit,br.cclearbalance,br.cbalancetocleared');
|
||||
$this->db->from ('T_Bankinvoicereport bm');
|
||||
$this->db->join('T_bankreport br','br.ID=bm.bankid');
|
||||
$this->db->join('ip_clients ic','ic.client_name=bm.customername','left');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
$this->db->group_by('bm.customername');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
function creditinvoicewisefilter($fdate,$tdate,$fa,$aa,$m)
|
||||
{
|
||||
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,ic.client_id,
|
||||
bm.balancetoreceived,sum(bm.amountreceived)as amountreceived,bm.ID,br.Credit,br.cclearbalance,br.cbalancetocleared');
|
||||
$this->db->from ('T_Bankinvoicereport bm');
|
||||
$this->db->join('T_bankreport br','br.ID=bm.bankid');
|
||||
$this->db->join('ip_clients ic','ic.client_name=bm.customername','left');
|
||||
$this->db->where('bm.IsActive',1);
|
||||
// $this->db->where('bm.customername',$Customer);
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$year="(bm.indate >= '".$fa."-04-01' and bm.indate <= '".$aa."-03-31')";
|
||||
$this->db->where($year);
|
||||
|
||||
}
|
||||
if ($m!= ''){
|
||||
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||
$month="monthname(bm.indate) = '".$m."'";
|
||||
$this->db->where($month);
|
||||
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||
|
||||
}
|
||||
if ($fdate and $tdate != ''){
|
||||
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||
$todate=date("Y-m-d",strtotime($tdate));
|
||||
$date = "date(bm.indate) >= '".$fromdate."'
|
||||
and date(bm.indate) <= '".$todate."'";
|
||||
$this->db->where($date);
|
||||
}
|
||||
|
||||
$this->db->group_by('bm.customername');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
function unreceived($clientname)
|
||||
{
|
||||
$this->db->distinct();
|
||||
$this->db->select('iva.invoice_id,iva.invoice_total,iv.invoice_date_created,iv.invoice_number,iva.invoice_paid,ic.client_name,BI.balancetoreceived,BI.amountreceived');
|
||||
$this->db->from ('ip_invoice_amounts iva');
|
||||
$this->db->join ('ip_invoices iv','iva.invoice_id = iv.invoice_id','left');
|
||||
$this->db->join ('ip_clients ic','iv.client_id = ic.client_id','left');
|
||||
$this->db->join ('T_Bankinvoicereport BI',' iv.invoice_number =BI.invoiceno','left');
|
||||
$this->db->where('iv.receivedstatus ','ST066');
|
||||
$this->db->where('iv.invoice_status_id','2');
|
||||
$this->db->where('ic.client_name',$clientname);
|
||||
// $this->db->where('iv.receivedstatus','ST066');
|
||||
|
||||
$this->db->group_by('iva.invoice_id');
|
||||
//$this->db->where('inc.type','PAYMENT');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
function unreceivedsupplier()
|
||||
{
|
||||
|
||||
$this->db->select('iva.invoice_id,sum(iva.invoice_total)as invoice_total,iv.invoice_date_created,iv.invoice_number,iva.invoice_paid,ic.client_name,BI.balancetoreceived,sum(BI.amountreceived)as amountreceived');
|
||||
$this->db->from ('ip_invoice_amounts iva');
|
||||
$this->db->join ('ip_invoices iv','iva.invoice_id = iv.invoice_id','left');
|
||||
$this->db->join ('ip_clients ic','iv.client_id = ic.client_id','left');
|
||||
$this->db->join ('T_Bankinvoicereport BI',' iv.invoice_number =BI.invoiceno','left');
|
||||
$this->db->where('iv.receivedstatus','ST066');
|
||||
$this->db->where('iv.invoice_status_id','2');
|
||||
|
||||
|
||||
$this->db->group_by('ic.client_name');
|
||||
//$this->db->where('inc.type','PAYMENT');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
function uncreditinvoicewisefilter($fdate,$tdate,$fa,$aa,$m)
|
||||
{
|
||||
|
||||
$this->db->select('iva.invoice_id,sum(iva.invoice_total)as invoice_total,iv.invoice_date_created,iv.invoice_number,iva.invoice_paid,ic.client_name,BI.balancetoreceived,sum(BI.amountreceived)as amountreceived');
|
||||
$this->db->from ('ip_invoice_amounts iva');
|
||||
$this->db->join ('ip_invoices iv','iva.invoice_id = iv.invoice_id','left');
|
||||
$this->db->join ('ip_clients ic','iv.client_id = ic.client_id','left');
|
||||
$this->db->join ('T_Bankinvoicereport BI',' iv.invoice_number =BI.invoiceno','left');
|
||||
// $this->db->where('bm.customername',$Customer);
|
||||
if ($fa and $aa != ''){
|
||||
|
||||
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||
$year="(iv.invoice_date_created >= '".$fa."-04-01' and iv.invoice_date_created <= '".$aa."-03-31')";
|
||||
$this->db->where($year);
|
||||
|
||||
}
|
||||
if ($m!= ''){
|
||||
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||
$month="monthname(iv.invoice_date_created) = '".$m."'";
|
||||
$this->db->where($month);
|
||||
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||
|
||||
}
|
||||
if ($fdate and $tdate != ''){
|
||||
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||
$todate=date("Y-m-d",strtotime($tdate));
|
||||
$date = "date(iv.invoice_date_created) >= '".$fromdate."'
|
||||
and date(iv.invoice_date_created) <= '".$todate."'";
|
||||
$this->db->where($date);
|
||||
}
|
||||
$this->db->where('iv.receivedstatus','ST066');
|
||||
$this->db->where('iv.invoice_status_id','2');
|
||||
|
||||
|
||||
$this->db->group_by('ic.client_name');
|
||||
//$this->db->where('inc.type','PAYMENT');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function igrdetailstatus($igrdetails,$igrlineitem)
|
||||
{
|
||||
@ -1276,11 +1666,10 @@ function receiptdata()
|
||||
}
|
||||
|
||||
}
|
||||
function deletemapping($Bankid,$updateamount,$updatebalancetoclear,$active)
|
||||
function deletemapping($Bankid,$updateamount,$updatebalancetoclear)
|
||||
{
|
||||
$this->db->set('Clearbalance',$updateamount);
|
||||
$this->db->set('Balancetocleared',$updatebalancetoclear);
|
||||
$this->db->set('IsActive',$active);
|
||||
$this->db->set('Balancetocleared',$updatebalancetoclear);
|
||||
$this->db->where('ID',$Bankid);
|
||||
$this->db->update('T_bankreport');
|
||||
$r = $this->db->affected_rows();
|
||||
@ -1328,10 +1717,11 @@ function receiptdata()
|
||||
$r = $this->db->affected_rows();
|
||||
return $r;
|
||||
}
|
||||
function updateBankporeportpo($igrno,$totalbalancetopay,$updatebankpoamount,$Bankid)
|
||||
function updateBankporeportpo($igrno,$totalbalancetopay,$updatebankpoamount,$Bankid,$IsActive)
|
||||
{
|
||||
$this->db->set('Balancetopay',$totalbalancetopay);
|
||||
$this->db->set('Amountpaid',$updatebankpoamount);
|
||||
$this->db->set('IsActive',$IsActive);
|
||||
$this->db->where('IGRLineItemNo',$igrno);
|
||||
$this->db->where('mid',$Bankid);
|
||||
$this->db->update('T_Bankporeport');
|
||||
@ -1339,10 +1729,11 @@ function receiptdata()
|
||||
return $r;
|
||||
|
||||
}
|
||||
function updatebankinvoicereport($invoiceno,$bankid,$updatebalancetoreceived,$updateamountreceived)
|
||||
function updatebankinvoicereport($invoiceno,$bankid,$updatebalancetoreceived,$updateamountreceived,$IsActive)
|
||||
{
|
||||
$this->db->set('balancetoreceived',$updatebalancetoreceived);
|
||||
$this->db->set('amountreceived',$updateamountreceived);
|
||||
$this->db->set('IsActive',$IsActive);
|
||||
$this->db->where('invoiceno',$invoiceno);
|
||||
$this->db->where('bankid',$bankid);
|
||||
$this->db->update('T_Bankinvoicereport');
|
||||
|
||||
@ -50,10 +50,10 @@ if(!empty($amountpaid))
|
||||
</div>-->
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class ="content">
|
||||
<div class="content-wrapper">
|
||||
<section class ="content">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -103,7 +103,7 @@ if(!empty($amountpaid))
|
||||
{
|
||||
}
|
||||
?>
|
||||
<center><h4 style="color:#3c8dbc"><?php echo $ap->Suppliername?></h4></center>
|
||||
<center><h4 style="color:#3c8dbc"><?php echo $ap->Suppliername?></h4></center>
|
||||
<?php
|
||||
|
||||
}
|
||||
@ -163,6 +163,7 @@ if(!empty($amountpaid))
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<center><h4 style="color:#3c8dbc"><?php echo $ap->Suppliername?></h4></center>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
@ -188,12 +189,14 @@ if(!empty($amountpaid))
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdebit)){
|
||||
foreach($bankdebit as $ap)
|
||||
{
|
||||
$rate=$ap->Amountpaid;
|
||||
// $id=$ap->id;
|
||||
//print_r($ap);
|
||||
?>
|
||||
@ -206,14 +209,14 @@ if(!empty($amountpaid))
|
||||
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->mid; ?>"/>
|
||||
|
||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y'); ?></span></td>
|
||||
<td align="left" id="pono<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>
|
||||
<td align="left" id="pono"><span><?php echo $ap->PONO?></span></td>
|
||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $ap->IGRNO?></span></td>
|
||||
<td align="left" id="igritemno<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
||||
<td align="left" id="igritemno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->IGRLineItemNo;?>"><span><?php echo $ap->IGRLineItemNo?></span></a></td>
|
||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
||||
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
||||
<td align="left" id="btp<?php echo $i ?>"><span><?php echo $ap->Balancetopay?></span></td>
|
||||
<td align="left" id="ap<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
||||
<td align="left" id="ap<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate)?> <?php echo round($rate,2)?></span></td>
|
||||
<?php
|
||||
if($ap->file !='')
|
||||
{
|
||||
@ -272,16 +275,38 @@ if(!empty($amountpaid))
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section></div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -319,10 +344,7 @@ var mappingid=$('#mapid'+i).val();
|
||||
|
||||
|
||||
var bankingclear=$('#bankingbalclear'+i).val();
|
||||
|
||||
var clearedbalance=$('#clearbal'+i).val();
|
||||
|
||||
|
||||
$.ajax({
|
||||
data:{mappingid:mappingid,Totalpoamount:totalamount,paidamount:paidamount,balancetopay:balancetopay,IGRItemNo:Igritemno,bankid:bankid,balancetobankingclear:bankingclear,clearbalance:clearedbalance},
|
||||
type:"POST",
|
||||
@ -332,9 +354,9 @@ $.ajax({
|
||||
|
||||
if(data)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
|
||||
|
||||
window.location.href ="Bankingstatement";
|
||||
window.location.href ="amountpaid";
|
||||
//location.reload();
|
||||
|
||||
}
|
||||
@ -416,7 +438,7 @@ $( function() {
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
to.datepicker("option", "minDate", getDate( this ));
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
|
||||
@ -1,362 +1,429 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($amountpaid))
|
||||
{
|
||||
|
||||
}
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box box-info" id="content">
|
||||
<!--<div class="box-header with-border">-->
|
||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||
<!--</div>-->
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Received Report</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" >
|
||||
<label for="from_date">
|
||||
<?php echo 'Customer'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="Customer" name="Customer">
|
||||
<option value="">Select Customer</option>
|
||||
<?php
|
||||
foreach($getcustomer as $gs):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $gs->client_id;?>"><?php echo $gs->client_name ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2" style="margin-top:24px;">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>INVOICENO</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Invoice Amount (₹)</th>
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Balance To Received (₹)</th>
|
||||
<th>Amount Received (₹)</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankcredit)){
|
||||
foreach($bankcredit as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="bankid" id="bankid<?php echo $i ?>" value="<?php echo $ap->bankid ?>"/>
|
||||
<input type="hidden" name="ccbalance" id="ccbalance<?php echo $i ?>" value="<?php echo $ap->cclearbalance?>"/>
|
||||
<input type="hidden" name="btc" id="btc<?php echo $i ?>" value="<?php echo $ap->cbalancetocleared?>"/>
|
||||
<input type="hidden" name="mapid" id="mapid<?php echo $i ?>" value="<?php echo $ap->ID?>?>"/>
|
||||
|
||||
<!-- <td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td> -->
|
||||
|
||||
<td align="left"><?php $Pdt = new DateTime($ap->indate);$Created_Date = $Pdt->format('d-m-Y'); echo $Created_Date?></td>
|
||||
|
||||
<td align="left" id="invno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></span></a></td>
|
||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||
|
||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount- $ap->amountreceived?></span></td>
|
||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<!--<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($ti,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>-->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</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>
|
||||
function invoice(i)
|
||||
{
|
||||
|
||||
$('#content').loader('show');
|
||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||
var invoiceno=$('#invno'+i).text();
|
||||
var amountreceived=$('#amountreceived'+i).text();
|
||||
var bankid=$('#bankid'+i).val();
|
||||
var mappingid=$('#mapid'+i).val();
|
||||
|
||||
var bankingclear=$('#ccbalance'+i).val();
|
||||
var bankingbalclear=$('#btc'+i).val();
|
||||
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>DeleteInvoice",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
if(data)
|
||||
{
|
||||
|
||||
|
||||
window.location.href ="Bankingstatement";
|
||||
//location.reload();
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
|
||||
table = $('#req').DataTable( {
|
||||
|
||||
"aaSorting": [[ 0, "desc" ]],
|
||||
"info": true,
|
||||
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
|
||||
"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: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($amountpaid))
|
||||
{
|
||||
|
||||
}
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box box-info" id="content">
|
||||
<!--<div class="box-header with-border">-->
|
||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||
<!--</div>-->
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Amount Received Reports</b></p></h3></center>
|
||||
<?php
|
||||
if(!empty($amountreceived)){
|
||||
foreach($amountreceived as $ap)
|
||||
{
|
||||
}
|
||||
?>
|
||||
<center><h4 style="color:#3c8dbc"><?php echo $ap->customername?></h4></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||
<p style="margin-left:25px;" id="bamount" </p>
|
||||
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="col-md-2" >
|
||||
<label for="from_date">
|
||||
<?php echo 'Customer'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="CustomerName" name="CustomerName">
|
||||
<option value="">Select Customer</option>
|
||||
<?php
|
||||
foreach($getcustomer as $gc):
|
||||
|
||||
{
|
||||
|
||||
?>
|
||||
|
||||
<option value="<?php echo $gc->client_id;?>"><?php echo $gc->client_name ;?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="margin-top:23px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase" >
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>INVOICENO</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Invoice Amount (₹)</th>
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Balance To Received (₹)</th>
|
||||
<th>Amount Received (₹)</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($amountreceived)){
|
||||
foreach($amountreceived as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="bankid" id="bankid<?php echo $i ?>" value="<?php echo $ap->bankid ?>"/>
|
||||
<input type="hidden" name="ccbalance" id="ccbalance<?php echo $i ?>" value="<?php echo $ap->cclearbalance?>"/>
|
||||
<input type="hidden" name="btc" id="btc<?php echo $i ?>" value="<?php echo $ap->cbalancetocleared?>"/>
|
||||
<input type="hidden" name="mapid" id="mapid<?php echo $i ?>" value="<?php echo $ap->ID?>?>"/>
|
||||
|
||||
<!-- <td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td> -->
|
||||
|
||||
<td align="left"><?php $Pdt = new DateTime($ap->indate);$Created_Date = $Pdt->format('d-m-Y'); echo $Created_Date?></td>
|
||||
|
||||
<td align="left" id="invno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></span></a></td>
|
||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||
|
||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount- $ap->amountreceived?></span></td>
|
||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round( $ap->amountreceived)?><?php echo $ap->amountreceived?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
<td> </td>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
function invoice(i)
|
||||
{
|
||||
|
||||
$('#content').loader('show');
|
||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||
var invoiceno=$('#invno'+i).text();
|
||||
var amountreceived=$('#amountreceived'+i).text();
|
||||
var bankid=$('#bankid'+i).val();
|
||||
var mappingid=$('#mapid'+i).val();
|
||||
|
||||
var bankingclear=$('#ccbalance'+i).val();
|
||||
var bankingbalclear=$('#btc'+i).val();
|
||||
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>DeleteInvoice",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
if(data)
|
||||
{
|
||||
|
||||
|
||||
window.location.href ="Bankingstatement";
|
||||
//location.reload();
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
|
||||
table = $('#req').DataTable( {
|
||||
|
||||
"aaSorting": [[ 0, "desc" ]],
|
||||
"info": true,
|
||||
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
|
||||
"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: $('h4').text(),
|
||||
title: 'Amount Received Reports',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -33,6 +33,37 @@ foreach($financialyear as $item)
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<div class="modal fade" id="Fileshow" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:800px;">
|
||||
|
||||
<!-- Table to show the line item of po -->
|
||||
<div id="content" > </div>
|
||||
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>BillNO</th>
|
||||
<th>PONO</th>
|
||||
<th>FileName</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleAppend1">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info" id="content">
|
||||
<br>
|
||||
@ -175,24 +206,27 @@ foreach($financialyear as $item)
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Invoice Date</th>
|
||||
<th>Invoice No</th>
|
||||
<th>Invoice Date</th><!--delivery challandate /igrmaster -->
|
||||
<th>PONO</th>
|
||||
<th>Inward Date</th><!--CreatedDate /igrmaster -->
|
||||
<th>IGRNO</th>
|
||||
<th>IGR Item No</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>IGR Amount (₹)</th>
|
||||
<th>IGR File</th>
|
||||
<th>PO File</th>
|
||||
<th>Over Due Days</th><!--DATEDIFF(CURDATE(),igrdetails.CreatedDate)as days-->
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$tot_amount = 0;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdepit)){
|
||||
foreach($bankdepit as $t)
|
||||
if(!empty($bankunpaid)){
|
||||
foreach($bankunpaid as $t)
|
||||
{
|
||||
|
||||
$status=$t->Paymentstatus;
|
||||
@ -201,14 +235,11 @@ foreach($financialyear as $item)
|
||||
$rate=$t->total;
|
||||
|
||||
|
||||
if($status !='ST057')
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->MaterialRcvdDate),'d-m-Y');?></span></td>
|
||||
<?php
|
||||
<?php
|
||||
if($t->DeliveryChellanOrInvoiceNo=='')
|
||||
{
|
||||
?>
|
||||
@ -222,11 +253,58 @@ foreach($financialyear as $item)
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td align="left" id="pono"><span><?php echo $t->PONO?></span></a></td>
|
||||
<td align="left" id="igrno"><span><?php $tot_amount= $tot_amount + round($rate)?><?php echo $t->IGRNO?></span></a></td>
|
||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->DeliveryChellanDate),'d-m-Y');?></span></td>
|
||||
|
||||
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $t->PONO?></span></a></td>
|
||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->CreatedDate),'d-m-Y');?></span></td>
|
||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php $tot_amount= $tot_amount + round($rate)?><?php echo $t->IGRNO?></span></a></td>
|
||||
<td align="left" id="igrlineitem<?php echo $i ?>" ><span><?php echo $t->IGRItemNo?></span></td>
|
||||
<td align="left" id="sn<?php echo $i ?>" ><span><?php echo $t->SupplierName?></span></td>
|
||||
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo round($rate,2)?></span></td>
|
||||
<?php
|
||||
if($t->file !='')
|
||||
{
|
||||
?>
|
||||
|
||||
|
||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
||||
<?php
|
||||
}
|
||||
|
||||
else if($t->Fpath !='')
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
||||
|
||||
|
||||
<?php
|
||||
} else
|
||||
{ ?>
|
||||
<td>N/A</td>
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
|
||||
if($t->FilePath=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td>
|
||||
<a data-toggle="tooltip" ><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> - Click here to Delete details" onclick="pono(<?php echo $i ?>)"></i> </a>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo $t->days?></span></td>
|
||||
|
||||
|
||||
|
||||
@ -234,7 +312,7 @@ foreach($financialyear as $item)
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
@ -248,11 +326,12 @@ foreach($financialyear as $item)
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
</strong></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
@ -275,6 +354,119 @@ foreach($financialyear as $item)
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
function pono(i)
|
||||
{
|
||||
var igrno=$('#igrno'+i).text();
|
||||
var pono =$('#pono'+i).text();
|
||||
|
||||
$("#Fileshow").modal('show');
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{igrno:igrno,pono:pono},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
var trHTML = '';
|
||||
$.each($.parseJSON(data),function (i, item) {
|
||||
i=i+1;
|
||||
trHTML += '<tr>' +
|
||||
'<td align="right">' + i + '</td>' +
|
||||
|
||||
'<td>' + item.BillNo+ '</td>' +
|
||||
'<td>' + item.PONO+ '</td>' +
|
||||
|
||||
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||
|
||||
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||
|
||||
'</tr>';
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
$("#tbleAppend1").empty();
|
||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
function igrno(i)
|
||||
{
|
||||
var igrno=$('#igrno'+i).text();
|
||||
var pono=$('#pono'+i).text();
|
||||
$("#Fileshow").modal('show');
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{igrno:igrno,pono:pono},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url()?>cashbook/IGRFilelist",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
|
||||
var trHTML = '';
|
||||
var FilePath ='';
|
||||
var Filename = '';
|
||||
var PONO ='';
|
||||
var BillNO ='';
|
||||
i=0;
|
||||
$.each($.parseJSON(data),function (i, item) {
|
||||
|
||||
if(item.file == null)
|
||||
{ if(item.Remarks ==null)
|
||||
{
|
||||
//alert()
|
||||
PONO =item.PONO;
|
||||
BillNO =item.BillNo;
|
||||
Filename =item.FilePath;
|
||||
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||
}else{
|
||||
Filename ="BillDetails";
|
||||
PONO =item.PONO;
|
||||
BillNO =item.BillNo;
|
||||
FilePath = item.FilePath;
|
||||
}
|
||||
|
||||
}else{
|
||||
Filename = item.file;
|
||||
PONO =item.pono;
|
||||
BillNO = '-';
|
||||
|
||||
FilePath ="<?php echo base_url()?>"+item.file;
|
||||
}
|
||||
|
||||
|
||||
if(Filename != null)
|
||||
{
|
||||
i=i+1;
|
||||
i=i-1;
|
||||
trHTML += '<tr id='+i+'>' +
|
||||
'<td align="right">' + i + '</td>' +
|
||||
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||
'<td>' + PONO+ '</td>' +
|
||||
|
||||
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||
|
||||
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||
'</tr>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
$("#tbleAppend1").empty();
|
||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
/** jquery on ready for DataPicker. */
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
|
||||
269
application/views/bankamountunreceived.php
Normal file
269
application/views/bankamountunreceived.php
Normal file
@ -0,0 +1,269 @@
|
||||
<?php
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<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;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info" id="content">
|
||||
<br>
|
||||
<div class="col-md-1 col-md-offset-11">
|
||||
<a href="<?php base_url() ?>Bankingstatement" class="btn btn-primary" value="Back"/>Back</a>
|
||||
</div>
|
||||
<br>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Un Receivable Invoice Report</b></p></h3></center>
|
||||
<?php
|
||||
if(!empty($amountunreceived)){
|
||||
foreach($amountunreceived as $t)
|
||||
|
||||
{
|
||||
}
|
||||
?>
|
||||
<center><h4 style="color:#3c8dbc"><?php echo $t->client_name?></h4></center>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;"> -->
|
||||
|
||||
<input type="hidden" id="debitamount" value="<?php echo $cash; ?>" placeholder="Debit Amount" readonly>
|
||||
|
||||
<input type="hidden" id="bankid" value="<?php echo $bankid; ?>" placeholder="Bank Id" readonly>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="margin-top:20px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly >
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>Invoice Number</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Invoice Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($amountunreceived)){
|
||||
foreach($amountunreceived as $t)
|
||||
|
||||
{
|
||||
//print_r($bankinvoicedata);
|
||||
$status=$t->Paymentstatus;
|
||||
$balancetopay=$t->Balancetopay;
|
||||
if($status !='ST057')
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
<td align="left" id="invoicedate<?php echo $i ?>"><span><?php echo date_format(date_create($t->invoice_date_created),'d-m-Y');?></span></td>
|
||||
<td align="left" id="invoice_id<?php echo $i ?>"><span><?php echo $t->invoice_number?></span></td>
|
||||
<td align="left" id="client_name<?php echo $i ?>"><span><?php echo $t->client_name?></span></td>
|
||||
<td align="left" id="invoice_paid<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+$t->invoice_total?><?php echo $t->invoice_total?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div><!-- / .box-body closed -->
|
||||
</div><!-- /.box box-info closed-->
|
||||
|
||||
</div><!--/ .col (col-md-12)-->
|
||||
|
||||
</div><!-- /. 1st row closed -->
|
||||
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').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: 'Unpaid Purchase Order Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );/** datatable closed */
|
||||
} );/** ready closed */
|
||||
|
||||
</script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,215 +1,215 @@
|
||||
<?php
|
||||
$openingbalance =0;
|
||||
$closingbalance=0;
|
||||
|
||||
if(!empty($bankbalance)){
|
||||
foreach($bankbalance as $t)
|
||||
{
|
||||
$openingbalance = $t->openingbalance;
|
||||
$closingbalance = $t->closingbalance;
|
||||
|
||||
|
||||
}}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if(!empty($cleareddebitbalance)){
|
||||
foreach($cleareddebitbalance as $b)
|
||||
// print_r($t);die();
|
||||
|
||||
{
|
||||
|
||||
$debit = $b->debit;
|
||||
//
|
||||
|
||||
|
||||
}}
|
||||
if(!empty($clearedcreditbalance)){
|
||||
foreach($clearedcreditbalance as $a)
|
||||
// print_r($t);die();
|
||||
|
||||
{
|
||||
|
||||
$credit = $a->credit;
|
||||
//
|
||||
|
||||
|
||||
}}
|
||||
|
||||
?>
|
||||
<script>
|
||||
function readURL(input) {
|
||||
$('#FileName').val(input.files[0].name);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
|
||||
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
|
||||
<script>
|
||||
function checkYearMonthAsEmpty()
|
||||
{
|
||||
var i=0;
|
||||
if($("#mon").val() == "") {
|
||||
i++;
|
||||
// alert("No Month Selected!");
|
||||
|
||||
}
|
||||
if($("#yr").val() == "") {
|
||||
i++;
|
||||
//alert("No Year Selected!");
|
||||
}
|
||||
|
||||
if($("#FileName").val() == "") {
|
||||
i++;
|
||||
//alert("No File Uploaded!");
|
||||
}
|
||||
// alert(i);
|
||||
return i;
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Banking Report</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
|
||||
<br><br>
|
||||
<div class="col-md-4" >
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong>Opening Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $openingbalance;?></span>
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong>Closing Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $closingbalance;?></span>
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<!-- <span class="info-box-text"style="color:#dd4b39;"><strong>Cleared Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $creditdebit;?></span> -->
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong> Balance To Clear[Credit]</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $credit;?></span>
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong> Balance To Clear[Debit]</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $debit;?></span>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2" style="border:2px dotted;padding:2%;">
|
||||
|
||||
|
||||
<form id="upload" method="post" action="<?php echo base_url() ?>Bankfiletostatement"; role="form" enctype="multipart/form-data">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4"> <span>Bank Names</span>
|
||||
|
||||
<select type="text" id="bankbranchname" name="bankbranchname" class="form-control select2">
|
||||
<option value="Indian Bank">Select Bank Name</option>
|
||||
|
||||
<option value="Indian Bank"><?php echo 'Indian Bank' ?></option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box-header">
|
||||
<input type="file" accept=".xlsx" onchange="readURL(this);" id="userfile" name="userfile" />
|
||||
|
||||
|
||||
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input type="submit" class="btn btn-info" value="upload" onclick="save();return false;"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
function save()
|
||||
{
|
||||
var file=$('#userfile').val();
|
||||
var bank=$('#bankbranchname').val();
|
||||
//var x=checkYearMonthAsEmpty();
|
||||
//alert(x);
|
||||
if(file!='' && bank!='')
|
||||
{
|
||||
|
||||
$('form#upload').submit();
|
||||
//$('#userfile').val('');
|
||||
//$('#mon ').val('');
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Please Provide All Information Correctly!");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$openingbalance =0;
|
||||
$closingbalance=0;
|
||||
|
||||
if(!empty($bankbalance)){
|
||||
foreach($bankbalance as $t)
|
||||
{
|
||||
$openingbalance = $t->openingbalance;
|
||||
$closingbalance = $t->closingbalance;
|
||||
|
||||
|
||||
}}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if(!empty($cleareddebitbalance)){
|
||||
foreach($cleareddebitbalance as $b)
|
||||
// print_r($t);die();
|
||||
|
||||
{
|
||||
|
||||
$debit = $b->debit;
|
||||
//
|
||||
|
||||
|
||||
}}
|
||||
if(!empty($clearedcreditbalance)){
|
||||
foreach($clearedcreditbalance as $a)
|
||||
// print_r($t);die();
|
||||
|
||||
{
|
||||
|
||||
$credit = $a->credit;
|
||||
//
|
||||
|
||||
|
||||
}}
|
||||
|
||||
?>
|
||||
<script>
|
||||
function readURL(input) {
|
||||
$('#FileName').val(input.files[0].name);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
|
||||
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
|
||||
<script>
|
||||
function checkYearMonthAsEmpty()
|
||||
{
|
||||
var i=0;
|
||||
if($("#mon").val() == "") {
|
||||
i++;
|
||||
// alert("No Month Selected!");
|
||||
|
||||
}
|
||||
if($("#yr").val() == "") {
|
||||
i++;
|
||||
//alert("No Year Selected!");
|
||||
}
|
||||
|
||||
if($("#FileName").val() == "") {
|
||||
i++;
|
||||
//alert("No File Uploaded!");
|
||||
}
|
||||
// alert(i);
|
||||
return i;
|
||||
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Banking Report</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
|
||||
<br><br>
|
||||
<div class="col-md-4" >
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong>Opening Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $openingbalance;?></span>
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong>Closing Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $closingbalance;?></span>
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="info-box" style="min-height: 105px;">
|
||||
<span class="info-box-icon bg-red" style="height: 105px;padding:25px;"><i class="fa fa-inr"></i></span>
|
||||
|
||||
|
||||
|
||||
<div class="info-box-content">
|
||||
<!-- <span class="info-box-text"style="color:#dd4b39;"><strong>Cleared Balance</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $creditdebit;?></span> -->
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong> Balance To Clear[Credit]</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $credit;?></span>
|
||||
<span class="info-box-text"style="color:#dd4b39;"><strong> Balance To Clear[Debit]</strong></span>
|
||||
<span class="info-box-number"style="color:black;"><?php echo $debit;?></span>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2" style="border:2px dotted;padding:2%;">
|
||||
|
||||
|
||||
<form id="upload" method="post" action="<?php echo base_url() ?>Bankfiletostatement"; role="form" enctype="multipart/form-data">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4"> <span>Bank Names</span>
|
||||
|
||||
<select type="text" id="bankbranchname" name="bankbranchname" class="form-control select2">
|
||||
<option value="Indian Bank">Select Bank Name</option>
|
||||
|
||||
<option value="Indian Bank"><?php echo 'Indian Bank' ?></option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="box-header">
|
||||
<input type="file" accept=".xlsx" onchange="readURL(this);" id="userfile" name="userfile" />
|
||||
|
||||
|
||||
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input type="submit" class="btn btn-info" value="upload" onclick="save();return false;"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
function save()
|
||||
{
|
||||
var file=$('#userfile').val();
|
||||
var bank=$('#bankbranchname').val();
|
||||
//var x=checkYearMonthAsEmpty();
|
||||
//alert(x);
|
||||
if(file!='' && bank!='')
|
||||
{
|
||||
|
||||
$('form#upload').submit();
|
||||
//$('#userfile').val('');
|
||||
//$('#mon ').val('');
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Please Provide All Information Correctly!");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,338 +1,338 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($debitmapping))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
foreach($financialyear as $item)
|
||||
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" >
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box box-info" id="content">
|
||||
|
||||
<?php
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
$bankid=$ap->bankid;
|
||||
|
||||
}
|
||||
}
|
||||
if(!empty($mappingcashbook))
|
||||
{
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
$bankid=$mc->bankid;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!empty($paidcbook)){
|
||||
|
||||
foreach($paidcbook as $pc)
|
||||
{
|
||||
$pcamount=$pc->total;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($clearbalance)){
|
||||
|
||||
|
||||
$bankclear=$clearbalance;
|
||||
|
||||
|
||||
}
|
||||
if(!empty($balancetoclear)){
|
||||
|
||||
|
||||
$bankbaltoclear=$balancetoclear;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(!empty($invoiceramount))
|
||||
{
|
||||
foreach($invoiceramount as $ia)
|
||||
{
|
||||
$inamount=$ia->amountreceived;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$totalamount=$pcamount+$inamount;
|
||||
//echo $totalamount;
|
||||
?>
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Payment ID</th>
|
||||
<th>Payment Mode</th>
|
||||
<th>Payment Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $bankid?></td>
|
||||
<td>Bank</td>
|
||||
<td><?php echo $bankclear ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>INVOICE NO</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<th>Balance To Received</th>
|
||||
<th>Received Amount</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
<input type="hidden" name="mappingid" id="mappingid<?php echo $i ?>" value="<?php echo $ap->ID?>"/>
|
||||
<input type="hidden" name="credit" id="credit<?php echo $i ?>" value="<?php echo $ap->Credit?>"/>
|
||||
<input type="hidden" name="bankingbalclear" id="bankingbalclear<?php echo $i ?>" value="<?php echo $bankbaltoclear; ?>"/>
|
||||
<input type="hidden" name="bankingclear" id="bankingclear<?php echo $i ?>" value="<?php echo $bankclear; ?>"/>
|
||||
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->bankid; ?>"/>
|
||||
<td align="left" id="tov<?php echo $i ?>"><span><?php echo date_format(date_create($ap->indate),'d-m-Y');?></span></td>
|
||||
<td align="left" id="invno<?php echo $i ?>"><?php echo $ap->invoiceno?></span></td>
|
||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount-$ap->amountreceived?></span></td>
|
||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>Account Name</th>
|
||||
<th>Bankid</th>
|
||||
<th>Amount Type</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Option (₹)</th>
|
||||
<th>Action</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingcashbook)){
|
||||
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td align="left" id="date"><span><?php echo $mc->date?></span></td>
|
||||
<td align="left" id="date"><span><?php echo $mc->name?></span></td>
|
||||
<!--<td align="left" id="pono"><a href="<?= base_url() ?>cashbook/receipt?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>-->
|
||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||
|
||||
<td align="left" id="bankid"><span><?php echo $mc->bankid?></span></td>
|
||||
<td align="left" id="tov"><span><?php echo $mc->amounttype?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbookcredit?bankid='.$mc->bankid; ?>&id=<?php echo $mc->id?>&amount=<?php echo $mc->total?>&balancetoclear=<?php echo $balancetoclear?>&clearbalance=<?php echo $bankclear?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</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>
|
||||
function invoice(i)
|
||||
{
|
||||
|
||||
$('#content').loader('show');
|
||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||
var invoiceno=$('#invno'+i).text();
|
||||
//alert(invoiceno);
|
||||
var bankid=$('#bankingid'+i).val();
|
||||
var amountreceived=$('#amountreceived'+i).text();
|
||||
var bankingclear=$('#bankingclear'+i).val();
|
||||
var mappingid=$('#mappingid'+i).val();
|
||||
var credit=$('#credit'+i).val();
|
||||
var bankingbalclear=$('#bankingbalclear'+i).val();
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{credit:credit,mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>DeleteInvoice",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
if(data)
|
||||
{
|
||||
|
||||
window.location.href ="Bankingstatement";
|
||||
//location.reload();
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
$(document).ready(function() {
|
||||
table = $('#req').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: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($debitmapping))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
foreach($financialyear as $item)
|
||||
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" >
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box box-info" id="content">
|
||||
|
||||
<?php
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
$bankid=$ap->bankid;
|
||||
|
||||
}
|
||||
}
|
||||
if(!empty($mappingcashbook))
|
||||
{
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
$bankid=$mc->bankid;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!empty($paidcbook)){
|
||||
|
||||
foreach($paidcbook as $pc)
|
||||
{
|
||||
$pcamount=$pc->total;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($clearbalance)){
|
||||
|
||||
|
||||
$bankclear=$clearbalance;
|
||||
|
||||
|
||||
}
|
||||
if(!empty($balancetoclear)){
|
||||
|
||||
|
||||
$bankbaltoclear=$balancetoclear;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(!empty($invoiceramount))
|
||||
{
|
||||
foreach($invoiceramount as $ia)
|
||||
{
|
||||
$inamount=$ia->amountreceived;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$totalamount=$pcamount+$inamount;
|
||||
//echo $totalamount;
|
||||
?>
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Payment ID</th>
|
||||
<th>Payment Mode</th>
|
||||
<th>Payment Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $bankid?></td>
|
||||
<td>Bank</td>
|
||||
<td><?php echo $bankclear ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>INVOICE NO</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<th>Balance To Received</th>
|
||||
<th>Received Amount</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
<input type="hidden" name="mappingid" id="mappingid<?php echo $i ?>" value="<?php echo $ap->ID?>"/>
|
||||
<input type="hidden" name="credit" id="credit<?php echo $i ?>" value="<?php echo $ap->Credit?>"/>
|
||||
<input type="hidden" name="bankingbalclear" id="bankingbalclear<?php echo $i ?>" value="<?php echo $bankbaltoclear; ?>"/>
|
||||
<input type="hidden" name="bankingclear" id="bankingclear<?php echo $i ?>" value="<?php echo $bankclear; ?>"/>
|
||||
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->bankid; ?>"/>
|
||||
<td align="left" id="tov<?php echo $i ?>"><span><?php echo date_format(date_create($ap->indate),'d-m-Y');?></span></td>
|
||||
<td align="left" id="invno<?php echo $i ?>"><?php echo $ap->invoiceno?></span></td>
|
||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount-$ap->amountreceived?></span></td>
|
||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>Account Name</th>
|
||||
<th>Bankid</th>
|
||||
<th>Amount Type</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Option (₹)</th>
|
||||
<th>Action</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingcashbook)){
|
||||
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td align="left" id="date"><span><?php echo $mc->date?></span></td>
|
||||
<td align="left" id="date"><span><?php echo $mc->name?></span></td>
|
||||
<!--<td align="left" id="pono"><a href="<?= base_url() ?>cashbook/receipt?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>-->
|
||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||
|
||||
<td align="left" id="bankid"><span><?php echo $mc->bankid?></span></td>
|
||||
<td align="left" id="tov"><span><?php echo $mc->amounttype?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||
<td>
|
||||
<a data-toggle="tooltip" href="<?php echo base_url().'Deleteinvoiceurl?bankid='.$mc->bankid; ?>&id=<?php echo $mc->id?>&amount=<?php echo $mc->total?>&balancetoclear=<?php echo $balancetoclear?>&clearbalance=<?php echo $bankclear?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</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>
|
||||
function invoice(i)
|
||||
{
|
||||
|
||||
$('#content').loader('show');
|
||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||
var invoiceno=$('#invno'+i).text();
|
||||
//alert(invoiceno);
|
||||
var bankid=$('#bankingid'+i).val();
|
||||
var amountreceived=$('#amountreceived'+i).text();
|
||||
var bankingclear=$('#bankingclear'+i).val();
|
||||
var mappingid=$('#mappingid'+i).val();
|
||||
var credit=$('#credit'+i).val();
|
||||
var bankingbalclear=$('#bankingbalclear'+i).val();
|
||||
$.ajax(
|
||||
|
||||
{
|
||||
data:{credit:credit,mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>DeleteInvoice",
|
||||
success:function(data)
|
||||
{
|
||||
|
||||
if(data)
|
||||
{
|
||||
|
||||
window.location.href ="Bankingstatement";
|
||||
//location.reload();
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
$(document).ready(function() {
|
||||
table = $('#req').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: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
@ -1,253 +1,253 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($debitmapping))
|
||||
{
|
||||
|
||||
}
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
|
||||
|
||||
<!-- 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>Cashbook Reports</b></p></h3></center>-->
|
||||
<!--</div>-->
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Invoice settlement</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" >
|
||||
<label for="from_date">
|
||||
<?php echo 'Customer'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="SupplierName" name="SupplierName">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($supplier as $gs):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
</div>-->
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Bank ID</th>
|
||||
<th>Narration</th>
|
||||
<th>InvoiceNO</th>
|
||||
<th>Amount Received (₹)</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($creditmapping)){
|
||||
foreach($creditmapping as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td align="left" id="tov"><span><?php echo $ap->bankid?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->Narration?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->invoiceno?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->amountreceived?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<!--<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($ti,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>-->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</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>
|
||||
$(document).ready(function() {
|
||||
table = $('#req').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: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if(!empty($debitmapping))
|
||||
{
|
||||
|
||||
}
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
|
||||
|
||||
<!-- 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>Cashbook Reports</b></p></h3></center>-->
|
||||
<!--</div>-->
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Invoice settlement</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" >
|
||||
<label for="from_date">
|
||||
<?php echo 'Customer'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="SupplierName" name="SupplierName">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($supplier as $gs):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
</div>-->
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Bank ID</th>
|
||||
<th>Narration</th>
|
||||
<th>InvoiceNO</th>
|
||||
<th>Amount Received (₹)</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($creditmapping)){
|
||||
foreach($creditmapping as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td align="left" id="tov"><span><?php echo $ap->bankid?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->Narration?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->invoiceno?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->amountreceived?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<!--<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($ti,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>-->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</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>
|
||||
$(document).ready(function() {
|
||||
table = $('#req').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: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
291
application/views/bankpaidsupp.php
Normal file
291
application/views/bankpaidsupp.php
Normal file
@ -0,0 +1,291 @@
|
||||
<?php
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
}
|
||||
?>
|
||||
|
||||
<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;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info" id="content">
|
||||
<br>
|
||||
<div class="col-md-1 col-md-offset-11">
|
||||
|
||||
</div>
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Debitors</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||
<p style="margin-left:25px;" id="bamount" </p>
|
||||
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3" style="margin-top:20px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Supplier Name</th>
|
||||
<th>Paid Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdebitsupp)){
|
||||
foreach($bankdebitsupp as $t)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$rate=$t->Amountpaid;
|
||||
$supplierid=$t->SupplierID;
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountpaid?sid=<?php echo $t->Suppliername;?>"><span><?php echo $t->Suppliername?></span></a></td>
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').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: 'Unpaid Purchase Order Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );/** datatable closed */
|
||||
} );/** ready closed */
|
||||
</script>
|
||||
|
||||
|
||||
291
application/views/bankreceivedsupp.php
Normal file
291
application/views/bankreceivedsupp.php
Normal file
@ -0,0 +1,291 @@
|
||||
<?php
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
}
|
||||
?>
|
||||
|
||||
<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;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info" id="content">
|
||||
<br>
|
||||
<div class="col-md-1 col-md-offset-11">
|
||||
|
||||
</div>
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Creditors</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||
<p style="margin-left:25px;" id="bamount" </p>
|
||||
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="margin-top:20px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Supplier Name</th>
|
||||
<th>Paid Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($amountreceivedsupplier)){
|
||||
foreach($amountreceivedsupplier as $t)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$amountreceived=$t->amountreceived;
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>Amountreceived?sid=<?php echo $t->customername;?>"><span><?php echo $t->customername?></span></a></td>
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($amountreceived)?><?php echo round($amountreceived,2)?></span></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').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: 'Receivable Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );/** datatable closed */
|
||||
} );/** ready closed */
|
||||
</script>
|
||||
|
||||
|
||||
348
application/views/bankreport.php
Executable file → Normal file
348
application/views/bankreport.php
Executable file → Normal file
@ -1,175 +1,175 @@
|
||||
|
||||
<?php
|
||||
|
||||
$monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
|
||||
?>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
$(function() {
|
||||
$(".select2").select2();
|
||||
$("#bankreport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
var excel = $('#excel').is(":checked");
|
||||
// alert(excel);
|
||||
|
||||
|
||||
if(excel == true)
|
||||
{
|
||||
alert('Excel Report Not Available for Bank Report..!');
|
||||
return false;
|
||||
}
|
||||
if(bank != '-1' && payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Bank Name and Pay Date');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#pfreport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
|
||||
// alert(payon);
|
||||
|
||||
if(payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Pay Date');
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#esireport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
|
||||
//alert(payon);
|
||||
|
||||
if(payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Pay Date');
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Bank Report Generator</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row" style="border:2px dotted; padding:5%">
|
||||
<form id="BankReportGenerator" action="" method="post" role="form" >
|
||||
<div class="row" >
|
||||
<div class="col-md-4">
|
||||
|
||||
<span for="selectmonth">Select Bank</span>
|
||||
<select id="bank" name="bank" class="form-control select2" style="width: 100%;">
|
||||
<option value="-1">Select Bank</option>
|
||||
<?php
|
||||
if(!empty($Bank))
|
||||
{
|
||||
|
||||
foreach ($Bank as $b)
|
||||
{
|
||||
|
||||
|
||||
if (!empty($b->Bank_name))
|
||||
{
|
||||
|
||||
echo "<option value=\"".$b->Bank_name."\">".$b->Bank_name."</option>";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div id="content"></div>
|
||||
<div class="col-md-4 col-md-offset-2">
|
||||
|
||||
|
||||
<span>Month</span>
|
||||
<select id="month" name="month" class="form-control select2" type="text" class="form-control">
|
||||
<option value="-1">Select Pay Date</option>
|
||||
<?php
|
||||
if(!empty($Payon)){
|
||||
foreach($Payon as $pay)
|
||||
{
|
||||
$m = substr($pay->Month_Year,0,2);
|
||||
$y = substr($pay->Month_Year,3);
|
||||
$tot = $monthsoptions[$m]."-".$y;
|
||||
echo "<option value=\"".$pay->Month_Year."\">".$tot."</option>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4 col-md-offset-6">
|
||||
<input type="checkbox" class="" id="excel" name="excel" value="excel" /><span>Excel</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||
|
||||
<input type="submit" class="btn btn-info" id="bankreport" name="Bank_Report" value="Bank Report" />
|
||||
<input type="submit" class="btn btn-info" id="pfreport" name="PF_Report" value="PF Report" />
|
||||
<input type="submit" class="btn btn-info" id="esireport" name="ESI_Report" value="ESI Report" />
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
<?php
|
||||
|
||||
$monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
|
||||
?>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
$(function() {
|
||||
$(".select2").select2();
|
||||
$("#bankreport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
var excel = $('#excel').is(":checked");
|
||||
// alert(excel);
|
||||
|
||||
|
||||
if(excel == true)
|
||||
{
|
||||
alert('Excel Report Not Available for Bank Report..!');
|
||||
return false;
|
||||
}
|
||||
if(bank != '-1' && payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Bank Name and Pay Date');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#pfreport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
|
||||
// alert(payon);
|
||||
|
||||
if(payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Pay Date');
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#esireport").click(function(){
|
||||
|
||||
|
||||
var bank = $('#bank').val();
|
||||
var payon = $('#month').val();
|
||||
|
||||
//alert(payon);
|
||||
|
||||
if(payon !='-1')
|
||||
{
|
||||
$('#content').loader('show');
|
||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||
$('form#BankReportGenerator').submit();
|
||||
$('#content').loader('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Select Pay Date');
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Bank Report Generator</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row" style="border:2px dotted; padding:5%">
|
||||
<form id="BankReportGenerator" action="" method="post" role="form" >
|
||||
<div class="row" >
|
||||
<div class="col-md-4">
|
||||
|
||||
<span for="selectmonth">Select Bank</span>
|
||||
<select id="bank" name="bank" class="form-control select2" style="width: 100%;">
|
||||
<option value="-1">Select Bank</option>
|
||||
<?php
|
||||
if(!empty($Bank))
|
||||
{
|
||||
|
||||
foreach ($Bank as $b)
|
||||
{
|
||||
|
||||
|
||||
if (!empty($b->Bank_name))
|
||||
{
|
||||
|
||||
echo "<option value=\"".$b->Bank_name."\">".$b->Bank_name."</option>";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div id="content"></div>
|
||||
<div class="col-md-4 col-md-offset-2">
|
||||
|
||||
|
||||
<span>Month</span>
|
||||
<select id="month" name="month" class="form-control select2" type="text" class="form-control">
|
||||
<option value="-1">Select Pay Date</option>
|
||||
<?php
|
||||
if(!empty($Payon)){
|
||||
foreach($Payon as $pay)
|
||||
{
|
||||
$m = substr($pay->Month_Year,0,2);
|
||||
$y = substr($pay->Month_Year,3);
|
||||
$tot = $monthsoptions[$m]."-".$y;
|
||||
echo "<option value=\"".$pay->Month_Year."\">".$tot."</option>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4 col-md-offset-6">
|
||||
<input type="checkbox" class="" id="excel" name="excel" value="excel" /><span>Excel</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||
|
||||
<input type="submit" class="btn btn-info" id="bankreport" name="Bank_Report" value="Bank Report" />
|
||||
<input type="submit" class="btn btn-info" id="pfreport" name="PF_Report" value="PF Report" />
|
||||
<input type="submit" class="btn btn-info" id="esireport" name="ESI_Report" value="ESI Report" />
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
208
application/views/bankreportprint.php
Executable file → Normal file
208
application/views/bankreportprint.php
Executable file → Normal file
File diff suppressed because one or more lines are too long
@ -42,7 +42,105 @@ foreach($financialyear as $item)
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Creditors</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||
<p style="margin-left:25px;" id="bamount" </p>
|
||||
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<input type="hidden" id="supplierid" name="supplierid" value="<?php echo $t->SupplierID?>">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3" style="margin-top:20px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
@ -66,8 +164,8 @@ foreach($financialyear as $item)
|
||||
$tot_amount=0;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdepit)){
|
||||
foreach($bankdepit as $t)
|
||||
if(!empty($bankunpaid)){
|
||||
foreach($bankunpaid as $t)
|
||||
{
|
||||
|
||||
$status=$t->Paymentstatus;
|
||||
@ -128,7 +226,45 @@ foreach($financialyear as $item)
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
|
||||
291
application/views/bankunreceivedsupp.php
Normal file
291
application/views/bankunreceivedsupp.php
Normal file
@ -0,0 +1,291 @@
|
||||
<?php
|
||||
foreach($financialyear as $item)
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
}
|
||||
?>
|
||||
|
||||
<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;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info" id="content">
|
||||
<br>
|
||||
<div class="col-md-1 col-md-offset-11">
|
||||
|
||||
</div>
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Creditors</b></p></h3></center>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||
<p style="margin-left:25px;" id="bamount" </p>
|
||||
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="margin-top:20px;">
|
||||
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" value="View Purchase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Supplier Name</th>
|
||||
<th>Paid Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_amount=0;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($amountunreceivedsupplier)){
|
||||
foreach($amountunreceivedsupplier as $t)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$invoice_total=$t->invoice_total;
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountunreceived?sid=<?php echo $t->client_name;?>"><span><?php echo $t->client_name?></span></a></td>
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($invoice_total)?><?php echo round($invoice_total,2)?></span></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:left;"><strong>Total</strong></td>
|
||||
|
||||
|
||||
<td class="amount"><strong>
|
||||
<?php echo $tot_amount; ?>
|
||||
</strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').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: 'Receivable Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );/** datatable closed */
|
||||
} );/** ready closed */
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user