Commit ad77d6bf authored by kshinde's avatar kshinde

Bug Fix


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106335 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6250abdf
......@@ -68,7 +68,7 @@ public class ReverseChargeInvoiceGpGen extends ProcessEJB implements ReverseChar
String GPSer=null,GPSerFilt=null;
String GPNo=null,tranDt=null,errString=null;
Connection con = null;
int cnt=0;
int cnt=0,cnt1=0;
PreparedStatement pstmt=null,pstmt1=null;
boolean count=false;
ResultSet rs=null,rs1=null;
......@@ -118,7 +118,7 @@ public class ReverseChargeInvoiceGpGen extends ProcessEJB implements ReverseChar
rs = pstmt.executeQuery();
if ( rs.next() )
{
cnt = rs.getInt(1);
cnt1 = rs.getInt(1);
}
if(rs != null)
rs.close();
......@@ -126,7 +126,7 @@ public class ReverseChargeInvoiceGpGen extends ProcessEJB implements ReverseChar
if(pstmt != null)
pstmt.close();
pstmt = null;
if(cnt==0)
if(cnt1==0)
{
errCode="INVDSITECD";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",con);
......
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