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