Commit 425cef1d authored by caluka's avatar caluka

for open button confirmed field updated as 'N'


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98705 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ef88a68c
...@@ -283,10 +283,12 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf ...@@ -283,10 +283,12 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
if ("S".equalsIgnoreCase(status)) if ("S".equalsIgnoreCase(status))
{ {
errString = itmDBAccessLocal.getErrorString("","VTINVSUB2",""); errString = itmDBAccessLocal.getErrorString("","VTINVSUB2","");
return errString;
} else if ("C".equalsIgnoreCase(status) || "Y".equalsIgnoreCase(confirmed)) } else if ("C".equalsIgnoreCase(status) || "Y".equalsIgnoreCase(confirmed))
{ {
errString = itmDBAccessLocal.getErrorString("","VTINVSUB3",""); errString = itmDBAccessLocal.getErrorString("","VTINVSUB3","");
return errString;
} else } else
{ {
...@@ -391,7 +393,7 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf ...@@ -391,7 +393,7 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
pstmt = null; pstmt = null;
if ("R".equalsIgnoreCase(status)) if ("R".equalsIgnoreCase(status))
{ {
sql = " update receipt_form set status = 'E' where tran_id = ? "; sql = " update receipt_form set status = 'E',confirmed = 'N' where tran_id = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId); pstmt.setString(1, tranId);
cnt = pstmt.executeUpdate(); cnt = pstmt.executeUpdate();
......
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