Commit e37eea9e authored by abibave's avatar abibave

Request Id:W16LSER006

Added update condition for wf_status column if tran_type is not 'SR' or 'RC' in Sales Return Workflow.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105549 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5344a9bb
...@@ -35,7 +35,7 @@ public class SalesReturnWF { ...@@ -35,7 +35,7 @@ public class SalesReturnWF {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
E12GenericUtility genericUtility = null; E12GenericUtility genericUtility = null;
if("C".equalsIgnoreCase(keyFlag) || "R".equalsIgnoreCase(keyFlag)){ if("C".equalsIgnoreCase(keyFlag) || "R".equalsIgnoreCase(keyFlag) || "O".equalsIgnoreCase(keyFlag)){
retString = updateWfStatus(tran_id, empCodeAprv, loginSiteCode, keyFlag); retString = updateWfStatus(tran_id, empCodeAprv, loginSiteCode, keyFlag);
} }
else{ else{
...@@ -168,17 +168,12 @@ public class SalesReturnWF { ...@@ -168,17 +168,12 @@ public class SalesReturnWF {
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
if ("C".equalsIgnoreCase(wfStatus)) { if ("C".equalsIgnoreCase(wfStatus) || "R".equalsIgnoreCase(wfStatus) || "O".equalsIgnoreCase(wfStatus)) {
sql = "UPDATE SRETURN SET WF_STATUS = 'C' WHERE TRAN_ID = ?"; sql = "UPDATE SRETURN SET WF_STATUS = '"+wfStatus+"' WHERE TRAN_ID = ?";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, tran_id); pStmt.setString(1, tran_id);
cnt = pStmt.executeUpdate(); cnt = pStmt.executeUpdate();
} else if("R".equalsIgnoreCase(wfStatus)){ }
sql = "UPDATE SRETURN SET WF_STATUS = 'R' WHERE TRAN_ID = ?";
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, tran_id);
cnt = pStmt.executeUpdate();
}
else{ else{
System.out.println("Workflow In Progress"); System.out.println("Workflow In Progress");
} }
......
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