Commit 9d245e02 authored by manohar's avatar manohar

rate validation removed as was there in validation component


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91589 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 73cdf48c
......@@ -670,11 +670,11 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//Calls nvo_business_object_dist gbf_pick_rate() method i.e. converted below as pickRate() method
rate = pickRate(priceList, tranDate, rs.getString("ITEM_CODE"), rs.getString("LOT_NO"),'D');
}
if (rate <= 0)
/*if (rate <= 0)
{
errCode = "VTRATE1";
flag = false;
}
}*/
if (flag == true)
{
valueXmlString.append("<rate>").append("<![CDATA[").append(rate).append("]]>").append("</rate>\r\n");
......@@ -1728,7 +1728,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//changed by msalam on 22/09/07 start
//if no record found then promp error
if ( isRecordFound == false )
System.out.println("manohar 08/08/11 isRecordFound [" + isRecordFound + "] partQty [" + partQty + "]" );
if ( !isRecordFound && "X".equalsIgnoreCase(partQty))
{
errCode = "VTDIST16";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",conn1);
......@@ -1737,14 +1738,14 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//changed by msalam on 22/09/07 end
if (remQuantity > 0)
{
if (partQty.equalsIgnoreCase("W"))
if (remQuantity > 0 && "X".equalsIgnoreCase(partQty))
{
//if (partQty.equalsIgnoreCase("W"))
//{
errCode = "VTSTKW";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",conn1);
return errString;
}
//}
}
}//end if
else // if Lot No is entered by user
......@@ -1822,7 +1823,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//System.out.println("count :"+count);
}
rs1.close();
if (count == 0)
System.out.println("manohar 08/08/11 count [" + count + "] partQty [" + partQty + "]" );
if (count == 0 && "X".equalsIgnoreCase(partQty))
{
errCode = "VTDIST16";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",conn1);
......
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