Commit f1210ead authored by msharma's avatar msharma

today variable is not set


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@36301 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0985465a
......@@ -93,6 +93,8 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote
StringBuffer xmlBuff = new StringBuffer();
try {
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
today=java.sql.Timestamp.valueOf( sdf.format(new java.util.Date())+" 00:00:00.0");
AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
......@@ -1181,7 +1183,7 @@ CreatePoVoucherAdvanceLocal, CreatePoVoucherAdvanceRemote
xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuff.append("<tran_id><![CDATA["+ (vouchid == null ? "" : vouchid) + "]]></tran_id>");
xmlBuff.append("<vouch_type><![CDATA[A]]></vouch_type>");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlBuff.append("<tran_date><![CDATA["+ sdf.format(new java.util.Date()).toString() +"]]></tran_date>");
System.out.println("Date is:"+today);
xmlBuff.append("<eff_date><![CDATA["+ sdf.format(new java.util.Date()).toString() +"]]></eff_date>");
......
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