Commit bf5b4f4c authored by vvengurlekar's avatar vvengurlekar

MiscVoucherIC.java - Added code to avoid setting grade in case of defined...

MiscVoucherIC.java - Added code to avoid setting grade in case of defined parameter value is nullfound or other than G


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188361 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 363d31e5
......@@ -2502,6 +2502,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
String consumedAmtAnal1 = "";
String budgetAmtCctr1 = "";
String consumedAmtCctr1 = "";
String tranTypeTerm = "";
Double amount = 0.0;
Double taxAmt = 0.0;
Double totAmt = 0.0;
......@@ -3200,16 +3201,33 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
}
vouchType = genericUtility.getColumnValue("vouch_type", dom);
if("F".equalsIgnoreCase(vouchType))
{
//Added by varsha v on 30-07-18 for calling fetFinParams method
tranTypeTerm = finCommon.getFinparams("999999","MVOUCH_TRNTYPE_LOGIC",conn);
//commented and added by Varsha V on 30-07-18 to avoid setting grade in case of trantypeTerm value in other than G
/*grade = findValue(conn, "grade", "employee", "emp_code", sundryCode);
if(grade != null)
{
grade = grade.trim();
}
valueXmlString.append("<tran_type>").append("<![CDATA[" + grade + "]]>").append("</tran_type>");
//Added by Jaffar S. on 21-05-18
setNodeValue(dom, "tran_type", grade);*/
System.out.println("tranTypeTerm:: ["+tranTypeTerm+"]");
if(tranTypeTerm != null && !tranTypeTerm.equalsIgnoreCase("NULLFOUND") && tranTypeTerm.equalsIgnoreCase("G") && tranTypeTerm.trim().length()>0)
{
grade = findValue(conn, "grade", "employee", "emp_code", sundryCode);
if(grade != null)
{
grade = grade.trim();
}
valueXmlString.append("<tran_type>").append("<![CDATA[" + grade + "]]>").append("</tran_type>");
//Added by Jaffar S. on 21-05-18
setNodeValue(dom, "tran_type", grade);
}
//ended by Varsha V on 30-07-18 to avoid setting grade in case of trantypeTerm value in other than G
}
else if("A".equalsIgnoreCase(vouchType))
{
acctCodeAp = "";
......
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