Commit 8ecbe06d authored by ssalve's avatar ssalve

Sarita: Done changes by sarita on 21 JAN 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195960 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f607a08b
/**
* PURPOSE : Pre Save Logic
* PURPOSE : PreSave Logic
* AUTHOR : Priyanka Chavan.
*/
......@@ -53,7 +53,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
public String executepreSave( Document dom, String editFlag, String xtraParams, Connection conn ) throws RemoteException, ITMException, SQLException
{
System.out.println("executepreSave method called");
System.out.println("executepreSave method called \t editFlag is ["+editFlag+"]");
String errString = "";
NodeList parentNodeList = null;
Node parentNode = null;
......@@ -126,12 +126,15 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
rs = null;
}
if(cnt > 0)
if(!"E".equalsIgnoreCase(editFlag))
{
String errMsg = " For \n Site Code :["+siteCode+"] \n Account Code :["+acctCode+"] \n Cctr Code :["+cctrCode+"] \n Effective From :["+effFrom+"] \n Valid Upto :["+validUpto+"]";
errString = getError(errMsg,"VMPMKY",conn);
isError = true;
}
if(cnt > 0)
{
String errMsg = " For \n Site Code :["+siteCode+"] \n Account Code :["+acctCode+"] \n Cctr Code :["+cctrCode+"] \n Effective From :["+effFrom+"] \n Valid Upto :["+validUpto+"]";
errString = getError(errMsg,"VMPMKY",conn);
isError = true;
}
}
//Added by priyanka on 29DECEMBER2018 -- Added validation if account_code , cctr_code, site_code,eff_from and valid_upto existed Combination [END]
parentNodeList = dom.getElementsByTagName("Detail2");
......
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