Commit aa28a5f4 authored by wansari's avatar wansari

W16FKAT002 updated JS for porder


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104034 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b412ebf2
......@@ -2631,7 +2631,11 @@ function pageLoad()
}
var records = preValData.split("||||");
for(var i = 0; i < records.length-1; i++)
records.sort();
//for(var i = 0; i < records.length-1; i++)
for(var i = 1; i < records.length; i++)
{
var sizeItemCode = "";
......@@ -2649,7 +2653,8 @@ function pageLoad()
//document.getElementById("active").value = ++s;
if(i<records.length-2)
//if(i<records.length-2)
if(i<records.length-1)
{
document.getElementById("active").value = ++s;
sidebarNew();
......@@ -4131,16 +4136,20 @@ function itemChange(field)
if(field == "item_code")
{
document.getElementById("AddButton").style.pointerEvents = "none";
var index = document.getElementById("active").value;
fieldValue = document.getElementById("itmcode"+index).value;
if(fieldValue.trim() == null || fieldValue.trim() == "")
{
document.getElementById("itmcode"+index).value = "";
document.getElementById("AddButton").style.pointerEvents = "auto";
return false;
}
else if(fieldValue.trim() == currData.trim())
{
document.getElementById("AddButton").style.pointerEvents = "auto";
return false;
}
......@@ -4517,3 +4526,7 @@ function closeAccordian2(obj,index)
}
/*******Delete Accordian [END]**********/
function doHideMsg(tableName)
{
document.getElementById(tableName).style.display = 'none';
}
\ No newline at end of file
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