Commit 254f1195 authored by manohar's avatar manohar

code optimization done


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104126 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2939fbae
......@@ -1792,7 +1792,7 @@ public class PostOrdInvoicePost extends ActionHandlerEJB implements PostOrdInvoi
glTraceMap.put("tran_date", ldPostdate2);
// 02-dec-16 manoharan avoid deprecated
//glTraceMap.put("eff_date",new Timestamp(Timestamp.parse(InvoiceHrdMap.get("eff_date"))));
glTraceMap.put("eff_date", Timestamp.valueOf(InvoiceHrdMap.get("eff_date")));
glTraceMap.put("eff_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("eff_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
glTraceMap.put("fin_entity", InvoiceHrdMap.get("fin_entity"));
glTraceMap.put("site_code", InvoiceHrdMap.get("site_code"));
glTraceMap.put("sundry_type","O");
......@@ -1908,8 +1908,8 @@ public class PostOrdInvoicePost extends ActionHandlerEJB implements PostOrdInvoi
// 02-dec-16 manoharan avoid deprecated
//sundryBalMap.put("tran_date",new Timestamp(Timestamp.parse(InvoiceHrdMap.get("tran_date"))));
//sundryBalMap.put("eff_date",new Timestamp(Timestamp.parse(InvoiceHrdMap.get("eff_date"))));
sundryBalMap.put("tran_date", Timestamp.valueOf(InvoiceHrdMap.get("tran_date")));
sundryBalMap.put("eff_date", Timestamp.valueOf(InvoiceHrdMap.get("eff_date")));
sundryBalMap.put("tran_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("tran_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
sundryBalMap.put("eff_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("eff_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
sundryBalMap.put("fin_entity", InvoiceHrdMap.get("fin_entity"));
sundryBalMap.put("site_code", InvoiceHrdMap.get("site_code"));
sundryBalMap.put("sundry_type", "C");
......@@ -1970,7 +1970,7 @@ public class PostOrdInvoicePost extends ActionHandlerEJB implements PostOrdInvoi
glTraceMap.put("tran_date", lsPostdateTemp);
// 02-dec-16 manoharan avoid deprecated
//glTraceMap.put("eff_date",new Timestamp(Timestamp.parse(InvoiceHrdMap.get("eff_date"))));
glTraceMap.put("eff_date", Timestamp.valueOf(InvoiceHrdMap.get("eff_date")));
glTraceMap.put("eff_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("eff_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
glTraceMap.put("fin_entity", InvoiceHrdMap.get("fin_entity"));
glTraceMap.put("site_code", InvoiceHrdMap.get("site_code"));
glTraceMap.put("sundry_type", "C");
......@@ -2209,7 +2209,7 @@ public class PostOrdInvoicePost extends ActionHandlerEJB implements PostOrdInvoi
//receivablesMap.put("eff_date", InvoiceHrdMap.get("eff_date"));
// 02-dec-16 manoharan avoid deprecated
//receivablesMap.put("eff_date", new Timestamp(Timestamp.parse(InvoiceHrdMap.get("eff_date"))));
receivablesMap.put("eff_date", Timestamp.valueOf(InvoiceHrdMap.get("eff_date")));
receivablesMap.put("eff_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("eff_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
receivablesMap.put("sales_pers__1", InvoiceHrdMap.get("sales_pers__1"));
receivablesMap.put("sales_pers__2", InvoiceHrdMap.get("sales_pers__2"));
receivablesMap.put("item_ser", InvoiceHrdMap.get("item_ser"));
......@@ -2218,7 +2218,7 @@ public class PostOrdInvoicePost extends ActionHandlerEJB implements PostOrdInvoi
//receivablesMap.put("gp_date", InvoiceHrdMap.get("gp_date"));
// 02-dec-16 manoharan avoid deprecated
//receivablesMap.put("gp_date", new Timestamp(Timestamp.parse(InvoiceHrdMap.get("gp_date"))));
receivablesMap.put("gp_date", Timestamp.valueOf(InvoiceHrdMap.get("gp_date")));
receivablesMap.put("gp_date", Timestamp.valueOf(genericUtility.getValidDateString(InvoiceHrdMap.get("gp_date"), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"));
receivablesMap.put("mrp_value","0");
......
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