Commit 4ed5726c authored by cpatil's avatar cpatil

add not condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98514 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4c28fe56
...@@ -995,6 +995,10 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -995,6 +995,10 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
errString = allocStockToWo(campNo,tranId,lineno,siteCode,itemCode,lotno,lotsl,allocQty,reasCode,locCodeFr, errString = allocStockToWo(campNo,tranId,lineno,siteCode,itemCode,lotno,lotsl,allocQty,reasCode,locCodeFr,
explev,locCodeTo,worder,remarks,tranId,actualPropQty,actualQty,batchQuantity,xtraParams,connOne); explev,locCodeTo,worder,remarks,tranId,actualPropQty,actualQty,batchQuantity,xtraParams,connOne);
System.out.println("err String from STOCKTRANS ="+errString); System.out.println("err String from STOCKTRANS ="+errString);
if(!((errString != null ) && (errString.indexOf("Success") > -1 || errString.indexOf("CONFSUCC") >-1)))
{
break;
}
} }
} }
else else
...@@ -1742,7 +1746,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -1742,7 +1746,7 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
pstmt = null;*/ pstmt = null;*/
sql = " update inv_alloc_det set quantity = quantity-? ,alloc_qty=alloc_qty-? , " + sql = " update inv_alloc_det set quantity = quantity-? ,alloc_qty=alloc_qty-? , " +
" DEALLOC_QTY = DEALLOC_QTY+? " + " DEALLOC_QTY = DEALLOC_QTY+?,DEALLOCATED= '"+deAllocated+"' " +
" where tran_id = ? and item_code = ? and lot_no = ? and lot_sl = ? and loc_code = ? and site_code = ? " " where tran_id = ? and item_code = ? and lot_no = ? and lot_sl = ? and loc_code = ? and site_code = ? "
+ "AND EXP_LEV=? and case when deallocated is null then 'N' else deallocated end <> 'Y'";//VALLABH KADAM add [EXP_LEV] 21/MAY/15 + "AND EXP_LEV=? and case when deallocated is null then 'N' else deallocated end <> 'Y'";//VALLABH KADAM add [EXP_LEV] 21/MAY/15
System.out.println(" SQL::update"+sql); System.out.println(" SQL::update"+sql);
...@@ -6803,4 +6807,4 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr ...@@ -6803,4 +6807,4 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
} }
return comp; return comp;
} }
} }
\ No newline at end of file
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