Commit b05728d6 authored by dsawant's avatar dsawant

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96275 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bbc0c83b
......@@ -706,7 +706,7 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
System.out.println("DOM322 Elements>>["+genericUtility.serializeDom(dom2).toString()+"]");
String distOrder = "",itemCode = "",sql="",unit="",packCode="",tranType ="",siteCodeDlv="";
java.sql.Timestamp currDate = null;
double grossWeight = 0,netWeight=0,tareWeight=0,noOfArt=0;
double grossWeight = 0,netWeight=0,tareWeight=0,noOfArt=0,allQty=0,setQty=0;
SimpleDateFormat sdf = null;
String currAppdate = "";
String tranid ="";
......@@ -2072,7 +2072,7 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
if(lotSl != null && lotSl.trim().length() > 0)
{
//item_code,no_art,quantity,amount,net_amt,discount,tax_amt,gross_weight,tare_weight,net_weight
sql = "select LOC_CODE,LOT_NO,ITEM_CODE,QUANTITY,GROSS_WEIGHT,NET_WEIGHT,TARE_WEIGHT,NO_ART from stock where site_code = ? AND LOT_SL = ? AND QUANTITY > 0";
sql = "select LOC_CODE,LOT_NO,ITEM_CODE,QUANTITY,GROSS_WEIGHT,NET_WEIGHT,TARE_WEIGHT,NO_ART,ALLOC_QTY from stock where site_code = ? AND LOT_SL = ? AND QUANTITY > 0";
pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,siteCode);
pstmt1.setString(2,lotSl);
......@@ -2088,6 +2088,7 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
netWeight = rs1.getDouble("net_weight");
tareWeight = rs1.getDouble("tare_weight");
noOfArt = rs1.getDouble("no_art");
allQty = rs1.getDouble("alloc_qty");
}
pstmt1.close();
......@@ -2143,8 +2144,10 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
valueXmlString.append("<item_code protect=\"0\">").append("<![CDATA[" + itemCode + "]]>").append("</item_code>");
setNodeValue( dom, "item_code", getAbsString(""+itemCode));
valueXmlString.append("<quantity protect=\"0\">").append("<![CDATA[" + squantity + "]]>").append("</quantity>");
setNodeValue( dom, "quantity", getAbsString(""+squantity));
setQty = squantity - allQty;
valueXmlString.append("<quantity protect=\"0\">").append("<![CDATA[" + setQty + "]]>").append("</quantity>");
setNodeValue( dom, "quantity", getAbsString(""+setQty));
valueXmlString.append("<gross_weight protect=\"0\">").append("<![CDATA[" + grossWeight + "]]>").append("</gross_weight>");
setNodeValue( dom, "gross_weight", getAbsString(""+grossWeight));
......
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