Commit 1b629a65 authored by jshaikh's avatar jshaikh

changes in salecontractrelease component

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198647 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e32db5c3
......@@ -642,7 +642,8 @@ public class SaleContractRelease extends ProcessEJB implements SaleContractRelea
rs = stmt.executeQuery(sql);
if(rs.next())
{
contractType = rs.getString("CONTRACT_TYPE");
//contractType = rs.getString("CONTRACT_TYPE");
contractType = checkNullandTrim(rs.getString("CONTRACT_TYPE"));//changed by jaffar S on 20-03-2019
System.out.println("CONTRACT_TYPE.............."+contractType);
itemSer = rs.getString("ITEM_SER");
transMode = rs.getString("TRANS_MODE");
......@@ -2132,6 +2133,13 @@ private static void writeLog(File f,String ex,boolean flag)
catch(Exception exWe){exWe.printStackTrace();}
}
private String checkNullandTrim(String input) {
if (input == null) {
input = "";
}
return input.trim();
}
/* private void writeException(Exception e)
{
try
......
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