Commit 64fac2ca authored by agaikwad's avatar agaikwad

Added check null condition[Project Code]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104858 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a49cc4fa
...@@ -3247,6 +3247,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3247,6 +3247,9 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
siteCode = findValue(conn, "SITE_CODE__DLV" , "srv_order", "tran_id", orderRef); siteCode = findValue(conn, "SITE_CODE__DLV" , "srv_order", "tran_id", orderRef);
taxDate = simpleDateFormat.parse(findValue(conn, " _DATE" , "srv_order", "tran_id", orderRef)); taxDate = simpleDateFormat.parse(findValue(conn, " _DATE" , "srv_order", "tran_id", orderRef));
projCode = findValue(conn, "PROJ_CODE" , "srv_order", "tran_id", orderRef); projCode = findValue(conn, "PROJ_CODE" , "srv_order", "tran_id", orderRef);
System.out.println("Proj_Code="+projCode);
projCode=checkNull(projCode);
System.out.println("Proj_Code=["+projCode+"]");
advAmount = Double.parseDouble(findValue(conn, "VOUCH_ADV_AMT", "srv_order", "tran_id", orderRef)); advAmount = Double.parseDouble(findValue(conn, "VOUCH_ADV_AMT", "srv_order", "tran_id", orderRef));
if (acctCodePay != null && cctrCodePay != null && amount !=null && suppCode != null && taxAmt != null && totAmt != null && crTerm != null && siteCode != null && taxDate != null && projCode != null && advAmount != null) if (acctCodePay != null && cctrCodePay != null && amount !=null && suppCode != null && taxAmt != null && totAmt != null && crTerm != null && siteCode != null && taxDate != null && projCode != null && advAmount != null)
{ {
...@@ -3913,8 +3916,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -3913,8 +3916,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<taxed_adj_amt>").append("<![CDATA[" + taxedAdjAmt + "]]>").append("</taxed_adj_amt>"); valueXmlString.append("<taxed_adj_amt>").append("<![CDATA[" + taxedAdjAmt + "]]>").append("</taxed_adj_amt>");
} }
} }
projCode = genericUtility.getColumnValue("proj_code", dom); projCode = checkNull(genericUtility.getColumnValue("proj_code", dom));
projCode1 = genericUtility.getColumnValue("proj_code", dom1); projCode1 = checkNull(genericUtility.getColumnValue("proj_code", dom1));
if(projCode == null || (projCode.trim().length() == 0 )) if(projCode == null || (projCode.trim().length() == 0 ))
{ {
valueXmlString.append("<proj_code>").append("<![CDATA[" + projCode1 + "]]>").append("</proj_code>"); valueXmlString.append("<proj_code>").append("<![CDATA[" + projCode1 + "]]>").append("</proj_code>");
......
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