Commit 5f3f38ae authored by dpawar's avatar dpawar

added code for quantity zero


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94585 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 38769319
...@@ -323,7 +323,7 @@ public String process(Document dom, Document dom2, String windowName, String xtr ...@@ -323,7 +323,7 @@ public String process(Document dom, Document dom2, String windowName, String xtr
pstmt.setString(2, unqItemSer); pstmt.setString(2, unqItemSer);
}else{ }else{
sql="select item_code,quantity,rate,item_ser,lot_no,lot_sl,loc_code from stock " sql="select item_code,quantity,rate,item_ser,lot_no,lot_sl,loc_code from stock "
+ "where site_code = ? and item_ser = ? and item_code between ? and ? and quantity > 0 and lot_no is not null and lot_no <> ' ' "; + "where site_code = ? and item_ser = ? and item_code between ? and ? and lot_no is not null and lot_no <> ' ' ";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1, siteCode); pstmt.setString(1, siteCode);
...@@ -588,7 +588,7 @@ private String getDetail2Xml(Connection conn,String itemSer,String siteCode,Stri ...@@ -588,7 +588,7 @@ private String getDetail2Xml(Connection conn,String itemSer,String siteCode,Stri
detail2xml.append("<lot_sl>").append("<![CDATA[").append(lotSl).append("]]></lot_sl>\r\n"); detail2xml.append("<lot_sl>").append("<![CDATA[").append(lotSl).append("]]></lot_sl>\r\n");
quantity=getRecordFromStock(conn, "quantity" ,siteCode, itemCode, locCodeL, lotNo, lotSl); quantity=getRecordFromStock(conn, "quantity" ,siteCode, itemCode, locCodeL, lotNo, lotSl);
System.out.println("old quantity-------->["+quantity+"]"); System.out.println("old quantity-------->["+quantity+"]");
detail2xml.append("<quantity>").append("<![CDATA["+oldRate+"]]>").append("</quantity>"); detail2xml.append("<quantity>").append("<![CDATA["+quantity+"]]>").append("</quantity>");
oldRate=getRecordFromStock(conn, "rate" ,siteCode, itemCode, locCodeL, lotNo, lotSl); oldRate=getRecordFromStock(conn, "rate" ,siteCode, itemCode, locCodeL, lotNo, lotSl);
System.out.println("old rate-------->["+oldRate+"]"); System.out.println("old rate-------->["+oldRate+"]");
......
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