Commit df05f126 authored by dpawar's avatar dpawar

validation on edit mode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94045 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8e26eca3
......@@ -509,6 +509,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
pstmt=null;
System.out.println("Difference in days for validation--->>["+diffDays+"]");
if(!(editFlag.equalsIgnoreCase("E"))){
if(isBillNoRepeatedInYear(conn,billNo,billDate,custCodeCurr))
{
System.out.println("------bill and stockist and year matched-----------");
......@@ -516,6 +517,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
if(diffDays < 0)
{
errCode = "VTINDLSTD";
......
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