Commit f180b3a0 authored by cpatil's avatar cpatil

modify code for blank check no


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92950 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3b61962e
......@@ -1074,32 +1074,53 @@ Put a validation chq amount in filter and total of details matches in case heade
//System.out.println("(childNode.getFirstChild().getNodeValue()).trim()----"+(childNode.getFirstChild().getNodeValue()).trim());
if (childNodeName.equals("invoice_id"))
{
invoiceId = (childNode.getFirstChild().getNodeValue()).trim();
invoiceId = checkNull(childNode.getFirstChild().getNodeValue()).trim();
System.out.println("invoice_id:::::"+ invoiceId);
}
if (childNodeName.equals("cheque_no"))
{
chequeNo = (childNode.getFirstChild().getNodeValue()).trim();
//System.out.println("@@@@@@@@@@@@"+childNode.getFirstChild().getNodeValue()+"@@@@@@@@@");
if(childNode!=null)
{
if(childNode.getFirstChild()!=null)
{
if(childNode.getFirstChild().getNodeValue()!=null)
{
chequeNo = checkNull(childNode.getFirstChild().getNodeValue());
}
else
{
chequeNo="";
}
}
else
{
chequeNo="";
}
}
if(chequeNo == null || chequeNo.equalsIgnoreCase("null"))
{
chequeNo = "";
}
System.out.println("cheque_no:::::"+ chequeNo);
}
if(childNodeName.equals("tran_ser"))
{
tranSer = (childNode.getFirstChild().getNodeValue()).trim();
tranSer = checkNull(childNode.getFirstChild().getNodeValue()).trim();
System.out.println("tranSer:::::"+ tranSer);
}
if (childNodeName.equals("cheque_date"))
{
schequeDate = (childNode.getFirstChild().getNodeValue()).trim();
schequeDate = checkNull(childNode.getFirstChild().getNodeValue()).trim();
System.out.println("cheque_date:::::"+ schequeDate);
}
if (childNodeName.equals("chq_amount"))
{
schqAmount = (childNode.getFirstChild().getNodeValue()).trim();
schqAmount = checkNull(childNode.getFirstChild().getNodeValue()).trim();
if(schqAmount == null || schqAmount.equalsIgnoreCase("null"))
{
schqAmount = "";
......@@ -1109,17 +1130,17 @@ Put a validation chq amount in filter and total of details matches in case heade
}
if (childNodeName.equals("cust_code"))
{
custCode = (childNode.getFirstChild().getNodeValue()).trim();
custCode = checkNull(childNode.getFirstChild().getNodeValue()).trim();
System.out.println("cust_code :::::"+ custCode);
}
if (childNodeName.equals("remarks"))//added by kunal on 19/10/12
{
remarks = (childNode.getFirstChild().getNodeValue()).trim();
remarks = checkNull(childNode.getFirstChild().getNodeValue()).trim();
System.out.println("remarks :::::"+ remarks);
}
if (childNodeName.equals("adj_amt"))//added by kunal on 19/10/12
{
adjAmt = Double.parseDouble((childNode.getFirstChild().getNodeValue()).trim());
adjAmt = Double.parseDouble(checkNull(childNode.getFirstChild().getNodeValue()).trim());
System.out.println("adjAmt :::::"+ adjAmt);
}
}//inner for
......@@ -1411,7 +1432,21 @@ Put a validation chq amount in filter and total of details matches in case heade
return returnString;
}//process()
// for check null
private String checkNull( String input )
{
if( input == null )
{
input = "";
}
else
{
input = input.trim();
}
return input;
}
// added this method by rajesh k
private HashMap CustDetail(String custCode, HashMap rcpMap,String siteCode )throws ITMException
{
......
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