bankstatement changes

This commit is contained in:
gandhimathi 2018-06-06 13:00:31 +05:30
parent 0372efa232
commit 07fe0900b6

View File

@ -417,20 +417,13 @@ var debit1='';
var credit1=''; var credit1='';
var tcpaid=''; var tcpaid='';
// function checkamount2(type,id)
// {
// var type = type;
// var id =id;
// alert('Statemenet tYpe and id'+type+'-'+id);
// }
function checkamount(type,ide) function checkamount(type,ide)
{ {
//alert(type);
//$('#addvalue').val('0.00');
// alert(ide);
globalModelValue = ide; globalModelValue = ide;
var checkInput = document.getElementById("checkboxcheckbox"+ide); var checkInput = document.getElementById("checkboxcheckbox"+ide);
@ -443,8 +436,8 @@ function checkamount(type,ide)
{ {
if(type==1 && id!= "CLOSE" ) if(type==1 && id!= "CLOSE" )
{ {
//alert(type)
//alert("debit");
$("#myModaldebit").modal({ $("#myModaldebit").modal({
backdrop: 'static', backdrop: 'static',
eyboard: false eyboard: false
@ -452,8 +445,8 @@ function checkamount(type,ide)
} }
else if(type==0 && idc!= "CLOSE") else if(type==0 && idc!= "CLOSE")
{ {
//alert(type)
//alert("credit");
$("#myModalcredit").modal({ $("#myModalcredit").modal({
backdrop: 'static', backdrop: 'static',
eyboard: false eyboard: false
@ -481,7 +474,7 @@ $('#myCheckBoxCancelcredit').click(function() {
var value=ide; var value=ide;
//alert('row id'+value); //alert('row id'+value);
i1=value; i1=value;
//alert(i1)
type2= type; type2= type;
amounttype=type2; amounttype=type2;
@ -644,11 +637,12 @@ if (x==true)
var i=i1; var i=i1;
var avalue= $('#addvalue').val(); var avalue= $('#addvalue').val();
//alert(avalue);
localStorage.setItem('test',avalue); localStorage.setItem('test',avalue);
var e = document.getElementById("selectedId");
var value = e.options[e.selectedIndex].value;
var text = e.options[e.selectedIndex].text; var value= document.querySelector('input[name="selectedId"]:checked').value;
var id=$('#bankid'+i).text(); var id=$('#bankid'+i).text();
var date=$('#date'+i).text(); var date=$('#date'+i).text();
var debit=$('#debit'+i).text(); var debit=$('#debit'+i).text();
@ -661,6 +655,7 @@ if (x==true)
var RowCount= $('#Rowid').val(); var RowCount= $('#Rowid').val();
var idvalue = id+'-'+debit; var idvalue = id+'-'+debit;
if(avalue=='') if(avalue=='')
{ {
//alert(avalue); //alert(avalue);
@ -723,26 +718,7 @@ if (x==true)
window.location.href="Bankcash"; window.location.href="Bankcash";
// alert(tcpaid+'tc');
// $('#content').loader('show');
// $.ajax({
// data:{bankdate:date,bankid:id,type:amounttype,bankamount:avalue,forstatus:avalue,alreadypaid:tpaid,alreadycreditpaid:tcpaid,debitamount:debit1,creditamount:credit1},
// type:"POST",
// url:"<?php echo base_url() ?>Payment",
// success:function(data)
// {
// window.location.href="Bankcash";
// content.loader.show();
// // if(data)
// // {
// // alert(data);
// // //location.reload();
// // }
// }
// });
} }
else else
{ {
@ -763,7 +739,6 @@ if (x==true)
} }
$(document).ready(function() { $(document).ready(function() {
table = $('#req').DataTable( { table = $('#req').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" + "dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +