Commit 66abe205 authored by smanohar's avatar smanohar

Bug fixing, row count checking after delete of drcr_ract and other corrected

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215782 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a7bd9b0c
......@@ -429,8 +429,8 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count <= 1)
//if(count <= 1) // 28-jan-2020 manoharan
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -491,7 +491,8 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count != 1)
//if(count != 1)
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -734,7 +735,7 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count != 1)
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -877,7 +878,7 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count != 1)
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -966,7 +967,7 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count != 1)
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -1349,7 +1350,8 @@ public class UnpostFin extends ProcessEJB
count = pstmtUpd.executeUpdate();
pstmtUpd.close();
pstmtUpd = null;
if(count != 1)
//if(count != 1) // 28-jan-2020 manoharan
if(count <= 0)
{
isError = true;
errCode = "DS000NR";
......@@ -2348,8 +2350,12 @@ public class UnpostFin extends ProcessEJB
// else
status = "P";
// end if
statDate = (Timestamp) Calendar.getInstance().getTime();
// 28-jan-2020 manoharan casting exception because of date to timestamp
//statDate = (Timestamp) Calendar.getInstance().getTime();
statDate = new java.sql.Timestamp(System.currentTimeMillis());
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
String currDateStr = sdfAppl.format(statDate.getTime());
statDate = Timestamp.valueOf(genericUtility.getValidDateString(currDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
sql = "update receivables "
+" set adj_amt = adj_amt - ?, "
+ " status = ?, "
......
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