Commit 9278654f authored by dpawar's avatar dpawar

change date in voucher


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96180 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 615ba5ed
......@@ -345,6 +345,10 @@ private String generateMiscVoucher(String tranId, String xtraParams, String forc
taxDate1=simpleDateFormat.format(taxDate).toString();
System.out.println("taxDate1 ::"+taxDate1);
}
SimpleDateFormat sdf=new SimpleDateFormat(GenericUtilityObj.getApplDateFormat());
Calendar currentDate = Calendar.getInstance();
String tranDateNew = sdf.format(currentDate.getTime());
sql="select sundry_type,sundry_code,acct_code,cctr_code,acct_code__adv,cctr_code__adv,amount,anal_code,"
+ "remarks,tax_chap,tax_class,tax_env,emp_code,line_no from misc_vch_empdet where tran_id = ?";
......@@ -399,9 +403,9 @@ private String generateMiscVoucher(String tranId, String xtraParams, String forc
xmlBuff.append("<tran_id/>");
xmlBuff.append("<tran_type><![CDATA[").append(tranType).append("]]></tran_type>");
xmlBuff.append("<tran_mode><![CDATA[").append("A").append("]]></tran_mode>");
xmlBuff.append("<tran_date><![CDATA[").append(tranDate1).append("]]></tran_date>");
xmlBuff.append("<tran_date><![CDATA[").append(tranDateNew).append("]]></tran_date>");
xmlBuff.append("<vouch_type><![CDATA[").append("A").append("]]></vouch_type>");
xmlBuff.append("<eff_date><![CDATA[").append(tranDate1).append("]]></eff_date>");
xmlBuff.append("<eff_date><![CDATA[").append(tranDateNew).append("]]></eff_date>");
xmlBuff.append("<sundry_type><![CDATA[").append(sundryType).append("]]></sundry_type>");
xmlBuff.append("<sundry_code><![CDATA[").append(sundryCodeD).append("]]></sundry_code>");
xmlBuff.append("<acct_code__ap><![CDATA[").append(acctCodeAp).append("]]></acct_code__ap>");
......
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