Commit 26d57a13 authored by vkadam's avatar vkadam

Required quantity set to qty_per_art from table stock according to site code,...

Required quantity set to qty_per_art from table stock according to site code, item code, lot no, lot sl
The No of art in Issue det set as '1' always
Change come on [09/SEP/15] from chaizian raja. [D15BSUN017]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98563 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 374d3e99
...@@ -763,7 +763,7 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption ...@@ -763,7 +763,7 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption
String returnValue = ""; String returnValue = "";
String getDefaultVal = ""; String getDefaultVal = "";
String available = ""; String available = "";
String itemCode="",unit="",itemSer="",locCode="",lotNo="",lotSl="",siteCode="",acctCode="",cctrCode="",acctDescr="",cctrDescr=""; String itemCode="",unit="",itemSer="",locCode="",lotNo="",lotSl="",siteCode="",acctCode="",cctrCode="",acctDescr="",cctrDescr="",qtyPerArt="";
double quantity=0.00; double quantity=0.00;
...@@ -982,10 +982,9 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption ...@@ -982,10 +982,9 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption
System.out.println("@V@ Site code at Item change :- ["+siteCode+"]"); System.out.println("@V@ Site code at Item change :- ["+siteCode+"]");
// sql="select QUANTITY,LOC_CODE from stock where item_code=? and lot_no=? and lot_sl=?";
sql="select (case when quantity is null then 0.00 else quantity end - " sql="select (case when quantity is null then 0.00 else quantity end - "
+ "case when alloc_qty is null then 0.00 else alloc_qty end - " + "case when alloc_qty is null then 0.00 else alloc_qty end - "
+ "case when hold_qty is null then 0.00 else hold_qty end)as QUANTITY,LOC_CODE " + "case when hold_qty is null then 0.00 else hold_qty end)as QUANTITY,LOC_CODE,QTY_PER_ART "
+ "from stock where item_code=? and lot_no=? and lot_sl=? and site_code=?"; + "from stock where item_code=? and lot_no=? and lot_sl=? and site_code=?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1, checkNull(itemCode)); pstmt.setString(1, checkNull(itemCode));
...@@ -998,6 +997,7 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption ...@@ -998,6 +997,7 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption
{ {
quantity=rst.getDouble("QUANTITY"); quantity=rst.getDouble("QUANTITY");
locCode=rst.getString("LOC_CODE"); locCode=rst.getString("LOC_CODE");
qtyPerArt=rst.getString("QTY_PER_ART");
} }
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null;
...@@ -1005,11 +1005,12 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption ...@@ -1005,11 +1005,12 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption
rst=null; rst=null;
System.out.println("@V@ Details 2 Lot Sl"); System.out.println("@V@ Details 2 Lot Sl");
System.out.println("@V@ QtyPer art :- ["+qtyPerArt+"]");
String currDomStr = genericUtility.serializeDom(dom); String currDomStr = genericUtility.serializeDom(dom);
StringBuffer valueXmlStr = new StringBuffer(); StringBuffer valueXmlStr = new StringBuffer();
valueXmlStr.append("<quantity><![CDATA["+quantity+"]]></quantity>"); valueXmlStr.append("<quantity><![CDATA["+quantity+"]]></quantity>");
valueXmlStr.append("<req_qty><![CDATA["+quantity+"]]></req_qty>"); valueXmlStr.append("<req_qty><![CDATA["+qtyPerArt+"]]></req_qty>"); //req_qty set to QTY_PER_ART change come on [09/SEP/15]
valueXmlStr.append("<loc_code><![CDATA["+locCode+"]]></loc_code>"); valueXmlStr.append("<loc_code><![CDATA["+locCode+"]]></loc_code>");
currDomStr = currDomStr.replace("</Detail2>", valueXmlStr.toString() + "</Detail2>"); currDomStr = currDomStr.replace("</Detail2>", valueXmlStr.toString() + "</Detail2>");
......
...@@ -820,7 +820,8 @@ public class ConsumptionOdrIssuWizPos extends ValidatorEJB implements Consumptio ...@@ -820,7 +820,8 @@ public class ConsumptionOdrIssuWizPos extends ValidatorEJB implements Consumptio
quantity = genericUtility.getColumnValueFromNode("quantity", parentNode); quantity = genericUtility.getColumnValueFromNode("quantity", parentNode);
reqQty = genericUtility.getColumnValueFromNode("req_qty", parentNode); reqQty = genericUtility.getColumnValueFromNode("req_qty", parentNode);
int noArt=getNoArtical(itemCode,siteCode,locCode,lotNo,lotSl,conn); // int noArt=getNoArtical(itemCode,siteCode,locCode,lotNo,lotSl,conn);
int noArt=1; //No of Artical is always set to '1' requirement come on [09/SEP/15]
System.out.println("@V@ No or Art At issue :- ["+noArt+"]"); System.out.println("@V@ No or Art At issue :- ["+noArt+"]");
System.out.println("Lot No Issue:- [" + lotNo + "]"); System.out.println("Lot No Issue:- [" + lotNo + "]");
......
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