Commit 4f9040e5 authored by ngadkari's avatar ngadkari

added check null condition

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206924 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a05360f8
...@@ -1250,7 +1250,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -1250,7 +1250,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
else if (childNodeName.equalsIgnoreCase("ref_date")) else if (childNodeName.equalsIgnoreCase("ref_date"))
{ {
refDateS = this.genericUtility.getColumnValue("ref_date", dom); refDateS = this.genericUtility.getColumnValue("ref_date", dom);
refDate = sdf.parse(refDateS); //refDate = sdf.parse(refDateS); commented by nandkumar gadkari on 06/09/19
htranDate = sdf.parse(this.genericUtility.getColumnValue("tran_date", dom1)); htranDate = sdf.parse(this.genericUtility.getColumnValue("tran_date", dom1));
tranType = genericUtility.getColumnValue("tran_type", dom1); tranType = genericUtility.getColumnValue("tran_type", dom1);
refSer = this.genericUtility.getColumnValue("ref_ser", dom); refSer = this.genericUtility.getColumnValue("ref_ser", dom);
...@@ -2201,8 +2201,8 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -2201,8 +2201,8 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
else if(childNodeName.equalsIgnoreCase("curr_code")) else if(childNodeName.equalsIgnoreCase("curr_code"))
{ {
currCode=this.genericUtility.getColumnValue("curr_code", dom); currCode=checkNull(this.genericUtility.getColumnValue("curr_code", dom));
currCodeHdr=this.genericUtility.getColumnValue("curr_code", dom1); currCodeHdr=checkNull(this.genericUtility.getColumnValue("curr_code", dom1));
exchRatestr=this.genericUtility.getColumnValue("exch_rate", dom); exchRatestr=this.genericUtility.getColumnValue("exch_rate", dom);
if(exchRatestr != null && exchRatestr.trim().length()>0) if(exchRatestr != null && exchRatestr.trim().length()>0)
{ {
...@@ -2212,7 +2212,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -2212,7 +2212,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{ {
exchRate=0; exchRate=0;
} }
if(!currCode.trim().equalsIgnoreCase(hcurrCode.trim()) && (exchRate != 1.0)) if(!currCode.trim().equalsIgnoreCase(currCodeHdr.trim()) && (exchRate != 1.0))
{ {
errCode = "VTCUR3"; errCode = "VTCUR3";
errList.add(errCode); errList.add(errCode);
......
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