Commit d31022cb authored by msharma's avatar msharma

Multi Currency Code validation removed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93474 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f83d9810
......@@ -826,7 +826,8 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
dueDate = dateFormat2.parse(dueDateS);
}
}
else if (childNodeName.equalsIgnoreCase("curr_code"))
/*Commented by Manoj dtd 12/08/2013 validation not requiredas discussed with Manoharan Sir
else if (childNodeName.equalsIgnoreCase("curr_code"))
{
currCode = this.genericUtility.getColumnValue("curr_code", dom);
if (currCode != null && currCode.trim().length() > 0)
......@@ -841,7 +842,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
errFields.add(childNodeName.toLowerCase());
}
}
}
}*/
else if (childNodeName.equalsIgnoreCase("acct_code__ar"))
{
acctCodeAr = this.genericUtility.getColumnValue("acct_code__ar", dom);
......@@ -1070,12 +1071,13 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else if(!currCode.trim().equals(hcurrCode.trim()))
/*Commented by Manoj dtd 12/08/2013 validation not requiredas discussed with Manoharan Sir
else if(!currCode.trim().equals(hcurrCode.trim()))
{
errCode = "VTCURR1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}*/
else {
if (dueDate.after(htranDate))
{
......@@ -1210,6 +1212,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
currCode = this.genericUtility.getColumnValue("curr_code", dom);
if(currCode != null && currCode.trim().length() > 0)
{
/*Commented by Manoj dtd 12/08/2013 validation not requiredas discussed with Manoharan Sir
hcurrCode = this.genericUtility.getColumnValue("curr_code", dom1);
exchRate = doublevalue(this.genericUtility.getColumnValue("exch_rate", dom));
if (!currCode.trim().equalsIgnoreCase(hcurrCode.trim()) && (exchRate != 1.0))
......@@ -1217,7 +1220,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
errCode = "VTCUR3";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}*/
}
else
{
......@@ -1353,6 +1356,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
currCode = this.genericUtility.getColumnValue("curr_code", dom);
if(currCode != null && currCode.trim().length() > 0)
{
/*Commented by Manoj dtd 12/08/2013 validation not requiredas discussed with Manoharan Sir
hcurrCode = this.genericUtility.getColumnValue("curr_code", dom1);
exchRate = Double.parseDouble(this.genericUtility.getColumnValue("exch_rate", dom));
if(!currCode.trim().equals(hcurrCode.trim()))
......@@ -1360,7 +1364,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
errCode = "VTCUR3";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}*/
}
}
......
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