Commit 0d51d184 authored by vvengurlekar's avatar vvengurlekar

PaymentExpenseEJB.java- condition added to give error only if emp code is not blank


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194260 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 72db2d3f
...@@ -626,15 +626,19 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc ...@@ -626,15 +626,19 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{ {
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom)); empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
siteCode = checkNull(genericUtility.getColumnValue("site_code",dom1)); siteCode = checkNull(genericUtility.getColumnValue("site_code",dom1));
errCode = finCommon.isEmployee(siteCode, empCode, tranSeries, conn); //added condition to give error only if employee code is not blank by Varsha V on 10-12-18
if(errCode != null && errCode.trim().length() > 0) if(empCode != null && empCode.trim().length() > 0)
{ {
errList.add(errCode); errCode = finCommon.isEmployee(siteCode, empCode, tranSeries, conn);
errFields.add(childNodeName.toLowerCase()); if(errCode != null && errCode.trim().length() > 0)
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{ {
break; errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
} }
} }
} }
......
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