Commit 0d6c491d authored by mmhatre's avatar mmhatre

Misc Voucher Confirmation Error (Issue Tracker # 494)

 cost centre not defined in cost centre master. it is allowing in misc_voucher header screen.
Issues report to technical team  (add validation for payment cost center)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203635 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e1f739d6
...@@ -118,6 +118,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -118,6 +118,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
String acctCodeAp = ""; String acctCodeAp = "";
String acctCodePay = ""; String acctCodePay = "";
String cctrCodeAp = ""; String cctrCodeAp = "";
String cctrCodePay = ""; //added by manish mhatre on 16/july/2019
String acctCodeCf = ""; String acctCodeCf = "";
String cctrCodeCf = ""; String cctrCodeCf = "";
String acctCodeAdv = ""; String acctCodeAdv = "";
...@@ -935,7 +936,34 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -935,7 +936,34 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
//added by manish mhatre on 16/july/2019
//start manish
else if(childNodeName.equalsIgnoreCase("cctr_code__pay"))
{
cctrCodePay = checkNull(genericUtility.getColumnValue("cctr_code__pay", dom));
acctCodePay = checkNull(genericUtility.getColumnValue("acct_code__pay", dom));
if(cctrCodePay == null || cctrCodePay.trim().length() == 0)
{
errCode = "VTBLCCTRCD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
System.out.println("cctrCodePay1:"+cctrCodePay);
errCode = finCommon.isCctrCode(acctCodePay, cctrCodePay, "", conn);
if(errCode != null && (errCode.trim().length() > 0))
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
System.out.println("errCode:"+errCode);
}
}
//end manish
else if(childNodeName.equalsIgnoreCase("acct_code__cf")) else if(childNodeName.equalsIgnoreCase("acct_code__cf"))
{ {
acctCodeCf = checkNull(genericUtility.getColumnValue("acct_code__cf", dom)); acctCodeCf = checkNull(genericUtility.getColumnValue("acct_code__cf", dom));
...@@ -1045,7 +1073,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1045,7 +1073,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
errCode = finCommon.isCctrCode(acctCodeAdv, cctrCodeAdv, "", conn); errCode = finCommon.isCctrCode(acctCodeAdv, cctrCodeAdv, "", conn);
// } // }
System.out.println("errCode:"+errCode); System.out.println("errCode:"+errCode);
/* else if(cctrCodeAdv == null || cctrCodeAdv.trim().length() == 0 ) /*else if(cctrCodeAdv == null || cctrCodeAdv.trim().length() == 0 )
{ {
errCode = "VMCCTRNULL"; errCode = "VMCCTRNULL";
}*/ }*/
......
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