Commit d7b0cc9a authored by prane's avatar prane

to handle the unparseble exception while getDailyExchRateSellBuy in fincommon...

to handle the unparseble exception while getDailyExchRateSellBuy in fincommon changed the timestamp format to applDate format 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185768 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f8203fd1
......@@ -3238,7 +3238,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
double lc_exchrt_d=0.0,lc_exchrt_frt_d=0.0,lc_exchrt_ins_d=0.0,lc_exch_rate=0.0;
double lc_exchrt=0.0;
String ldt_despdt="";
Timestamp despdt = null;
Date plDate=null;
PreparedStatement pstmt = null ;
ResultSet rs = null;
......@@ -3250,7 +3250,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
{
commissionMap = new HashMap();
saleOrder=(String) calcCommission.get("sord_no");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//Get data from sale order...
sql ="SELECT dlv_term,curr_code,exch_rate,exch_rate__frt,exch_rate__ins," +
"ins_amt,frt_amt,comm_perc,comm_perc__on,curr_code__comm," +
......@@ -3373,7 +3373,10 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
rs = pstmt.executeQuery();
if(rs.next())
{
ldt_despdt =rs.getString("desp_date");
//changed by Pavan R on 1jun2k18 for timestamp format to applDate format to handle the unparseble exception while getDailyExchRateSellBuy in fincommon
//ldt_despdt =rs.getString("desp_date");
despdt =rs.getTimestamp("desp_date");
//Pavan R end
ls_sitecd_d =rs.getString("site_code");
ls_currcd_d =rs.getString("curr_code");
ls_currcd_frt_d =rs.getString("curr_code__frt");
......@@ -3387,6 +3390,8 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
pstmt.close();
pstmt = null;
ldt_despdt = sdf.format(despdt);
sql="select curr_code from finent f, site s" +
" where f.fin_entity = s.fin_entity and s.site_code = ? ";
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