Commit 6efd47b9 authored by pshinde's avatar pshinde

Validation of undo receipt adjustment(D14FSUN015)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97301 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7ac70e45
......@@ -285,7 +285,27 @@ public class UndoRecievableAdjIC extends ValidatorEJB implements UndoRecievableA
System.out.println("Stat fin is not valid for defined period.");
}
sql="select count(*) from period where ? between fr_date and to_date ";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, tranDate);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("count frm period==="+cnt);
if(cnt==0)
{
errCode = "VMPRDNTDF ";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
System.out.println("Period not defined in period master.");
}
......
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