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
conn = connDriver.getConnectDB("DriverITM");
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)
{
......@@ -121,14 +121,17 @@ public class ProofOfDelivery extends ValidatorEJB implements ProofOfDeliveryLoca
//If invoice Id not confirmed in invoice master then show error
errCode = "VTINVNCON";
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
errFields.add( childNodeName.toLowerCase());
}
if(cnt1 > 0)
if (!(editFlag.equals("E")))
{
//If POD for invoiceID already exist in spl_sales_por_hdr then show error
errCode = "VTINVIDAC";
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
if(cnt1 > 0)
{
//If POD for invoiceID already exist in spl_sales_por_hdr then show error
errCode = "VTINVIDAC";
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
}
if(cnt == 0)
{
......
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