Commit f289b3ea authored by arawankar's avatar arawankar

PoRcpRetPostSave.java

-Remove rollack and commit from post save component of porcp object
-Data get partially commited in case of channel partner if any exception occured then system committed the receipt data and other data will get rollbacked

PostOrdInvoiceGen.java
-Changes made to throw exception from getDueDate method
-Changes made to check cr_days  null,If cr days got null then system set 0 for cr_days.(Issue - while parsing null numer format exception occured)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196653 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 562e8935
......@@ -45,15 +45,16 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo
{
try
{
if(!isError)
//Modified by Anjali R. on [04/02/2019][Post Save component will not commit the data][Start]
/*if(!isError)
{
conn.commit();
//conn.commit();
}
else
{
conn.rollback();
}
}*/
//Modified by Anjali R. on [04/02/2019][Post Save component will not commit the data][End]
}
catch(Exception e)
{
......
......@@ -316,6 +316,14 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
System.out.println("Exception ::"+ e.getMessage());
throw new ITMException(e);
}
//Modified by Anjali R. on [01/02/2018][Added catch block for all exceptions][Start]
catch (Exception e1)
{
e1.printStackTrace();
System.out.println("Exception :invoiceProcess:"+ e1.getMessage());
throw new ITMException(e1);
}
//Modified by Anjali R. on [01/02/2018][Added catch block for all exceptions][End]
finally
{
try
......@@ -1474,6 +1482,14 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
try
{
UtilMethods utlMethods= new UtilMethods();
//Modified by Anjali R. on [01/02/2019][In case of cr_days got null or blank][Start]
if(crDays == null || crDays.trim().length() == 0)
{
crDays = "0";
}
//Modified by Anjali R. on [01/02/2019][In case of cr_days got null or blank][End]
//System.out.println("crterm :::::::::::::::::::::::"+crTerm);
sql="select start_from from crterm where cr_term =?";
pstmt=conn.prepareStatement(sql);
......@@ -1659,6 +1675,14 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
System.out.println("Exception ::"+ e.getMessage());
throw new ITMException(e);
}
//Modified by Anjali R. on [01/02/2019][Added catch block][Start]
catch (Exception e1)
{
e1.printStackTrace();
System.out.println("Exception getDueDate::"+ e1.getMessage());
throw new ITMException(e1);
}
//Modified by Anjali R. on [01/02/2019][Added catch block][End]
System.out.println("@@@@@@@@@@@901::::::::dueDate["+dueDate+"]");
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
......
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