Commit 77ef1668 authored by rtiwari's avatar rtiwari

UPDATED


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94159 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e57ddef8
...@@ -310,20 +310,22 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -310,20 +310,22 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
if(pstmt1 != null) if(pstmt1 != null)
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
if(integralQty > 0)
if(allocQty > integralQty ){ {
if(allocQty % integralQty != 0 && integralQty != 0) if(allocQty > integralQty ){
{ if(allocQty % integralQty != 0 && integralQty != 0)
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format((integralQty - (allocQty % integralQty) + allocQty)) +"]]>").append("</quantity>"); {
} retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format((integralQty - (allocQty % integralQty) + allocQty)) +"]]>").append("</quantity>");
else }
{ else
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(allocQty) +"]]>").append("</quantity>"); {
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(allocQty) +"]]>").append("</quantity>");
}
}else{
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(integralQty) +"]]>").append("</quantity>");
} }
}else{
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(integralQty) +"]]>").append("</quantity>");
} }
if(integralQty == 0) else if(integralQty == 0)
{ {
retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(allocQty) +"]]>").append("</quantity>"); retTabSepStrBuff.append("<quantity>").append("<![CDATA[" + df.format(allocQty) +"]]>").append("</quantity>");
...@@ -1897,12 +1899,13 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -1897,12 +1899,13 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
System.out.println("update for Stock Transfer Multiple"); System.out.println("update for Stock Transfer Multiple");
maxLine = 0; maxLine = 0;
System.out.println("update... "+quantity+" "+splitQty); System.out.println("update... "+quantity+" "+splitQty);
/*
if(splitQty > 0)//insert new record for split quantity if(splitQty > 0)//insert new record for split quantity
{ {
sql = " update stock_transfer_det set loc_code__to = ? ,lot_no__to = ? , lot_sl__to = ? ,quantity = ? where tran_id = ? and line_no = ? "; sql = " update stock_transfer_det set loc_code__to = ? ,lot_no__to = ? , lot_sl__to = ? ,quantity = ? where tran_id = ? and line_no = ? ";
pstmt1 =conn.prepareStatement(sql); pstmt1 =conn.prepareStatement(sql);
pstmt1.setString(1,locCodeFr); // pstmt1.setString(1,locCodeFr);
pstmt1.setString(1,locCodeTo);
pstmt1.setString(2,lotNoFr); pstmt1.setString(2,lotNoFr);
pstmt1.setString(3,lotSlFr); pstmt1.setString(3,lotSlFr);
pstmt1.setDouble(4,splitQty); pstmt1.setDouble(4,splitQty);
...@@ -1958,6 +1961,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -1958,6 +1961,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
} }
*/
} }
else if("C-ISS".equalsIgnoreCase(refSer.trim())) // Consumption Issue(CISS). else if("C-ISS".equalsIgnoreCase(refSer.trim())) // Consumption Issue(CISS).
{ {
......
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