Commit 4edb5efa authored by asant's avatar asant

Changed made in AsnIC setting no_pallet as no_art if no_art is greater than 1.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193057 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dc8a3d32
......@@ -1346,6 +1346,21 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
columnValue = genericUtility.getColumnValue("item_code",dom);
lotNo = genericUtility.getColumnValue("lot_no",dom);
//Added by AMOL S on 16-11-18 as per KB sir[START]
String noOfArt = E12GenericUtility.checkNull((genericUtility.getColumnValue("no_art",dom)));
int noOfArtVal = 0;
try
{
System.out.println("#### No of Article ["+noOfArt+"]");
noOfArtVal = Integer.parseInt(noOfArt);
}
catch(NumberFormatException e)
{
noOfArt = ""+0;
}
//Added by AMOL S on 16-11-18 as per KB sir[END]
sql = " SELECT DESCR FROM ITEM WHERE ITEM_CODE = ?";
System.out.println("columnValue ["+columnValue+" ]");
System.out.println("-------<!@#>------------------------<!@#>-----------------");
......@@ -1370,7 +1385,16 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
{
System.out.println("-------<!@#>-----------------quantity-------------------");
itmQty=Double.parseDouble(genericUtility.getColumnValue("quantity",dom));
valueXmlString.append( "<no_pallet><![CDATA[" ).append(findNosOfPallet(genericUtility.getColumnValue("item_code",dom),lotNo, itmQty ,perPalletVolume,perPalletWeight, conn)).append( "]]></no_pallet>\r\n" );
//Added by AMOL S 16-11-18 as per KB sir[START]
if( noOfArtVal > 1 )
{
valueXmlString.append( "<no_pallet><![CDATA["+noOfArt+"]]></no_pallet>\r\n");
}
else
{
valueXmlString.append( "<no_pallet><![CDATA[" ).append(findNosOfPallet(genericUtility.getColumnValue("item_code",dom),lotNo, itmQty ,perPalletVolume,perPalletWeight, conn)).append( "]]></no_pallet>\r\n" );
}
//Added by AMOL S 16-11-18 as per KB sir[END]
System.out.println("------------------------APPENDING DESCRIPTION-------------------");
}
......
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