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