Commit f357613f authored by ssalve's avatar ssalve

Sarita:Changes by sarita on 23NOV2017 to resolve null pointer exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174557 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6254ef99
...@@ -2624,7 +2624,13 @@ public class GstrPurchaseIC extends ValidatorEJB implements GstrPurchaseICRemote ...@@ -2624,7 +2624,13 @@ public class GstrPurchaseIC extends ValidatorEJB implements GstrPurchaseICRemote
{ {
gst_rate = gstUtility.getDouble(gstUtility.checkNull(genericUtility.getColumnValue("gst_rate", dom))); gst_rate = gstUtility.getDouble(gstUtility.checkNull(genericUtility.getColumnValue("gst_rate", dom)));
state_code = gstUtility.checkNull(genericUtility.getColumnValue("gst_code_state", dom1)); // value of PlaceOfSupply state_code = gstUtility.checkNull(genericUtility.getColumnValue("gst_code_state", dom1)); // value of PlaceOfSupply
gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1)).substring(0,2);//Value of StateCode set by using Supplier GSTIN number first 2digit. //Changes by sarita on 23NOV2017 to resolve null pointer exception
//gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1)).substring(0,2);//Value of StateCode set by using Supplier GSTIN number first 2digit.
gstnStateCode = gstUtility.checkNull(genericUtility.getColumnValue("tax_reg_no", dom1));
if(gstnStateCode != null)
{
gstnStateCode = gstnStateCode.substring(0,2);
}
loginSiteCode = gstUtility.checkNull(getStateFromLoginSite(loginSite,conn)); loginSiteCode = gstUtility.checkNull(getStateFromLoginSite(loginSite,conn));
gst_type = gstUtility.checkNull(genericUtility.getColumnValue("gst_type", dom1)); gst_type = gstUtility.checkNull(genericUtility.getColumnValue("gst_type", dom1));
doc_type = gstUtility.checkNull(genericUtility.getColumnValue("doc_type", dom1)).trim(); doc_type = gstUtility.checkNull(genericUtility.getColumnValue("doc_type", dom1)).trim();
......
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