Commit 8bd7ef51 authored by rbhogale's avatar rbhogale

Changed by Rohan on 17-06-13 for system not ask no of articales in case of pgrl location


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93225 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b143bf9a
......@@ -1567,7 +1567,10 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
String accptCriteria="";//Ashish Sonawane 28/08/12
String siteCodeMf="";//Ashish Sonawane 28/08/12
String purcOrderdb = "";
//Changed by Rohan on 12-June-13 for define variable.start
String invStat = "";
String pgrlInvStat = "";
//Changed by Rohan on 12-June-13 for define variable.end
java.sql.Date asnDateDb = null;
java.sql.Timestamp expDateDb = null;
java.sql.Timestamp mfgDate = null;
......@@ -2414,13 +2417,20 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
}
*/
}
sql = "SELECT case when loc_type is null then ' ' else loc_type end from location where loc_code = ? ";
//Changed by Rohan on 17-June-13 for getting inv stat of location.start
//sql = "SELECT case when loc_type is null then ' ' else loc_type end from location where loc_code = ? ";
pgrlInvStat = distComm.getDisparams("999999","PGRL_INVSTAT",conn);
sql = "SELECT case when loc_type is null then ' ' else loc_type end,INV_STAT from location where loc_code = ? ";
//Changed by Rohan on 17-June-13 for getting inv stat of location.end
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, scanLocCode);
rs = pstmt.executeQuery();
if(rs.next())
{
locType = rs.getString(1);
//Changed by Rohan on 17-June-13 for getting inv stat of location
invStat = checkNull(rs.getString("INV_STAT"));
}
rs.close();
rs = null;
......@@ -2661,7 +2671,12 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
}
extraArtForLastPallet-=nosOfArtPerPallet;
//Changed by Rohan 17-June-13 for appending no of art 0 in case of pgrl location.start
if(invStat.trim().equalsIgnoreCase(pgrlInvStat.trim()))
{
valueXmlString.append("<no_art><![CDATA[").append( "0" ).append("]]></no_art>\r\n");
}
//Changed by Rohan 17-June-13 for appending no of art 0 in case of pgrl location.end
valueXmlString.append("<batch_no><![CDATA[").append( checkNull(rs.getString("LOT_NO")) ).append("]]></batch_no>\r\n");
valueXmlString.append("<status><![CDATA[").append("O").append("]]></status>\r\n");
valueXmlString.append("<potency_perc><![CDATA[").append("0").append("]]></potency_perc>\r\n");
......
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