Commit c6b5c8a3 authored by smanohar's avatar smanohar

confirmed flag update moved after posting both header and detail

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194979 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b394729c
......@@ -805,6 +805,34 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
}
}
// 28-dec-2018 manoharan moved here to update after detail posting
String ls_confirm = hdrMap.get("confirmed").toString();
String login_emp_code=new E12GenericUtility().getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if(ls_confirm==null || ls_confirm.trim().length()==0 )//prince --18-09-06
{
ls_confirm="Y";
}
if(!("Y".equalsIgnoreCase(ls_confirm)))
{
sql="update rcpdishnr set confirmed = 'Y', conf_date = ?,"
+ "emp_code__aprv = ? "
+ "where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,ld_today);
pstmt.setString(2,login_emp_code);
pstmt.setString(3,ls_tranid);
int updconf=pstmt.executeUpdate();
if(updconf <=0)
{
errorCode = "DS000";
errString=itmDBAccessEJB.getErrorString("", errorCode, "", "", conn);
return errString;
}
}
//--------------------
// 04/10/00 manoharan check coin diff.
......@@ -2434,7 +2462,9 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
}
}
//end zahid
}
}
/*
// 28-dec-18 manoharan commented and moved after detail posting
ls_confirm = hdrMap.get("confirmed").toString();
String login_emp_code=new E12GenericUtility().getValueFromXTRA_PARAMS(xtraParams, "loginCode");
......@@ -2461,7 +2491,7 @@ public class ReceiptDishonourConf extends ActionHandlerEJB implements ReceiptDis
}
}
*/
sql="select edi_option from transetup " //Changes by Yogesh 12/07/2005
+"where tran_window = 'w_rcpdishnr_adv'";
pstmt=conn.prepareStatement(sql);
......
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