check box total order value remove space
This commit is contained in:
parent
ccf97a5896
commit
7297c8cf93
@ -340,6 +340,7 @@ function GetPayment(i)
|
||||
|
||||
if(x==true)
|
||||
{
|
||||
|
||||
row = parseInt(row)+1;
|
||||
$('#Rowid').val(row);
|
||||
var date= document.getElementById ("date"+i).innerText;//value taken from table, col name : date
|
||||
@ -413,7 +414,9 @@ function GetPayment(i)
|
||||
value:invoicepayment
|
||||
}).appendTo('#HideAmtPaidDiv');
|
||||
|
||||
var poamount = $('#hideamtpaid'+i).val();
|
||||
var poamount1 = $('#hideamtpaid'+i).val();
|
||||
var poamount=poamount1.trim();
|
||||
//alert(poamount+'1');
|
||||
var ponovalue = i+','+igrlineitem+','+poamount;
|
||||
temppo.push(ponovalue);
|
||||
//console.log(temppo);
|
||||
@ -423,7 +426,7 @@ function GetPayment(i)
|
||||
intex = parseInt(intex)+1;
|
||||
|
||||
var bankdebitamount=$('#debitamount').val();
|
||||
//var totalvalue=$('#addvalue').val();
|
||||
var totalvalue=$('#addvalue').val();
|
||||
//var balanceamount=bankdebitamount-totalvalue;
|
||||
// alert(bankdebitamount);
|
||||
// alert(totalvalue);
|
||||
@ -439,7 +442,7 @@ function GetPayment(i)
|
||||
else
|
||||
{
|
||||
|
||||
alert('esle');
|
||||
|
||||
var rr = $('#Rowid').val();
|
||||
row = parseInt(rr)-1;
|
||||
|
||||
@ -532,12 +535,13 @@ function GetAmount(i)
|
||||
var igr =document.getElementById ("igrno"+i).innerText;
|
||||
var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
|
||||
var igrlineitem=igrlineitem1.trim();
|
||||
alert(igrlineitem+'true');
|
||||
|
||||
var supname =document.getElementById ("sn"+i).innerText;
|
||||
var supid =document.getElementById ("sid"+i ).innerText;
|
||||
var totalordervalue =document.getElementById ("tov"+i ).innerText;
|
||||
var balancetopay =document.getElementById ("qw"+i ).innerText;
|
||||
|
||||
var balancetopay1 =document.getElementById ("qw"+i ).innerText;
|
||||
var balancetopay =balancetopay1.trim();
|
||||
//alert(balancetopay+'eee');
|
||||
for(k=1;k<=i;k++)
|
||||
{
|
||||
//alert(k);
|
||||
@ -599,7 +603,7 @@ function calculategrandtotal(){
|
||||
|
||||
$.each(temppo, function( index, value )
|
||||
{
|
||||
alert(temppo);
|
||||
|
||||
var res2 = value.split(',');
|
||||
tempTotal[index]=parseFloat(res2[2]);
|
||||
//alert(tempTotal[index]);
|
||||
@ -633,7 +637,7 @@ function Save()
|
||||
// alert('rwval'+'-'+rw);
|
||||
check = parseFloat(check)+1;
|
||||
var bankdebitamount=$('#debitamount').val();
|
||||
alert(bankdebitamount+'da');
|
||||
|
||||
// alert('bankdebitamountval'+'-'+bankdebitamount);
|
||||
var bid =$('#bankid').val();
|
||||
|
||||
|
||||
@ -339,7 +339,9 @@ if(x==true)
|
||||
var cusid =document.getElementById ("clientid"+i ).innerText;
|
||||
|
||||
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
|
||||
var invoicereceived=document.getElementById ("invoice_balance"+i ).innerText;
|
||||
var invoicereceived1=document.getElementById ("invoice_balance"+i ).innerText;
|
||||
var invoicereceived=invoicereceived1.trim();
|
||||
//alert(invoicereceived+'inv');
|
||||
$('#invoicereceived'+i).val(invoicereceived);
|
||||
|
||||
$('<input>').attr({
|
||||
@ -422,8 +424,6 @@ else
|
||||
|
||||
var a = tempinvoice.indexOf(invoicevalue);
|
||||
var b = tempTotal.indexOf(Payment);
|
||||
//alert(a);
|
||||
//alert(b);
|
||||
|
||||
if(a!=-1)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user