bankdebit

This commit is contained in:
gayathri1990 2018-11-30 13:04:03 +05:30
parent 8d874ffa75
commit 7de759a690

View File

@ -418,7 +418,7 @@ function GetPayment(i)
var poamount1 = $('#hideamtpaid'+i).val(); var poamount1 = $('#hideamtpaid'+i).val();
var poamount=poamount1.trim(); var poamount=poamount1.trim();
//alert(poamount+'1'); //alert(poamount+'1');
var ponovalue = i+','+pono+','+poamount; var ponovalue = i+','+igrno+','+poamount;
temppo.push(ponovalue); temppo.push(ponovalue);
console.log(temppo); console.log(temppo);
@ -449,7 +449,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 Inid1 = document.getElementById ('pono'+i ).innerText var Inid1 = document.getElementById ('igrno'+i ).innerText
var Inid=Inid1.trim(); var Inid=Inid1.trim();
var ponovalue = i+','+Inid+','+Payment; var ponovalue = i+','+Inid+','+Payment;
@ -535,7 +535,8 @@ function GetAmount(i)
var date= document.getElementById ("date"+i).innerText; var date= document.getElementById ("date"+i).innerText;
var pono1 =document.getElementById ("pono"+i).innerText; var pono1 =document.getElementById ("pono"+i).innerText;
var pono=pono1.trim(); var pono=pono1.trim();
// var igr =document.getElementById ("igrno"+i).innerText; var igrno1 =document.getElementById ("igrno"+i).innerText;
var igrno=igrno1.trim();
// var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText; // var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
// var igrlineitem=igrlineitem1.trim(); // var igrlineitem=igrlineitem1.trim();
@ -548,10 +549,10 @@ function GetAmount(i)
for(k=1;k<=i;k++) for(k=1;k<=i;k++)
{ {
//alert(k); //alert(k);
var idcheck=$('#hidepono'+k).val(); var idcheck=$('#hideigrno'+k).val();
//var idcheck=idcheck1.trim(); //var idcheck=idcheck1.trim();
if(pono == idcheck) if(igrno == idcheck)
{ {
var cid=k; var cid=k;
break; break;
@ -569,7 +570,7 @@ function GetAmount(i)
$('#hidesupid'+cid).val(supid); $('#hidesupid'+cid).val(supid);
$('#hidettlPoamt'+cid).val(totalordervalue); $('#hidettlPoamt'+cid).val(totalordervalue);
$('#hideamtpaid'+cid).val(amount); $('#hideamtpaid'+cid).val(amount);
// $('#hideigrno'+cid).val(igr); $('#hideigrno'+cid).val(igrno);
// $('#hideigrline'+cid).val(igrlineitem); // $('#hideigrline'+cid).val(igrlineitem);
var totalvalue=$('#addvalue').val(); var totalvalue=$('#addvalue').val();
@ -587,9 +588,9 @@ function GetAmount(i)
$.each(temppo, function( index, value ) $.each(temppo, function( index, value )
{ {
var res2 = value.split(','); var res2 = value.split(',');
if(res2[1] == pono){ if(res2[1] == igrno){
temppo[index] = i+','+pono+','+amount; temppo[index] = i+','+igrno+','+amount;
} }
}); });