Commit c5b90af3 authored by wansari's avatar wansari

D14IKAT004 updated function checkRate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97260 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a1b3dccd
...@@ -803,7 +803,7 @@ function setCheckedTrue() ...@@ -803,7 +803,7 @@ function setCheckedTrue()
for(var i=1;i<=tot; i++) for(var i=1;i<=tot; i++)
{ {
if(document.getElementById("Detail2."+i+".quantity") == undefined) if(document.getElementById("Detail2."+i+".quantity") == undefined || document.getElementById("Detail2."+i+".quantity").value == 0)
{ {
continue; continue;
} }
...@@ -961,5 +961,26 @@ function dlvChange(id) ...@@ -961,5 +961,26 @@ function dlvChange(id)
//alert(document.getElementById("Detail3."+id+".dlv_date").value); //alert(document.getElementById("Detail3."+id+".dlv_date").value);
} }
function checkRate()
{
for(var i=1;i<=100;i++)
{
if(document.getElementById("Detail3."+i+".rate").value == 0)
{
if(document.getElementById("Detail3."+i+".selectbox").checked == true)
{
alert("Record "+i+" has 0 rate and amount...! can not save the record.");
return false;
}
else
{
continue;
}
}
else
{
continue;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment