Commit df9ed351 authored by vdhoble's avatar vdhoble

sql modified for manual cycle count


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97046 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c94a0150
......@@ -171,9 +171,10 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
else
{
count=0;
//Sql edited by vishakha-----25/12/2014
sql = "select count(*) from physcan h , physcandet d where h.tran_id = d.tran_id and h.tran_date = ? "
+" and d.loc_code= ? ";
+" and d.loc_code= ? and d.quantity <> d.QTY_PHYSICAL and d.status='Y' and "
+"(case when d.reverify is null then 'Y' else d.reverify end = 'Y' and CASE WHEN d.verified is null then 'N' else d.verified end<>'Y')";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, dts);
pstmt.setString(2, locCode);
......@@ -187,9 +188,10 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
pstmt = null;
rs.close();
rs = null;
if(count > 0)
{
errString = getErrorString("loc_code","ALLRDSCN",userId);
errString = getErrorString("loc_code","ALLRDSCN",userId);
break;
}
......
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