Commit c5c5c116 authored by manohar's avatar manohar

ord_type not trimmed before comparision, corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96949 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f77ea143
...@@ -255,7 +255,9 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca ...@@ -255,7 +255,9 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
// 11/12/14 manoharan
orderType = orderType.trim();
// end 11/12/14 manoharan
if ("P".equalsIgnoreCase(status) || "M".equalsIgnoreCase(status) || "U".equalsIgnoreCase(status)) if ("P".equalsIgnoreCase(status) || "M".equalsIgnoreCase(status) || "U".equalsIgnoreCase(status))
{ {
errString = itmDBAccessEJB.getErrorString("","VTNOTFPLAN",userId); errString = itmDBAccessEJB.getErrorString("","VTNOTFPLAN",userId);
...@@ -359,7 +361,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca ...@@ -359,7 +361,8 @@ public class WorkorderRelease extends ProcessEJB implements WorkorderReleaseLoca
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("11/12/14 orderType [" + orderType + "] mfgDateOn [" + mfgDateOn + "]");
if (!"F".equalsIgnoreCase(orderType) && "S".equalsIgnoreCase(mfgDateOn) ) if (!"F".equalsIgnoreCase(orderType) && "S".equalsIgnoreCase(mfgDateOn) )
{ {
ArrayList mfgExpList = mfgCommon.getMfgExpDate(workOrder, "W", completionDate, conn); ArrayList mfgExpList = mfgCommon.getMfgExpDate(workOrder, "W", completionDate, conn);
......
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