Commit 845cd89d authored by msalla's avatar msalla

in Purchase Receipt Transaction ID MPlz23CTF0018

& M23CTF0020  on live. Exchange Rate field is having 0 instead of 1. (ponit no:854)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211587 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9165c887
......@@ -77,6 +77,8 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
String errCode = "";
String userId = "";
String sql = "";
String exchRateStr="";
double exchRate=0;
int cnt = 0;
int ctr = 0;
int childNodeListLength;
......@@ -1191,7 +1193,31 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
}
}//end of validation for invoice_date
//Added by sarita for invoice_date validation on 09JAN2018[end]
//Added by sarita for invoice_date validation on 09JAN2018[end]\
//Added by monika salla for exch_rate validation on 08NOV2019
if (childNodeName.equalsIgnoreCase("exch_rate"))
{
exchRateStr = checkNull(genericUtility.getColumnValue("exch_rate", dom));
System.out.println("@@@@ exch_rate[" + exchRate + "]");
if (exchRateStr != null && exchRateStr.length() > 0)
{
if (Double.parseDouble(exchRateStr) <= 0)
{
errCode = "VTEXCHRATE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else
{
errCode = "VTEXCHRATE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}//end
}// end for <purc_order>
break;
case 2:
......
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