private HashMap<String,Object> createHeaderDetails(String indexNumber,String transaction){
  SimpleDateFormat sdf=new SimpleDateFormat("MMM-dd-yyyy HH:mm:ss");
  String description="PTIS / " + indexNumber + " / "+ transaction+ " / "+ sdf.format(new Date());
  String sourceURL=URL_FOR_DCB + indexNumber;
  HashMap<String,Object> headerdetails=new HashMap<String,Object>();
  headerdetails.put(VoucherConstant.VOUCHERNAME,VOUCHERNAME);
  headerdetails.put(VoucherConstant.VOUCHERTYPE,VOUCHERTYPE);
  headerdetails.put(VoucherConstant.DESCRIPTION,description);
  headerdetails.put(VoucherConstant.VOUCHERNUMBER,VOUCHERNUMBER);
  headerdetails.put(VoucherConstant.VOUCHERDATE,new Date());
  headerdetails.put(VoucherConstant.STATUS,0);
  headerdetails.put(VoucherConstant.MODULEID,PTIS_EG_MODULES_ID);
  headerdetails.put(VoucherConstant.DEPARTMENTCODE,DEPT_CODE_TAX);
  headerdetails.put(VoucherConstant.FUNDCODE,getFundCode());
  headerdetails.put(VoucherConstant.SOURCEPATH,sourceURL);
  return headerdetails;
}

private HashMap < String , Object > createHeaderDetails ( String indexNumber , String transaction ) { SimpleDateFormat sdf = new SimpleDateFormat ( "MMM-dd-yyyy HH:mm:ss" ) ; String description = "PTIS / " + indexNumber + " / " + transaction + " / " + sdf . format ( new Date ( ) ) ; String sourceURL = URL_FOR_DCB + indexNumber ; HashMap < String , Object > headerdetails = new HashMap < String , Object > ( ) ; headerdetails . put ( VoucherConstant . VOUCHERNAME , VOUCHERNAME ) ; headerdetails . put ( VoucherConstant . VOUCHERTYPE , VOUCHERTYPE ) ; headerdetails . put ( VoucherConstant . DESCRIPTION , description ) ; headerdetails . put ( VoucherConstant . VOUCHERNUMBER , VOUCHERNUMBER ) ; headerdetails . put ( VoucherConstant . VOUCHERDATE , new Date ( ) ) ; headerdetails . put ( VoucherConstant . STATUS , 0 ) ; headerdetails . put ( VoucherConstant . MODULEID , PTIS_EG_MODULES_ID ) ; headerdetails . put ( VoucherConstant . DEPARTMENTCODE , DEPT_CODE_TAX ) ; headerdetails . put ( VoucherConstant . FUNDCODE , getFundCode ( ) ) ; headerdetails . put ( VoucherConstant . SOURCEPATH , sourceURL ) ; return headerdetails ; }
creates voucher header details
