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 tcpaid='';
// function checkamount2(type,id)
// {
// var type = type;
// var id =id;
// alert('Statemenet tYpe and id'+type+'-'+id);
// }
function checkamount(type,ide)
{
//alert(type);
//$('#addvalue').val('0.00');
// alert(ide);
globalModelValue = ide;
var checkInput = document.getElementById("checkboxcheckbox"+ide);
@ -443,8 +436,8 @@ function checkamount(type,ide)
{
if(type==1 && id!= "CLOSE" )
{
//alert(type)
//alert("debit");
$("#myModaldebit").modal({
backdrop: 'static',
eyboard: false
@ -452,8 +445,8 @@ function checkamount(type,ide)
}
else if(type==0 && idc!= "CLOSE")
{
//alert(type)
//alert("credit");
$("#myModalcredit").modal({
backdrop: 'static',
eyboard: false
@ -481,7 +474,7 @@ $('#myCheckBoxCancelcredit').click(function() {
var value=ide;
//alert('row id'+value);
i1=value;
//alert(i1)
type2= type;
amounttype=type2;
@ -639,16 +632,17 @@ if (x==true)
function checkscreen()
function checkscreen()
{
var i=i1;
var avalue= $('#addvalue').val();
//alert(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 date=$('#date'+i).text();
var debit=$('#debit'+i).text();
@ -660,6 +654,7 @@ if (x==true)
localStorage.setItem('paidedamount',alreadypaid);
var RowCount= $('#Rowid').val();
var idvalue = id+'-'+debit;
if(avalue=='')
{
@ -723,26 +718,7 @@ if (x==true)
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
{
@ -763,7 +739,6 @@ if (x==true)
}
$(document).ready(function() {
table = $('#req').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +