Commit 8041d04b authored by rtiwari's avatar rtiwari

UPDATED


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94429 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7417ce4f
......@@ -383,7 +383,7 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal,
woirType = orderType.substring(0,1)+"I";
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE lower(TRAN_WINDOW) = 'w_wo_iss_replacement'";
sql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE lower(TRAN_WINDOW) = 'w_wo_iss_issue'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
......@@ -451,7 +451,7 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal,
sql = " select operation,exp_lev,item_code,quantity,unit,alloc_qty," +
" site_code,line_type,match_potency,min_potency_perc,adj_potency," +
" potency_adj,iss_qty from workorder_bill " +
" where work_order = ? and operation = ? and alloc_qty >= iss_qty and item_code not in (select item_code from workorder where work_order = '"+ worder +"') " ;
" where work_order = ? and operation = ? and alloc_qty >= (case when iss_qty is null then 0 else iss_qty end) and item_code not in (select item_code from workorder where work_order = '"+ worder +"') " ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,worder);
pstmt.setInt(2,operation);
......
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