Commit 0ab72dd4 authored by dpawar's avatar dpawar

added validation on invoice id in edit mode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93463 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b294088
...@@ -80,7 +80,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -80,7 +80,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
System.out.println("user ID form XtraParam : "+userId); System.out.println("user ID form XtraParam : "+userId +"Edit Flag -->>: "+editFlag);
if(objContext != null && objContext.trim().length()>0) if(objContext != null && objContext.trim().length()>0)
{ {
...@@ -121,8 +121,10 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -121,8 +121,10 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
//If invoice Id not confirmed in invoice master then show error //If invoice Id not confirmed in invoice master then show error
errCode = "VTINVNCON"; errCode = "VTINVNCON";
errList.add( errCode ); errList.add( errCode );
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase());
} }
if (!(editFlag.equals("E")))
{
if(cnt1 > 0) if(cnt1 > 0)
{ {
//If POD for invoiceID already exist in spl_sales_por_hdr then show error //If POD for invoiceID already exist in spl_sales_por_hdr then show error
...@@ -130,6 +132,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca ...@@ -130,6 +132,7 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
errList.add( errCode ); errList.add( errCode );
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
} }
}
if(cnt == 0) if(cnt == 0)
{ {
errCode = "VTINVIDNE"; errCode = "VTINVIDNE";
......
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