bankstatement
This commit is contained in:
parent
1e0bf0cdbf
commit
7cbafd5994
3969
application/logs/log-2018-05-10.php
Normal file
3969
application/logs/log-2018-05-10.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -242,7 +242,7 @@ function bankstatement($fdate,$tdate,$fa,$aa){
|
|||||||
$this->db->join ('ip_invoices iv','iv.invoice_id = iva.invoice_id','left');
|
$this->db->join ('ip_invoices iv','iv.invoice_id = iva.invoice_id','left');
|
||||||
$this->db->join ('ip_clients ic','ic.client_id = iv.client_id','left');
|
$this->db->join ('ip_clients ic','ic.client_id = iv.client_id','left');
|
||||||
$this->db->join ('T_Bankinvoicereport BI','BI.invoiceno = iv.invoice_number','left');
|
$this->db->join ('T_Bankinvoicereport BI','BI.invoiceno = iv.invoice_number','left');
|
||||||
$this->db->where('iv.invoice_status_id','2');
|
$this->db->where_in('iv.invoice_status_id','2');
|
||||||
$this->db->where('iva.receivedstatus !=','ST065');
|
$this->db->where('iva.receivedstatus !=','ST065');
|
||||||
$this->db->where('iv.invoice_date_created BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
$this->db->where('iv.invoice_date_created BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||||
$this->db->or_where('ic.client_id',$Customer);
|
$this->db->or_where('ic.client_id',$Customer);
|
||||||
|
|||||||
@ -367,6 +367,7 @@ var total=0;
|
|||||||
function GetPayment(i)
|
function GetPayment(i)
|
||||||
{
|
{
|
||||||
//alert('check');
|
//alert('check');
|
||||||
|
var value=i;
|
||||||
var bankdebitamount=$('#debitamount').val();
|
var bankdebitamount=$('#debitamount').val();
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
var balanceamount=bankdebitamount-totalvalue;
|
var balanceamount=bankdebitamount-totalvalue;
|
||||||
@ -374,7 +375,7 @@ function GetPayment(i)
|
|||||||
var x = document.getElementById('checkboxcheckbox'+i).checked;
|
var x = document.getElementById('checkboxcheckbox'+i).checked;
|
||||||
|
|
||||||
var amount= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
var amount= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
||||||
//alert(amount);
|
//alert(amount+'inv');
|
||||||
var negative=0;
|
var negative=0;
|
||||||
if(amount<0)
|
if(amount<0)
|
||||||
{
|
{
|
||||||
@ -410,18 +411,23 @@ function GetPayment(i)
|
|||||||
var date= document.getElementById ( "date"+i ).innerText;
|
var date= document.getElementById ( "date"+i ).innerText;
|
||||||
var pono =document.getElementById ( "pono"+i ).innerText;
|
var pono =document.getElementById ( "pono"+i ).innerText;
|
||||||
var poamount =document.getElementById ( "qw"+i ).innerText;
|
var poamount =document.getElementById ( "qw"+i ).innerText;
|
||||||
//alert(invoicepayment+'amny');
|
var tempid = "debited"+value;
|
||||||
//alert(invoicepayment+'amny1');
|
//var credit=parseFloat(document.getElementById(tempid).innerText);
|
||||||
var ponovalue = pono+'-'+poamount;
|
var t = '#invoicepaymet'+i;
|
||||||
|
var poamount1 =$(t).val();
|
||||||
|
alert(poamount1+'amt');
|
||||||
|
var ponovalue = pono+','+poamount;
|
||||||
temppo.push(ponovalue);
|
temppo.push(ponovalue);
|
||||||
//var res1 = temppo.split('-');
|
console.log(temppo);
|
||||||
var total=0;
|
var total=0;
|
||||||
$.each(temppo, function( index, value )
|
$.each(temppo, function( index, value )
|
||||||
{
|
{
|
||||||
var res2 = value.split('-');
|
var res2 = value.split(',');
|
||||||
|
|
||||||
var pono=res2[0];
|
var pono=res2[0];
|
||||||
|
//alert(pono+'pono');
|
||||||
var bam=res2[1];
|
var bam=res2[1];
|
||||||
|
//alert(bam+'bam');
|
||||||
total=parseFloat(bam)+parseFloat(total);
|
total=parseFloat(bam)+parseFloat(total);
|
||||||
$('#addvalue').val(parseFloat(total).toFixed(2));
|
$('#addvalue').val(parseFloat(total).toFixed(2));
|
||||||
});
|
});
|
||||||
@ -434,28 +440,28 @@ function GetPayment(i)
|
|||||||
var RowCount= $('#Rowid').val();
|
var RowCount= $('#Rowid').val();
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'text',
|
||||||
name:'date1'+j,
|
name:'date1'+j,
|
||||||
id:'date1'+j,
|
id:'date1'+j,
|
||||||
value:date
|
value:date
|
||||||
}).appendTo('#date1');
|
}).appendTo('#date1');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'text',
|
||||||
name:'purchaseono'+j,
|
name:'purchaseono'+j,
|
||||||
id:'purchaseono'+j,
|
id:'purchaseono'+j,
|
||||||
value:pono
|
value:pono
|
||||||
}).appendTo('#purchaseono');
|
}).appendTo('#purchaseono');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'text',
|
||||||
name:'supname'+j,
|
name:'supname'+j,
|
||||||
id:'supname'+j,
|
id:'supname'+j,
|
||||||
value:supname
|
value:supname
|
||||||
}).appendTo('#supname');
|
}).appendTo('#supname');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'text',
|
||||||
name:'totala'+j,
|
name:'totala'+j,
|
||||||
id:'totala'+j,
|
id:'totala'+j,
|
||||||
value:invoicepayment
|
value:invoicepayment
|
||||||
@ -463,7 +469,7 @@ function GetPayment(i)
|
|||||||
|
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'text',
|
||||||
name:'ttamnt'+j,
|
name:'ttamnt'+j,
|
||||||
id:'ttamnt'+j,
|
id:'ttamnt'+j,
|
||||||
value:totalordervalue
|
value:totalordervalue
|
||||||
@ -508,7 +514,7 @@ else
|
|||||||
var Payment= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val());
|
var Payment= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val());
|
||||||
|
|
||||||
var Inid = document.getElementById ('pono'+i ).innerText
|
var Inid = document.getElementById ('pono'+i ).innerText
|
||||||
var ponovalue = Inid+'-'+Payment;
|
var ponovalue = Inid+','+Payment;
|
||||||
//alert(Inid+'else');
|
//alert(Inid+'else');
|
||||||
//temppo.pull(Inid);
|
//temppo.pull(Inid);
|
||||||
var a = temppo.indexOf(ponovalue);
|
var a = temppo.indexOf(ponovalue);
|
||||||
|
|||||||
@ -109,6 +109,7 @@ if(!empty($debitmapping))
|
|||||||
|
|
||||||
|
|
||||||
$totalamount=$pcamount+$inamount;
|
$totalamount=$pcamount+$inamount;
|
||||||
|
//echo $totalamount;
|
||||||
?>
|
?>
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<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>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
||||||
|
|||||||
@ -161,7 +161,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<input type="text" id="addvalue" name="addvalue">
|
<input type="hidden" id="addvalue" name="addvalue">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -492,6 +492,12 @@ if (x==true)
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
document.getElementById('checkboxcheckbox'+value).checked = false;
|
document.getElementById('checkboxcheckbox'+value).checked = false;
|
||||||
}
|
}
|
||||||
|
if(credit==0)
|
||||||
|
{
|
||||||
|
alert('status is closed');
|
||||||
|
document.getElementById('checkboxcheckbox'+value).checked = false;
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -566,7 +572,7 @@ if (x==true)
|
|||||||
var i=i1;
|
var i=i1;
|
||||||
var avalue= $('#addvalue').val();
|
var avalue= $('#addvalue').val();
|
||||||
|
|
||||||
//alert(avalue);
|
alert(avalue);
|
||||||
localStorage.setItem('test',avalue);
|
localStorage.setItem('test',avalue);
|
||||||
var e = document.getElementById("selectedId");
|
var e = document.getElementById("selectedId");
|
||||||
var value = e.options[e.selectedIndex].value;
|
var value = e.options[e.selectedIndex].value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user