Commit 4ae8a3b2 authored by wansari's avatar wansari

W16ASUN024 Changed by wasim not to allow to request physical count if already requested by metis


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101370 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e97cd048
...@@ -393,7 +393,8 @@ public class StatusChangeRequest implements Schedule { ...@@ -393,7 +393,8 @@ public class StatusChangeRequest implements Schedule {
invStat = "'"+invStat+"'"; invStat = "'"+invStat+"'";
System.out.println("AWMS INVSTAT for Physical count: "+invStat); System.out.println("AWMS INVSTAT for Physical count: "+invStat);
sqlInterface = " SELECT COUNT(1) FROM SWMS_TO_AWMS WHERE IN_OUT = ? AND TRAN_DATE = ?"; //Changed by wasim on 25-04-2016 to not to consider tran_id which is requeted from metis [START]
/*sqlInterface = " SELECT COUNT(1) FROM SWMS_TO_AWMS WHERE IN_OUT = ? AND TRAN_DATE = ?";
pstmtInterface = conn.prepareStatement(sqlInterface); pstmtInterface = conn.prepareStatement(sqlInterface);
pstmtInterface.setString(1, "B"); pstmtInterface.setString(1, "B");
pstmtInterface.setTimestamp(2, getCurrtDate()); pstmtInterface.setTimestamp(2, getCurrtDate());
...@@ -417,8 +418,13 @@ public class StatusChangeRequest implements Schedule { ...@@ -417,8 +418,13 @@ public class StatusChangeRequest implements Schedule {
System.out.println("Count from swms_to_amws for in_out B="+count); System.out.println("Count from swms_to_amws for in_out B="+count);
if(count == 0) if(count == 0)
{ { */
sql = " SELECT TRAN_ID FROM PHYSCAN WHERE SITE_CODE = ? AND TRAN_DATE = ?"; //Changed by wasim on 25-04-2016 to not to consider tran_id which is requeted from metis [END]
//Changed by wasim on 25-04-2016 to not to consider tran_id which is requeted from metis [START]
//sql = " SELECT TRAN_ID FROM PHYSCAN WHERE SITE_CODE = ? AND TRAN_DATE = ?";
sql = "SELECT P.TRAN_ID FROM PHYSCAN P WHERE P.SITE_CODE = ? AND P.TRAN_DATE = ? "
+ "AND P.TRAN_ID NOT IN (SELECT REF_ID FROM SWMS_TO_AWMS WHERE REF_ID = P.TRAN_ID)";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode); pstmt.setString(1, loginSiteCode);
pstmt.setTimestamp(2, getCurrtDate()); pstmt.setTimestamp(2, getCurrtDate());
...@@ -536,12 +542,14 @@ public class StatusChangeRequest implements Schedule { ...@@ -536,12 +542,14 @@ public class StatusChangeRequest implements Schedule {
{ {
commonWmsUtility.updateAwmsInterface(interfaceArrList,loginSiteCode,conn); commonWmsUtility.updateAwmsInterface(interfaceArrList,loginSiteCode,conn);
} }
} //Changed by wasim on 25-04-2016 to not to consider tran_id which is requeted from metis [START]
/*}
else else
{ {
System.out.println("***************Stock Count Activty is already already runn today************"); System.out.println("***************Stock Count Activty is already already runn today************");
} }*/
//Changed by wasim on 25-04-2016 to not to consider tran_id which is requeted from metis [END]
//Changed by wasim on 19-02-2016 for updating last_phyc_date in stock W15JSUN015 [START] //Changed by wasim on 19-02-2016 for updating last_phyc_date in stock W15JSUN015 [START]
updatePhyscanDate(conn); updatePhyscanDate(conn);
//Changed by wasim on 19-02-2016 for updating last_phyc_date in stock W15JSUN015 [END] //Changed by wasim on 19-02-2016 for updating last_phyc_date in stock W15JSUN015 [END]
......
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